1 |
dilfridge 11/10/31 21:55:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mlt-0.7.6.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.1.10.32/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.74 media-libs/mlt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/ChangeLog?rev=1.74&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/ChangeLog?rev=1.74&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/ChangeLog?r1=1.73&r2=1.74 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v |
20 |
retrieving revision 1.73 |
21 |
retrieving revision 1.74 |
22 |
diff -u -r1.73 -r1.74 |
23 |
--- ChangeLog 30 Oct 2011 15:23:55 -0000 1.73 |
24 |
+++ ChangeLog 31 Oct 2011 21:55:14 -0000 1.74 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-libs/mlt |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.73 2011/10/30 15:23:55 dilfridge Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.74 2011/10/31 21:55:14 dilfridge Exp $ |
30 |
+ |
31 |
+*mlt-0.7.6 (31 Oct 2011) |
32 |
+ |
33 |
+ 31 Oct 2011; Andreas K. Huettel <dilfridge@g.o> +mlt-0.7.6.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
30 Oct 2011; Andreas K. Huettel <dilfridge@g.o> mlt-0.7.2.ebuild, |
37 |
+files/mlt-0.7.2-ruby-link.patch: |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/mlt/mlt-0.7.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/mlt-0.7.6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mlt/mlt-0.7.6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mlt-0.7.6.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 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.7.6.ebuild,v 1.1 2011/10/31 21:55:14 dilfridge Exp $ |
51 |
|
52 |
EAPI=4 |
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? ( virtual/ffmpeg[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-2.0" |
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 |
python_pkg_setup |
107 |
} |
108 |
|
109 |
src_prepare() { |
110 |
epatch "${FILESDIR}"/${PN}-0.7.2-ruby-link.patch |
111 |
# respect CFLAGS LDFLAGS when building shared libraries. Bug #308873 |
112 |
for x in python lua; do |
113 |
sed -i "/mlt.so/s: -lmlt++ :& ${CFLAGS} ${LDFLAGS} :" src/swig/$x/build |
114 |
done |
115 |
sed -i "/^LDFLAGS/s: += :& ${LDFLAGS} :" src/swig/ruby/build |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
use vdpau || export MLT_NO_VDPAU=1 |
120 |
|
121 |
tc-export CC CXX |
122 |
|
123 |
local myconf="--enable-gpl |
124 |
--enable-motion-est |
125 |
$(use_enable debug) |
126 |
$(use_enable dv) |
127 |
$(use_enable sse) |
128 |
$(use_enable sse2) |
129 |
$(use_enable gtk gtk2) |
130 |
$(use_enable vorbis) |
131 |
$(use_enable sdl) |
132 |
$(use_enable jack jackrack) |
133 |
$(use_enable ffmpeg avformat) |
134 |
$(use_enable frei0r) |
135 |
$(use_enable melt) |
136 |
$(use_enable libsamplerate resample) |
137 |
$(use_enable xml) |
138 |
$(use_enable xine) |
139 |
$(use_enable kde kdenlive) |
140 |
$(use_enable qt4 qimage) |
141 |
--disable-sox" |
142 |
#$(use_enable sox) FIXME |
143 |
|
144 |
use ffmpeg && myconf="${myconf} --avformat-swscale" |
145 |
|
146 |
(use quicktime && use dv) || myconf="${myconf} --disable-kino" |
147 |
|
148 |
use compressed-lumas && myconf="${myconf} --luma-compress" |
149 |
|
150 |
( use x86 || use amd64 ) && \ |
151 |
myconf="${myconf} $(use_enable mmx)" || |
152 |
myconf="${myconf} --disable-mmx" |
153 |
|
154 |
use melt || sed -i -e "s;src/melt;;" Makefile |
155 |
|
156 |
# TODO: add swig language bindings |
157 |
# see also http://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover |
158 |
|
159 |
local swig_lang |
160 |
# TODO: java perl php tcl |
161 |
for i in lua python ruby ; do |
162 |
use $i && swig_lang="${swig_lang} $i" |
163 |
done |
164 |
[ -z "${swig_lang}" ] && swig_lang="none" |
165 |
|
166 |
econf ${myconf} --swig-languages="${swig_lang}" |
167 |
sed -i -e s/^OPT/#OPT/ "${S}/config.mak" |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
emake DESTDIR="${D}" install || die |
172 |
dodoc AUTHORS ChangeLog NEWS README docs/*.txt |
173 |
|
174 |
dodir /usr/share/${PN} |
175 |
insinto /usr/share/${PN} |
176 |
doins -r demo |
177 |
|
178 |
docinto swig |
179 |
|
180 |
# Install SWIG bindings |
181 |
if use lua; then |
182 |
cd "${S}"/src/swig/lua |
183 |
exeinto $(pkg-config --variable INSTALL_CMOD lua) |
184 |
doexe mlt.so || die |
185 |
dodoc play.lua |
186 |
fi |
187 |
|
188 |
if use python; then |
189 |
cd "${S}"/src/swig/python |
190 |
insinto $(python_get_sitedir) |
191 |
doins mlt.py || die |
192 |
exeinto $(python_get_sitedir) |
193 |
doexe _mlt.so || die |
194 |
dodoc play.py |
195 |
fi |
196 |
|
197 |
if use ruby; then |
198 |
cd "${S}"/src/swig/ruby |
199 |
exeinto $("${EPREFIX}"/usr/bin/ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]') |
200 |
doexe mlt.so || die |
201 |
dodoc play.rb thumbs.rb |
202 |
fi |
203 |
# TODO: java perl php tcl |
204 |
} |
205 |
|
206 |
pkg_postinst() { |
207 |
if use python; then |
208 |
python_mod_optimize mlt.py |
209 |
fi |
210 |
} |
211 |
|
212 |
pkg_postrm() { |
213 |
if use python; then |
214 |
python_mod_cleanup mlt.py |
215 |
fi |
216 |
} |