Gentoo Archives: gentoo-commits

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