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