1 |
commit: 491f0d28e7b86e7f745d0d8c83c158a95ef6784d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 8 21:41:10 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 8 22:56:15 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=491f0d28 |
7 |
|
8 |
media-libs/mlt: 6.16.0 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-libs/mlt/Manifest | 1 + |
14 |
media-libs/mlt/mlt-6.16.0.ebuild | 217 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 218 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/mlt/Manifest b/media-libs/mlt/Manifest |
18 |
index 940291e613d..61ff0b1eeee 100644 |
19 |
--- a/media-libs/mlt/Manifest |
20 |
+++ b/media-libs/mlt/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST mlt-6.12.0.tar.gz 1395646 BLAKE2B 18dc06c4075d8d51bc7f62d027adda92c359275b9ad2131cc015b4402b1b7a9438fe87b617075017b9fd5e9696b82c4c840fa6dd83188bd0cedb7f01d2158283 SHA512 ed2cc0eeda45558ae6f1ec8780dfd413641953dc12dc32dccf655649f68f8e6088d39fefb7bef7bae042a41096976004446019d82ea162785bc487009cb97680 |
23 |
DIST mlt-6.14.0.tar.gz 1413015 BLAKE2B 81501c0b770c0be2ccf2dfa12c4ebb893c0e9921f36722e6f5cb8f643d3eaaa4b8eaf4fd87ba05fa55d49960b7147b73ea5f2cf771a6784b587a6797466f2f73 SHA512 86b26b0c421cc881f6bebbde2c0ae9d834f190d8f878fb279ab29a1d7ac5416077b7dd91420bf63a7821fade9ca9c044a92440e02673c7b330b8ff36982a9fb9 |
24 |
+DIST mlt-6.16.0.tar.gz 1414374 BLAKE2B 6c031360721d535e95cbaf890c1f42f5f5dd914e0c6c20992bd3aec4ecbcc0b53370fe6b82b5d11c8242bb0a1f2d94f28bc61b4e5a920e5afb41ca8bb5229433 SHA512 554e8b9baa7a8578cc52315fe0583c61762bf6fbbcdd4a1e4f25753846d92f013e7d74745498625fcc781de993aa0526fd761920450b4314e67105783b9bde26 |
25 |
|
26 |
diff --git a/media-libs/mlt/mlt-6.16.0.ebuild b/media-libs/mlt/mlt-6.16.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6d8840ae163 |
29 |
--- /dev/null |
30 |
+++ b/media-libs/mlt/mlt-6.16.0.ebuild |
31 |
@@ -0,0 +1,217 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+# TODO python3_{6,7} contrary to 6.14 changelog, still does not build. |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+# this ebuild currently only supports installing ruby bindings for a single ruby version |
40 |
+# so USE_RUBY must contain only a single value (the latest stable) as the ebuild calls |
41 |
+# /usr/bin/${USE_RUBY} directly |
42 |
+USE_RUBY="ruby25" |
43 |
+inherit python-single-r1 ruby-single toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="Open source multimedia framework for television broadcasting" |
46 |
+HOMEPAGE="https://www.mltframework.org/" |
47 |
+SRC_URI="https://github.com/mltframework/${PN}/releases/download/v${PV}/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-3" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
52 |
+IUSE="compressed-lumas cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 debug ffmpeg fftw frei0r |
53 |
+gtk jack kdenlive kernel_linux libav libsamplerate lua melt opencv opengl python qt5 rtaudio ruby sdl |
54 |
+vdpau vidstab xine xml" |
55 |
+# java perl php tcl |
56 |
+ |
57 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
58 |
+ |
59 |
+SWIG_DEPEND=">=dev-lang/swig-2.0" |
60 |
+# java? ( ${SWIG_DEPEND} >=virtual/jdk-1.5 ) |
61 |
+# perl? ( ${SWIG_DEPEND} ) |
62 |
+# php? ( ${SWIG_DEPEND} ) |
63 |
+# tcl? ( ${SWIG_DEPEND} ) |
64 |
+BDEPEND=" |
65 |
+ virtual/pkgconfig |
66 |
+ compressed-lumas? ( virtual/imagemagick-tools[png] ) |
67 |
+ lua? ( ${SWIG_DEPEND} virtual/pkgconfig ) |
68 |
+ python? ( ${SWIG_DEPEND} ) |
69 |
+ ruby? ( ${SWIG_DEPEND} )" |
70 |
+#rtaudio will use OSS on non linux OSes |
71 |
+DEPEND=" |
72 |
+ >=media-libs/libebur128-1.2.2 |
73 |
+ ffmpeg? ( |
74 |
+ libav? ( >=media-video/libav-12:0=[vdpau?] ) |
75 |
+ !libav? ( media-video/ffmpeg:0=[vdpau?] ) |
76 |
+ ) |
77 |
+ fftw? ( sci-libs/fftw:3.0= ) |
78 |
+ frei0r? ( media-plugins/frei0r-plugins ) |
79 |
+ gtk? ( |
80 |
+ media-libs/libexif |
81 |
+ x11-libs/gtk+:2 |
82 |
+ x11-libs/pango |
83 |
+ ) |
84 |
+ jack? ( |
85 |
+ >=dev-libs/libxml2-2.5 |
86 |
+ media-libs/ladspa-sdk |
87 |
+ virtual/jack |
88 |
+ ) |
89 |
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.2 ) |
90 |
+ lua? ( >=dev-lang/lua-5.1.4-r4:= ) |
91 |
+ opencv? ( >=media-libs/opencv-3.2.0:= ) |
92 |
+ opengl? ( media-video/movit ) |
93 |
+ python? ( ${PYTHON_DEPS} ) |
94 |
+ qt5? ( |
95 |
+ dev-qt/qtcore:5 |
96 |
+ dev-qt/qtgui:5 |
97 |
+ dev-qt/qtsvg:5 |
98 |
+ dev-qt/qtwidgets:5 |
99 |
+ dev-qt/qtxml:5 |
100 |
+ media-libs/libexif |
101 |
+ x11-libs/libX11 |
102 |
+ ) |
103 |
+ rtaudio? ( |
104 |
+ >=media-libs/rtaudio-4.1.2 |
105 |
+ kernel_linux? ( media-libs/alsa-lib ) |
106 |
+ ) |
107 |
+ ruby? ( ${RUBY_DEPS} ) |
108 |
+ sdl? ( |
109 |
+ media-libs/libsdl2[X,opengl,video] |
110 |
+ media-libs/sdl2-image |
111 |
+ ) |
112 |
+ vidstab? ( media-libs/vidstab ) |
113 |
+ xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 ) |
114 |
+ xml? ( >=dev-libs/libxml2-2.5 )" |
115 |
+# java? ( >=virtual/jre-1.5 ) |
116 |
+# perl? ( dev-lang/perl ) |
117 |
+# php? ( dev-lang/php ) |
118 |
+# sox? ( media-sound/sox ) |
119 |
+# tcl? ( dev-lang/tcl:0= ) |
120 |
+RDEPEND="${DEPEND}" |
121 |
+ |
122 |
+DOCS=( AUTHORS ChangeLog NEWS README docs/{framework,melt,mlt{++,-xml}}.txt ) |
123 |
+ |
124 |
+PATCHES=( "${FILESDIR}"/${PN}-6.10.0-swig-underlinking.patch ) |
125 |
+ |
126 |
+pkg_setup() { |
127 |
+ use python && python-single-r1_pkg_setup |
128 |
+} |
129 |
+ |
130 |
+src_prepare() { |
131 |
+ default |
132 |
+ |
133 |
+ # respect CFLAGS LDFLAGS when building shared libraries. Bug #308873 |
134 |
+ for x in python lua; do |
135 |
+ sed -i "/mlt.so/s: -lmlt++ :& ${CFLAGS} ${LDFLAGS} :" src/swig/$x/build || die |
136 |
+ done |
137 |
+ sed -i "/^LDFLAGS/s: += :& ${LDFLAGS} :" src/swig/ruby/build || die |
138 |
+ |
139 |
+ sed -i -e "s/env ruby/${USE_RUBY}/" src/swig/ruby/* || die |
140 |
+} |
141 |
+ |
142 |
+src_configure() { |
143 |
+ tc-export CC CXX |
144 |
+ |
145 |
+ local myconf=( |
146 |
+ --enable-gpl |
147 |
+ --enable-gpl3 |
148 |
+ --enable-motion-est |
149 |
+ --target-arch=$(tc-arch) |
150 |
+ --disable-kde |
151 |
+ --disable-sdl |
152 |
+ --disable-swfdec |
153 |
+ $(use_enable debug) |
154 |
+ $(use compressed-lumas && echo ' --luma-compress') |
155 |
+ $(use_enable cpu_flags_x86_sse sse) |
156 |
+ $(use_enable cpu_flags_x86_sse2 sse2) |
157 |
+ $(use_enable gtk gtk2) |
158 |
+ $(use_enable jack jackrack) |
159 |
+ $(use_enable ffmpeg avformat) |
160 |
+ $(use ffmpeg && echo ' --avformat-swscale') |
161 |
+ $(use_enable fftw plus) |
162 |
+ $(use_enable frei0r) |
163 |
+ $(use_enable melt) |
164 |
+ $(use_enable opencv) |
165 |
+ $(use_enable opengl) |
166 |
+ $(use_enable libsamplerate resample) |
167 |
+ $(use_enable rtaudio) |
168 |
+ $(use vdpau && echo ' --avformat-vdpau') |
169 |
+ $(use_enable sdl sdl2) |
170 |
+ $(use_enable vidstab vid.stab ) |
171 |
+ $(use_enable xml) |
172 |
+ $(use_enable xine) |
173 |
+ $(use_enable kdenlive) |
174 |
+ --disable-sox |
175 |
+ ) |
176 |
+ #$(use_enable sox) FIXME |
177 |
+ |
178 |
+ if use qt5 ; then |
179 |
+ myconf+=( |
180 |
+ --enable-qt |
181 |
+ --qt-includedir=$(pkg-config Qt5Core --variable=includedir) |
182 |
+ --qt-libdir=$(pkg-config Qt5Core --variable=libdir) |
183 |
+ ) |
184 |
+ else |
185 |
+ myconf+=( --disable-qt ) |
186 |
+ fi |
187 |
+ |
188 |
+ if use x86 || use amd64 ; then |
189 |
+ myconf+=( $(use_enable cpu_flags_x86_mmx mmx) ) |
190 |
+ else |
191 |
+ myconf+=( --disable-mmx ) |
192 |
+ fi |
193 |
+ |
194 |
+ if ! use melt; then |
195 |
+ sed -i -e "s;src/melt;;" Makefile || die |
196 |
+ fi |
197 |
+ |
198 |
+ # TODO: add swig language bindings |
199 |
+ # see also https://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover |
200 |
+ |
201 |
+ local swig_lang |
202 |
+ # TODO: java perl php tcl |
203 |
+ for i in lua python ruby ; do |
204 |
+ use $i && swig_lang="${swig_lang} $i" |
205 |
+ done |
206 |
+ [[ -z "${swig_lang}" ]] && swig_lang="none" |
207 |
+ |
208 |
+ econf ${myconf[@]} --swig-languages="${swig_lang}" |
209 |
+ |
210 |
+ sed -i -e s/^OPT/#OPT/ "${S}/config.mak" || die |
211 |
+} |
212 |
+ |
213 |
+src_install() { |
214 |
+ emake DESTDIR="${D}" install |
215 |
+ einstalldocs |
216 |
+ |
217 |
+ dodir /usr/share/${PN} |
218 |
+ insinto /usr/share/${PN} |
219 |
+ doins -r demo |
220 |
+ |
221 |
+ docinto swig |
222 |
+ |
223 |
+ # Install SWIG bindings |
224 |
+ if use lua; then |
225 |
+ cd "${S}"/src/swig/lua || die |
226 |
+ exeinto $(pkg-config --variable INSTALL_CMOD lua) |
227 |
+ doexe mlt.so |
228 |
+ dodoc play.lua |
229 |
+ fi |
230 |
+ |
231 |
+ if use python; then |
232 |
+ cd "${S}"/src/swig/python || die |
233 |
+ insinto $(python_get_sitedir) |
234 |
+ doins mlt.py |
235 |
+ exeinto $(python_get_sitedir) |
236 |
+ doexe _mlt.so |
237 |
+ dodoc play.py |
238 |
+ python_optimize |
239 |
+ fi |
240 |
+ |
241 |
+ if use ruby; then |
242 |
+ cd "${S}"/src/swig/ruby || die |
243 |
+ exeinto $("${EPREFIX}"/usr/bin/${USE_RUBY} -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]') |
244 |
+ doexe mlt.so |
245 |
+ dodoc play.rb thumbs.rb |
246 |
+ fi |
247 |
+ # TODO: java perl php tcl |
248 |
+} |