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