Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/mlt: ChangeLog mlt-0.5.10.ebuild
Date: Sat, 06 Nov 2010 21:53:59
Message-Id: 20101106215352.6537A20051@flycatcher.gentoo.org
1 scarabeus 10/11/06 21:53:52
2
3 Modified: ChangeLog
4 Added: mlt-0.5.10.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.66 media-libs/mlt/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/ChangeLog?rev=1.66&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/ChangeLog?rev=1.66&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/ChangeLog?r1=1.65&r2=1.66
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v
20 retrieving revision 1.65
21 retrieving revision 1.66
22 diff -u -r1.65 -r1.66
23 --- ChangeLog 14 Aug 2010 19:41:41 -0000 1.65
24 +++ ChangeLog 6 Nov 2010 21:53:52 -0000 1.66
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/mlt
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.65 2010/08/14 19:41:41 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.66 2010/11/06 21:53:52 scarabeus Exp $
30 +
31 +*mlt-0.5.10 (06 Nov 2010)
32 +
33 + 06 Nov 2010; Tomáš Chvátal <scarabeus@g.o> +mlt-0.5.10.ebuild:
34 + Version bump
35
36 *mlt-0.5.4-r2 (14 Aug 2010)
37
38
39
40
41 1.1 media-libs/mlt/mlt-0.5.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/mlt-0.5.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/mlt-0.5.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mlt-0.5.10.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/mlt-0.5.10.ebuild,v 1.1 2010/11/06 21:53:52 scarabeus Exp $
51
52 EAPI=3
53 PYTHON_DEPEND="python? 2:2.6"
54 inherit eutils toolchain-funcs multilib python
55
56 DESCRIPTION="An open source multimedia framework, designed and developed for television broadcasting"
57 HOMEPAGE="http://www.mltframework.org/"
58 SRC_URI="mirror://sourceforge/mlt/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
63 IUSE="compressed-lumas dv debug ffmpeg frei0r gtk jack kde libsamplerate melt
64 mmx qt4 quicktime sdl sse sse2 vorbis xine xml lua python ruby vdpau" # java perl php tcl
65
66 RDEPEND="ffmpeg? ( >=media-video/ffmpeg-0.5[vdpau?] )
67 dv? ( >=media-libs/libdv-0.104 )
68 xml? ( >=dev-libs/libxml2-2.5 )
69 vorbis? ( >=media-libs/libvorbis-1.1.2 )
70 sdl? ( >=media-libs/libsdl-1.2.10
71 >=media-libs/sdl-image-1.2.4 )
72 libsamplerate? ( >=media-libs/libsamplerate-0.1.2 )
73 jack? ( media-sound/jack-audio-connection-kit
74 media-libs/ladspa-sdk
75 >=dev-libs/libxml2-2.5 )
76 frei0r? ( media-plugins/frei0r-plugins )
77 gtk? ( x11-libs/gtk+:2
78 x11-libs/pango )
79 quicktime? ( media-libs/libquicktime )
80 xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
81 qt4? ( x11-libs/qt-gui:4 )
82 !media-libs/mlt++
83 lua? ( >=dev-lang/lua-5.1.4-r4 )
84 ruby? ( dev-lang/ruby )"
85 # sox? ( media-sound/sox )
86 # java? ( >=virtual/jre-1.5 )
87 # perl? ( dev-lang/perl )
88 # php? ( dev-lang/php )
89 # tcl? ( dev-lang/tcl )
90
91 SWIG_DEPEND=">=dev-lang/swig-1.3.38"
92 DEPEND="${RDEPEND}
93 dev-util/pkgconfig
94 compressed-lumas? ( || ( media-gfx/imagemagick
95 media-gfx/graphicsmagick[imagemagick] ) )
96 lua? ( ${SWIG_DEPEND} dev-util/pkgconfig )
97 python? ( ${SWIG_DEPEND} )
98 ruby? ( ${SWIG_DEPEND} )"
99 # java? ( ${SWIG_DEPEND} >=virtual/jdk-1.5 )
100 # perl? ( ${SWIG_DEPEND} )
101 # php? ( ${SWIG_DEPEND} )
102 # tcl? ( ${SWIG_DEPEND} )
103
104 pkg_setup() {
105 python_set_active_version 2
106 }
107
108 src_prepare() {
109 epatch "${FILESDIR}"/${PN}-0.5.4-asneeded.patch
110 # respect CFLAGS LDFLAGS when building shared libraries. Bug #308873
111 for x in python lua; do
112 sed -i "/mlt.so/s: -lmlt++ :& ${CFLAGS} ${LDFLAGS} :" src/swig/$x/build
113 done
114 sed -i "/^LDFLAGS/s: += :& ${LDFLAGS} :" src/swig/ruby/build
115 }
116
117 src_configure() {
118 use vdpau || export MLT_NO_VDPAU=1
119
120 tc-export CC CXX
121
122 local myconf="--enable-gpl
123 --enable-motion-est
124 $(use_enable debug)
125 $(use_enable dv)
126 $(use_enable sse)
127 $(use_enable sse2)
128 $(use_enable gtk gtk2)
129 $(use_enable vorbis)
130 $(use_enable sdl)
131 $(use_enable jack jackrack)
132 $(use_enable ffmpeg avformat)
133 $(use_enable frei0r)
134 $(use_enable melt)
135 $(use_enable libsamplerate resample)
136 $(use_enable xml)
137 $(use_enable xine)
138 $(use_enable kde kdenlive)
139 $(use_enable qt4 qimage)
140 --disable-sox"
141 #$(use_enable sox) FIXME
142
143 use ffmpeg && myconf="${myconf} --avformat-swscale"
144
145 (use quicktime && use dv) || myconf="${myconf} --disable-kino"
146
147 use compressed-lumas && myconf="${myconf} --luma-compress"
148
149 ( use x86 || use amd64 ) && \
150 myconf="${myconf} $(use_enable mmx)" ||
151 myconf="${myconf} --disable-mmx"
152
153 use melt || sed -i -e "s;src/melt;;" Makefile
154
155 # TODO: add swig language bindings
156 # see also http://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover
157
158 local swig_lang
159 # TODO: java perl php tcl
160 for i in lua python ruby ; do
161 use $i && swig_lang="${swig_lang} $i"
162 done
163 [ -z "${swig_lang}" ] && swig_lang="none"
164
165 econf ${myconf} --swig-languages="${swig_lang}"
166 sed -i -e s/^OPT/#OPT/ "${S}/config.mak"
167 }
168
169 src_install() {
170 emake DESTDIR="${D}" install || die
171 dodoc AUTHORS ChangeLog NEWS README docs/{TODO,*.txt}
172
173 dodir /usr/share/${PN}
174 insinto /usr/share/${PN}
175 doins -r demo
176
177 docinto swig
178
179 # Install SWIG bindings
180 if use lua; then
181 cd "${S}"/src/swig/lua
182 exeinto $(pkg-config --variable INSTALL_CMOD lua)
183 doexe mlt.so || die
184 dodoc play.lua
185 fi
186
187 if use python; then
188 cd "${S}"/src/swig/python
189 insinto $(python_get_sitedir)
190 doins mlt.py || die
191 exeinto $(python_get_sitedir)
192 doexe _mlt.so || die
193 dodoc play.py
194 fi
195
196 if use ruby; then
197 cd "${S}"/src/swig/ruby
198 exeinto $("${EPREFIX}"/usr/bin/ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
199 doexe mlt.so || die
200 dodoc play.rb thumbs.rb
201 fi
202 # TODO: java perl php tcl
203 }
204
205 pkg_postinst() {
206 if use python; then
207 python_mod_optimize mlt.py
208 fi
209 }
210
211 pkg_postrm() {
212 if use python; then
213 python_mod_cleanup mlt.py
214 fi
215 }