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