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