1 |
commit: 0614c44475793213f4d21c8f5c8b84977a6a1956 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 26 11:27:16 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 26 17:03:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0614c444 |
7 |
|
8 |
media-libs/libvpx: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/701834 |
11 |
Package-Manager: Portage-2.3.83, Repoman-2.3.20 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/14129 |
14 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
15 |
|
16 |
media-libs/libvpx/Manifest | 7 -- |
17 |
media-libs/libvpx/libvpx-1.5.0.ebuild | 127 ------------------------------ |
18 |
media-libs/libvpx/libvpx-1.6.0-r1.ebuild | 116 --------------------------- |
19 |
media-libs/libvpx/libvpx-1.6.1.ebuild | 127 ------------------------------ |
20 |
media-libs/libvpx/libvpx-1.7.0.ebuild | 130 ------------------------------ |
21 |
media-libs/libvpx/libvpx-1.8.0-r1.ebuild | 120 ---------------------------- |
22 |
media-libs/libvpx/libvpx-1.8.0.ebuild | 131 ------------------------------- |
23 |
7 files changed, 758 deletions(-) |
24 |
|
25 |
diff --git a/media-libs/libvpx/Manifest b/media-libs/libvpx/Manifest |
26 |
index 928f142b39e..0682b359f62 100644 |
27 |
--- a/media-libs/libvpx/Manifest |
28 |
+++ b/media-libs/libvpx/Manifest |
29 |
@@ -1,11 +1,4 @@ |
30 |
-DIST libvpx-1.5.0.tar.bz2 1906571 BLAKE2B 1e4e2d7ac6ae046d733361d644a9c36b84f03353fd55bc938b064bcba565d943affa6866df4e9c23b3a1120bf34ad660932bad8c9d8e480d42cdf96b4b937d49 SHA512 5a952aa53e539a130d316723d424fa02a8f42a450950d74a16d8abc5df569ba5559b3b09a32140b638d7a0cd54be1c7b0f8306ad286825bc1281f513bb665fc5 |
31 |
-DIST libvpx-1.6.0.tar.bz2 1943026 BLAKE2B 1fbea27d73b2120ed807108b8ba09c4118e2d8381fdcbbf8661c5fd664e6272d6c14b73c7b8317b97fa51b212d3ea2429819e0e17adf6afcb8d0f5fb6dd9a68a SHA512 dd753372a156bbf7ceb4090276e5fb32b4c8581c93925dded93efee74153b5eb24ee8c3d8ee6339a6878482f0ecf178a2befeeb36e17eada6c440b48c60e9162 |
32 |
-DIST libvpx-1.6.1.tar.bz2 1959534 BLAKE2B 67f73ffd2569bde46db98e7fcb36f7b37d33927fad8c3916ebe1810e63e7aae963bd39ba1f399be079ea4c9f52736f98a603c810f9412643a91166dfb09ed895 SHA512 1a4b009fe1737715c6563a79848126a5859394a5074b1e9cca9bc2e213df90890c15e708040d5f2c96c7c21e268f51e1352ac6911514bf891a4bf3eea154159d |
33 |
DIST libvpx-1.7.0.tar.gz 2679797 BLAKE2B de7992adb517e375c5be2a9facf2b4a73174adcaef11185ed6d3102c2f6b73f378b0d415c5e3a4d915b3a6889bd8b31ba3e8c007a87a433a345ef7696a1dd899 SHA512 8b3b766b550f8d86907628d7ed88035f9a2612aac21542e0fd5ad35b905eb82cbe1be02a1a24afce7a3bcc4766f62611971f72724761996b392136c40a1e7ff0 |
34 |
-DIST libvpx-1.8.0.tar.gz 2879302 BLAKE2B a6113115b4d3668951b084250ca3e9bafeb1a4c54cb0c5516d6d24a88105f13b5b458dd0b57088eddb64deb0096a2023968588cc7dc69aa0cd0799caa71f9fc0 SHA512 77477ec7059de1d90f048c10783b4adce463a84c9c828f125686e533f5bc8c9eeab8a1747df5c928e0869ccf855a9af5608199c8c376a75d35659f719ee870ef |
35 |
DIST libvpx-1.8.1.tar.gz 2922587 BLAKE2B c9526616f81b6b343c9597f1f0b368f76f8f6b2b5a9e207b2e8f0a2b5e14a49b7e4f61cc88ce8f9b78e04f82149f46de4bd09baa0d45b26942a3e5ca821e8e10 SHA512 615476a929e46befdd4782a39345ce55cd30176ecb2fcd8a875c31694ae2334b395dcab9c5ba58d53ceb572ed0c022d2a3748ca4bbd36092e22b01cf3c9b2e8e |
36 |
-DIST libvpx-testdata-1.5.0.tar.bz2 117022525 BLAKE2B d0b5e96694d84d825b874df208dc3b3156ab0d5e9d567e1e05cdc7b88f47126917b84178748f0971ce14d58ee031906b72070bec622983ec56244159b8b759ee SHA512 58abcea159d1f709c2b9b52e8ae381481ed0ee1f43972f5e52d628754844ed23f5f77180a9c3f950a19fd8e2eaec406288d9ec65a42c9d6d080a6948827698bb |
37 |
-DIST libvpx-testdata-1.6.0.tar.bz2 121020858 BLAKE2B 93bbaa4514e46b762fbf86d66394b228d62c19906dc79c5c661feedf088d09d4b6c2ac908dc8b1ac4236a801047d5d608b17a8bc0fa5bd5ca0c992cd0729fc7a SHA512 639e229bd97e7a92a29e636f548234a87dbe63673d968cdfbec1faf9ccb0ee2087ad00b0a5bfb1581bea6b17e70bb449e9a046da4d9891f59ec79773ece4294e |
38 |
-DIST libvpx-testdata-1.6.1.tar.bz2 158774682 BLAKE2B 0ba1897e015c69cbf98b645cc634f98fdaf58aa814ad2cf93ee1812a38d279a570b856017822db0b21215c0e6d2d069c3f40692317c885ffbc3b59c236a754ba SHA512 9038774a6955cb6664ea664b4d8e08b0e7a2acba85429da9fd84f522bc7a03d57f6d9f1302481136a718507113babbe4786ff7a648130298ad2c0b3cbe8e82ab |
39 |
DIST libvpx-testdata-1.7.0.tar.xz 238790100 BLAKE2B 1d14e794341d35402eaf54d398ebed56b0983908e397ae677737e0f313ea0bfc9c4a39be91765b02a07a8eb9b55529d5f998efcc87b1b493b0e326e02193d982 SHA512 1556345e41674f0846a7419828972ec27c3c37fe270fa1deb45e03665f60ec088d79134aee0d2e27003b130636eeed4a15ea3f701c9d7014f3ca2785467767a8 |
40 |
DIST libvpx-testdata-1.8.0.tar.xz 418337232 BLAKE2B 1336e522f18a8f7812b4e7e4de7b27d32778c38fe902c62a4415a17e857868bfcdcbdcab528617db89e9f57449a486333feccffc4a250bfe79fc460c790071ed SHA512 991066467121614106455522b3651f194b45a37125c1b4e6bade59044756f26d914c95388e3c0bd3dc22159525aa6478df36801767bb7506fa7e77b93c6c2ede |
41 |
|
42 |
diff --git a/media-libs/libvpx/libvpx-1.5.0.ebuild b/media-libs/libvpx/libvpx-1.5.0.ebuild |
43 |
deleted file mode 100644 |
44 |
index 700c5256f73..00000000000 |
45 |
--- a/media-libs/libvpx/libvpx-1.5.0.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,127 +0,0 @@ |
48 |
-# Copyright 1999-2019 Gentoo Authors |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
- |
51 |
-EAPI=5 |
52 |
-inherit eutils multilib toolchain-funcs multilib-minimal |
53 |
- |
54 |
-LIBVPX_TESTDATA_VER=1.5.0 |
55 |
- |
56 |
-if [[ ${PV} == *9999* ]]; then |
57 |
- inherit git-2 |
58 |
- EGIT_REPO_URI="https://chromium.googlesource.com/webm/${PN}.git" |
59 |
-elif [[ ${PV} == *pre* ]]; then |
60 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
61 |
- KEYWORDS="amd64 arm arm64 ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" |
62 |
-else |
63 |
- SRC_URI="https://storage.googleapis.com/downloads.webmproject.org/releases/webm/${P}.tar.bz2" |
64 |
- KEYWORDS="amd64 arm arm64 ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" |
65 |
-fi |
66 |
-# generated by: make LIBVPX_TEST_DATA_PATH=libvpx-testdata testdata + tar'ing |
67 |
-# it. |
68 |
-SRC_URI="${SRC_URI} |
69 |
- test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.bz2 )" |
70 |
- |
71 |
-DESCRIPTION="WebM VP8 Codec SDK" |
72 |
-HOMEPAGE="https://www.webmproject.org" |
73 |
- |
74 |
-LICENSE="BSD" |
75 |
-SLOT="0/3" |
76 |
-IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 doc cpu_flags_x86_mmx postproc cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 static-libs svc test +threads" |
77 |
-RESTRICT="!test? ( test )" |
78 |
- |
79 |
-RDEPEND="" |
80 |
-DEPEND="abi_x86_32? ( dev-lang/yasm ) |
81 |
- abi_x86_64? ( dev-lang/yasm ) |
82 |
- abi_x86_x32? ( dev-lang/yasm ) |
83 |
- x86-fbsd? ( dev-lang/yasm ) |
84 |
- amd64-fbsd? ( dev-lang/yasm ) |
85 |
- doc? ( |
86 |
- app-doc/doxygen |
87 |
- dev-lang/php |
88 |
- ) |
89 |
-" |
90 |
- |
91 |
-REQUIRED_USE=" |
92 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
93 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) |
94 |
-" |
95 |
- |
96 |
-src_prepare() { |
97 |
- epatch "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
98 |
-} |
99 |
- |
100 |
-multilib_src_configure() { |
101 |
- unset CODECS #357487 |
102 |
- |
103 |
- # let the build system decide which AS to use (it honours $AS but |
104 |
- # then feeds it with yasm flags without checking...) #345161 |
105 |
- tc-export AS |
106 |
- case "${CHOST}" in |
107 |
- i?86*) export AS=yasm;; |
108 |
- x86_64*) export AS=yasm;; |
109 |
- esac |
110 |
- |
111 |
- # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
112 |
- # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
113 |
- # copied from php-pear-r1.eclass |
114 |
- addpredict /usr/share/snmp/mibs/.index |
115 |
- addpredict /var/lib/net-snmp/ |
116 |
- addpredict /var/lib/net-snmp/mib_indexes |
117 |
- addpredict /session_mm_cli0.sem |
118 |
- |
119 |
- # Build with correct toolchain. |
120 |
- tc-export CC CXX AR NM |
121 |
- # Link with gcc by default, the build system should override this if needed. |
122 |
- export LD="${CC}" |
123 |
- |
124 |
- local myconf |
125 |
- if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then |
126 |
- myconf+=" $(use_enable doc install-docs) $(use_enable doc docs)" |
127 |
- else |
128 |
- # not needed for multilib and will be overwritten anyway. |
129 |
- myconf+=" --disable-examples --disable-install-docs --disable-docs" |
130 |
- fi |
131 |
- |
132 |
- # https://bugs.gentoo.org/569146 |
133 |
- export LC_COLLATE=C |
134 |
- |
135 |
- # #498364: sse doesn't work without sse2 enabled, |
136 |
- "${S}/configure" \ |
137 |
- --prefix="${EPREFIX}"/usr \ |
138 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
139 |
- --enable-pic \ |
140 |
- --enable-vp8 \ |
141 |
- --enable-vp9 \ |
142 |
- --enable-shared \ |
143 |
- --extra-cflags="${CFLAGS}" \ |
144 |
- $(use_enable cpu_flags_x86_avx avx) \ |
145 |
- $(use_enable cpu_flags_x86_avx2 avx2) \ |
146 |
- $(use_enable cpu_flags_x86_mmx mmx) \ |
147 |
- $(use_enable postproc) \ |
148 |
- $(use cpu_flags_x86_sse2 && use_enable cpu_flags_x86_sse sse || echo --disable-sse) \ |
149 |
- $(use_enable cpu_flags_x86_sse2 sse2) \ |
150 |
- $(use_enable cpu_flags_x86_sse3 sse3) \ |
151 |
- $(use_enable cpu_flags_x86_sse4_1 sse4_1) \ |
152 |
- $(use_enable cpu_flags_x86_ssse3 ssse3) \ |
153 |
- $(use_enable svc experimental) $(use_enable svc spatial-svc) \ |
154 |
- $(use_enable static-libs static) \ |
155 |
- $(use_enable test unit-tests) \ |
156 |
- $(use_enable threads multithread) \ |
157 |
- ${myconf} \ |
158 |
- || die |
159 |
-} |
160 |
- |
161 |
-multilib_src_compile() { |
162 |
- # build verbose by default and do not build examples that will not be installed |
163 |
- emake verbose=yes GEN_EXAMPLES= |
164 |
-} |
165 |
- |
166 |
-multilib_src_test() { |
167 |
- LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" \ |
168 |
- emake verbose=yes GEN_EXAMPLES= LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" test |
169 |
-} |
170 |
- |
171 |
-multilib_src_install() { |
172 |
- emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
173 |
- [ "${ABI}" = "${DEFAULT_ABI}" ] && use doc && dohtml docs/html/* |
174 |
-} |
175 |
|
176 |
diff --git a/media-libs/libvpx/libvpx-1.6.0-r1.ebuild b/media-libs/libvpx/libvpx-1.6.0-r1.ebuild |
177 |
deleted file mode 100644 |
178 |
index 4d34056abc3..00000000000 |
179 |
--- a/media-libs/libvpx/libvpx-1.6.0-r1.ebuild |
180 |
+++ /dev/null |
181 |
@@ -1,116 +0,0 @@ |
182 |
-# Copyright 1999-2019 Gentoo Authors |
183 |
-# Distributed under the terms of the GNU General Public License v2 |
184 |
- |
185 |
-EAPI=6 |
186 |
-inherit toolchain-funcs multilib-minimal |
187 |
- |
188 |
-LIBVPX_TESTDATA_VER=1.6.0 |
189 |
- |
190 |
-DESCRIPTION="WebM VP8 and VP9 Codec SDK" |
191 |
-HOMEPAGE="https://www.webmproject.org" |
192 |
-SRC_URI="https://storage.googleapis.com/downloads.webmproject.org/releases/webm/${P}.tar.bz2 |
193 |
- test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.bz2 )" |
194 |
- |
195 |
-LICENSE="BSD" |
196 |
-SLOT="0/4" |
197 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
198 |
-IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 doc cpu_flags_x86_mmx postproc cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 +highbitdepth static-libs svc test +threads" |
199 |
-RESTRICT="!test? ( test )" |
200 |
- |
201 |
-RDEPEND="" |
202 |
-DEPEND="abi_x86_32? ( dev-lang/yasm ) |
203 |
- abi_x86_64? ( dev-lang/yasm ) |
204 |
- abi_x86_x32? ( dev-lang/yasm ) |
205 |
- x86-fbsd? ( dev-lang/yasm ) |
206 |
- amd64-fbsd? ( dev-lang/yasm ) |
207 |
- doc? ( |
208 |
- app-doc/doxygen |
209 |
- dev-lang/php |
210 |
- ) |
211 |
-" |
212 |
- |
213 |
-REQUIRED_USE=" |
214 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
215 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) |
216 |
-" |
217 |
- |
218 |
-PATCHES=( |
219 |
- "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
220 |
-) |
221 |
- |
222 |
-src_configure() { |
223 |
- # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
224 |
- # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
225 |
- # copied from php-pear-r1.eclass |
226 |
- addpredict /usr/share/snmp/mibs/.index |
227 |
- addpredict /var/lib/net-snmp/ |
228 |
- addpredict /var/lib/net-snmp/mib_indexes |
229 |
- addpredict /session_mm_cli0.sem |
230 |
- multilib-minimal_src_configure |
231 |
-} |
232 |
- |
233 |
-multilib_src_configure() { |
234 |
- unset CODECS #357487 |
235 |
- |
236 |
- # let the build system decide which AS to use (it honours $AS but |
237 |
- # then feeds it with yasm flags without checking...) #345161 |
238 |
- tc-export AS |
239 |
- case "${CHOST}" in |
240 |
- i?86*) export AS=yasm;; |
241 |
- x86_64*) export AS=yasm;; |
242 |
- esac |
243 |
- |
244 |
- # Build with correct toolchain. |
245 |
- tc-export CC CXX AR NM |
246 |
- # Link with gcc by default, the build system should override this if needed. |
247 |
- export LD="${CC}" |
248 |
- |
249 |
- local myconf |
250 |
- if multilib_is_native_abi; then |
251 |
- myconf+=" $(use_enable doc install-docs) $(use_enable doc docs)" |
252 |
- else |
253 |
- # not needed for multilib and will be overwritten anyway. |
254 |
- myconf+=" --disable-examples --disable-install-docs --disable-docs" |
255 |
- fi |
256 |
- |
257 |
- # #498364: sse doesn't work without sse2 enabled, |
258 |
- "${S}/configure" \ |
259 |
- --prefix="${EPREFIX}"/usr \ |
260 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
261 |
- --enable-pic \ |
262 |
- --enable-vp8 \ |
263 |
- --enable-vp9 \ |
264 |
- --enable-shared \ |
265 |
- --extra-cflags="${CFLAGS}" \ |
266 |
- $(use_enable cpu_flags_x86_avx avx) \ |
267 |
- $(use_enable cpu_flags_x86_avx2 avx2) \ |
268 |
- $(use_enable cpu_flags_x86_mmx mmx) \ |
269 |
- $(use_enable postproc) \ |
270 |
- $(use cpu_flags_x86_sse2 && use_enable cpu_flags_x86_sse sse || echo --disable-sse) \ |
271 |
- $(use_enable cpu_flags_x86_sse2 sse2) \ |
272 |
- $(use_enable cpu_flags_x86_sse3 sse3) \ |
273 |
- $(use_enable cpu_flags_x86_sse4_1 sse4_1) \ |
274 |
- $(use_enable cpu_flags_x86_ssse3 ssse3) \ |
275 |
- $(use_enable svc experimental) $(use_enable svc spatial-svc) \ |
276 |
- $(use_enable static-libs static) \ |
277 |
- $(use_enable test unit-tests) \ |
278 |
- $(use_enable threads multithread) \ |
279 |
- $(use_enable highbitdepth vp9-highbitdepth) \ |
280 |
- ${myconf} \ |
281 |
- || die |
282 |
-} |
283 |
- |
284 |
-multilib_src_compile() { |
285 |
- # build verbose by default and do not build examples that will not be installed |
286 |
- emake verbose=yes GEN_EXAMPLES= |
287 |
-} |
288 |
- |
289 |
-multilib_src_test() { |
290 |
- LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" \ |
291 |
- emake verbose=yes GEN_EXAMPLES= LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" test |
292 |
-} |
293 |
- |
294 |
-multilib_src_install() { |
295 |
- emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
296 |
- multilib_is_native_abi && use doc && dodoc -r docs/html |
297 |
-} |
298 |
|
299 |
diff --git a/media-libs/libvpx/libvpx-1.6.1.ebuild b/media-libs/libvpx/libvpx-1.6.1.ebuild |
300 |
deleted file mode 100644 |
301 |
index 2a780b5ad0e..00000000000 |
302 |
--- a/media-libs/libvpx/libvpx-1.6.1.ebuild |
303 |
+++ /dev/null |
304 |
@@ -1,127 +0,0 @@ |
305 |
-# Copyright 1999-2019 Gentoo Authors |
306 |
-# Distributed under the terms of the GNU General Public License v2 |
307 |
- |
308 |
-EAPI=6 |
309 |
-inherit toolchain-funcs multilib-minimal |
310 |
- |
311 |
-# To create a new testdata tarball: |
312 |
-# 1. Unpack source tarbll or checkout git tag |
313 |
-# 2. export LIBVPX_TEST_DATA_PATH=libvpx-testdata |
314 |
-# 3. configure --enable-unit-tests --enable-vp9-highbitdepth |
315 |
-# 4. make testdata |
316 |
-# 5. tar -cjf libvpx-testdata-${PV}.tar.bz2 libvpx-testdata |
317 |
- |
318 |
-LIBVPX_TESTDATA_VER=1.6.1 |
319 |
- |
320 |
-DESCRIPTION="WebM VP8 and VP9 Codec SDK" |
321 |
-HOMEPAGE="https://www.webmproject.org" |
322 |
-SRC_URI="https://storage.googleapis.com/downloads.webmproject.org/releases/webm/${P}.tar.bz2 |
323 |
- test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.bz2 )" |
324 |
- |
325 |
-LICENSE="BSD" |
326 |
-SLOT="0/4" |
327 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
328 |
-IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 doc cpu_flags_x86_mmx postproc cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 +highbitdepth static-libs svc test +threads" |
329 |
- |
330 |
-REQUIRED_USE=" |
331 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
332 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) |
333 |
- test? ( threads ) |
334 |
-" |
335 |
- |
336 |
-# Disable test phase when USE="-test" |
337 |
-RESTRICT="!test? ( test )" |
338 |
- |
339 |
-RDEPEND="" |
340 |
-DEPEND="abi_x86_32? ( dev-lang/yasm ) |
341 |
- abi_x86_64? ( dev-lang/yasm ) |
342 |
- abi_x86_x32? ( dev-lang/yasm ) |
343 |
- x86-fbsd? ( dev-lang/yasm ) |
344 |
- amd64-fbsd? ( dev-lang/yasm ) |
345 |
- doc? ( |
346 |
- app-doc/doxygen |
347 |
- dev-lang/php |
348 |
- ) |
349 |
-" |
350 |
- |
351 |
-PATCHES=( |
352 |
- "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
353 |
-) |
354 |
- |
355 |
-src_configure() { |
356 |
- # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
357 |
- # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
358 |
- # copied from php-pear-r1.eclass |
359 |
- addpredict /usr/share/snmp/mibs/.index |
360 |
- addpredict /var/lib/net-snmp/ |
361 |
- addpredict /var/lib/net-snmp/mib_indexes |
362 |
- addpredict /session_mm_cli0.sem |
363 |
- multilib-minimal_src_configure |
364 |
-} |
365 |
- |
366 |
-multilib_src_configure() { |
367 |
- unset CODECS #357487 |
368 |
- |
369 |
- # let the build system decide which AS to use (it honours $AS but |
370 |
- # then feeds it with yasm flags without checking...) #345161 |
371 |
- tc-export AS |
372 |
- case "${CHOST}" in |
373 |
- i?86*) export AS=yasm;; |
374 |
- x86_64*) export AS=yasm;; |
375 |
- esac |
376 |
- |
377 |
- # Build with correct toolchain. |
378 |
- tc-export CC CXX AR NM |
379 |
- # Link with gcc by default, the build system should override this if needed. |
380 |
- export LD="${CC}" |
381 |
- |
382 |
- local myconf |
383 |
- if multilib_is_native_abi; then |
384 |
- myconf+=" $(use_enable doc install-docs) $(use_enable doc docs)" |
385 |
- else |
386 |
- # not needed for multilib and will be overwritten anyway. |
387 |
- myconf+=" --disable-examples --disable-install-docs --disable-docs" |
388 |
- fi |
389 |
- |
390 |
- # #498364: sse doesn't work without sse2 enabled, |
391 |
- "${S}/configure" \ |
392 |
- --prefix="${EPREFIX}"/usr \ |
393 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
394 |
- --enable-pic \ |
395 |
- --enable-vp8 \ |
396 |
- --enable-vp9 \ |
397 |
- --enable-shared \ |
398 |
- --extra-cflags="${CFLAGS}" \ |
399 |
- $(use_enable cpu_flags_x86_avx avx) \ |
400 |
- $(use_enable cpu_flags_x86_avx2 avx2) \ |
401 |
- $(use_enable cpu_flags_x86_mmx mmx) \ |
402 |
- $(use_enable postproc) \ |
403 |
- $(use cpu_flags_x86_sse2 && use_enable cpu_flags_x86_sse sse || echo --disable-sse) \ |
404 |
- $(use_enable cpu_flags_x86_sse2 sse2) \ |
405 |
- $(use_enable cpu_flags_x86_sse3 sse3) \ |
406 |
- $(use_enable cpu_flags_x86_sse4_1 sse4_1) \ |
407 |
- $(use_enable cpu_flags_x86_ssse3 ssse3) \ |
408 |
- $(use_enable svc experimental) $(use_enable svc spatial-svc) \ |
409 |
- $(use_enable static-libs static) \ |
410 |
- $(use_enable test unit-tests) \ |
411 |
- $(use_enable threads multithread) \ |
412 |
- $(use_enable highbitdepth vp9-highbitdepth) \ |
413 |
- ${myconf} \ |
414 |
- || die |
415 |
-} |
416 |
- |
417 |
-multilib_src_compile() { |
418 |
- # build verbose by default and do not build examples that will not be installed |
419 |
- emake verbose=yes GEN_EXAMPLES= |
420 |
-} |
421 |
- |
422 |
-multilib_src_test() { |
423 |
- local -x LD_LIBRARY_PATH="${BUILD_DIR}" |
424 |
- local -x LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" |
425 |
- emake verbose=yes GEN_EXAMPLES= test |
426 |
-} |
427 |
- |
428 |
-multilib_src_install() { |
429 |
- emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
430 |
- multilib_is_native_abi && use doc && dodoc -r docs/html |
431 |
-} |
432 |
|
433 |
diff --git a/media-libs/libvpx/libvpx-1.7.0.ebuild b/media-libs/libvpx/libvpx-1.7.0.ebuild |
434 |
deleted file mode 100644 |
435 |
index ed1286201bc..00000000000 |
436 |
--- a/media-libs/libvpx/libvpx-1.7.0.ebuild |
437 |
+++ /dev/null |
438 |
@@ -1,130 +0,0 @@ |
439 |
-# Copyright 1999-2019 Gentoo Authors |
440 |
-# Distributed under the terms of the GNU General Public License v2 |
441 |
- |
442 |
-EAPI=6 |
443 |
-inherit toolchain-funcs multilib-minimal |
444 |
- |
445 |
-# To create a new testdata tarball: |
446 |
-# 1. Unpack source tarbll or checkout git tag |
447 |
-# 2. export LIBVPX_TEST_DATA_PATH=libvpx-testdata |
448 |
-# 3. configure --enable-unit-tests --enable-vp9-highbitdepth |
449 |
-# 4. make testdata |
450 |
-# 5. tar -cjf libvpx-testdata-${MY_PV}.tar.bz2 libvpx-testdata |
451 |
- |
452 |
-LIBVPX_TESTDATA_VER=1.7.0 |
453 |
- |
454 |
-DESCRIPTION="WebM VP8 and VP9 Codec SDK" |
455 |
-HOMEPAGE="https://www.webmproject.org" |
456 |
-SRC_URI="https://github.com/webmproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
457 |
- test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.xz )" |
458 |
- |
459 |
-LICENSE="BSD" |
460 |
-SLOT="0/5" |
461 |
-KEYWORDS="amd64 arm arm64 ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" |
462 |
-IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 doc cpu_flags_x86_mmx postproc cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 +highbitdepth static-libs svc test +threads" |
463 |
- |
464 |
-REQUIRED_USE=" |
465 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
466 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) |
467 |
- test? ( threads ) |
468 |
-" |
469 |
- |
470 |
-# Disable test phase when USE="-test" |
471 |
-RESTRICT="!test? ( test )" |
472 |
- |
473 |
-RDEPEND="" |
474 |
-DEPEND="abi_x86_32? ( dev-lang/yasm ) |
475 |
- abi_x86_64? ( dev-lang/yasm ) |
476 |
- abi_x86_x32? ( dev-lang/yasm ) |
477 |
- x86-fbsd? ( dev-lang/yasm ) |
478 |
- amd64-fbsd? ( dev-lang/yasm ) |
479 |
- doc? ( |
480 |
- app-doc/doxygen |
481 |
- dev-lang/php |
482 |
- ) |
483 |
-" |
484 |
- |
485 |
-PATCHES=( |
486 |
- "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
487 |
-) |
488 |
- |
489 |
-src_configure() { |
490 |
- # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
491 |
- # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
492 |
- # copied from php-pear-r1.eclass |
493 |
- addpredict /usr/share/snmp/mibs/.index |
494 |
- addpredict /var/lib/net-snmp/ |
495 |
- addpredict /var/lib/net-snmp/mib_indexes |
496 |
- addpredict /session_mm_cli0.sem |
497 |
- multilib-minimal_src_configure |
498 |
-} |
499 |
- |
500 |
-multilib_src_configure() { |
501 |
- unset CODECS #357487 |
502 |
- |
503 |
- # #498364: sse doesn't work without sse2 enabled, |
504 |
- local myconfargs=( |
505 |
- --prefix="${EPREFIX}"/usr |
506 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
507 |
- --enable-pic |
508 |
- --enable-vp8 |
509 |
- --enable-vp9 |
510 |
- --enable-shared |
511 |
- --extra-cflags="${CFLAGS}" |
512 |
- $(use_enable cpu_flags_x86_avx avx) |
513 |
- $(use_enable cpu_flags_x86_avx2 avx2) |
514 |
- $(use_enable cpu_flags_x86_mmx mmx) |
515 |
- $(use_enable postproc) |
516 |
- $(use cpu_flags_x86_sse2 && use_enable cpu_flags_x86_sse sse || echo --disable-sse) |
517 |
- $(use_enable cpu_flags_x86_sse2 sse2) |
518 |
- $(use_enable cpu_flags_x86_sse3 sse3) |
519 |
- $(use_enable cpu_flags_x86_sse4_1 sse4_1) |
520 |
- $(use_enable cpu_flags_x86_ssse3 ssse3) |
521 |
- $(use_enable svc experimental) $(use_enable svc spatial-svc) |
522 |
- $(use_enable static-libs static) |
523 |
- $(use_enable test unit-tests) |
524 |
- $(use_enable threads multithread) |
525 |
- $(use_enable highbitdepth vp9-highbitdepth) |
526 |
- ) |
527 |
- |
528 |
- # let the build system decide which AS to use (it honours $AS but |
529 |
- # then feeds it with yasm flags without checking...) #345161 |
530 |
- tc-export AS |
531 |
- case "${CHOST}" in |
532 |
- i?86*) export AS=yasm;; |
533 |
- x86_64*) export AS=yasm;; |
534 |
- esac |
535 |
- |
536 |
- # powerpc toolchain is not recognized anymore, #694368 |
537 |
- [[ ${CHOST} == powerpc-* ]] && myconfargs+=( --force-target=generic-gnu ) |
538 |
- |
539 |
- # Build with correct toolchain. |
540 |
- tc-export CC CXX AR NM |
541 |
- # Link with gcc by default, the build system should override this if needed. |
542 |
- export LD="${CC}" |
543 |
- |
544 |
- if multilib_is_native_abi; then |
545 |
- myconfargs+=( $(use_enable doc install-docs) $(use_enable doc docs) ) |
546 |
- else |
547 |
- # not needed for multilib and will be overwritten anyway. |
548 |
- myconfargs+=( --disable-examples --disable-install-docs --disable-docs ) |
549 |
- fi |
550 |
- |
551 |
- "${S}"/configure "${myconfargs[@]}" |
552 |
-} |
553 |
- |
554 |
-multilib_src_compile() { |
555 |
- # build verbose by default and do not build examples that will not be installed |
556 |
- emake verbose=yes GEN_EXAMPLES= |
557 |
-} |
558 |
- |
559 |
-multilib_src_test() { |
560 |
- local -x LD_LIBRARY_PATH="${BUILD_DIR}" |
561 |
- local -x LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" |
562 |
- emake verbose=yes GEN_EXAMPLES= test |
563 |
-} |
564 |
- |
565 |
-multilib_src_install() { |
566 |
- emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
567 |
- multilib_is_native_abi && use doc && dodoc -r docs/html |
568 |
-} |
569 |
|
570 |
diff --git a/media-libs/libvpx/libvpx-1.8.0-r1.ebuild b/media-libs/libvpx/libvpx-1.8.0-r1.ebuild |
571 |
deleted file mode 100644 |
572 |
index f0bd9584749..00000000000 |
573 |
--- a/media-libs/libvpx/libvpx-1.8.0-r1.ebuild |
574 |
+++ /dev/null |
575 |
@@ -1,120 +0,0 @@ |
576 |
-# Copyright 1999-2019 Gentoo Authors |
577 |
-# Distributed under the terms of the GNU General Public License v2 |
578 |
- |
579 |
-EAPI="7" |
580 |
-inherit toolchain-funcs multilib-minimal |
581 |
- |
582 |
-# To create a new testdata tarball: |
583 |
-# 1. Unpack source tarbll or checkout git tag |
584 |
-# 2. export LIBVPX_TEST_DATA_PATH=libvpx-testdata |
585 |
-# 3. configure --enable-unit-tests --enable-vp9-highbitdepth |
586 |
-# 4. make testdata |
587 |
-# 5. tar -cjf libvpx-testdata-${MY_PV}.tar.xz libvpx-testdata |
588 |
- |
589 |
-LIBVPX_TESTDATA_VER=1.8.0 |
590 |
- |
591 |
-DESCRIPTION="WebM VP8 and VP9 Codec SDK" |
592 |
-HOMEPAGE="https://www.webmproject.org" |
593 |
-SRC_URI="https://github.com/webmproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
594 |
- test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.xz )" |
595 |
- |
596 |
-LICENSE="BSD" |
597 |
-SLOT="0/6" |
598 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
599 |
-IUSE="doc +highbitdepth postproc static-libs svc test +threads" |
600 |
- |
601 |
-REQUIRED_USE="test? ( threads )" |
602 |
- |
603 |
-# Disable test phase when USE="-test" |
604 |
-RESTRICT="!test? ( test )" |
605 |
- |
606 |
-RDEPEND="" |
607 |
-DEPEND="abi_x86_32? ( dev-lang/yasm ) |
608 |
- abi_x86_64? ( dev-lang/yasm ) |
609 |
- abi_x86_x32? ( dev-lang/yasm ) |
610 |
- x86-fbsd? ( dev-lang/yasm ) |
611 |
- amd64-fbsd? ( dev-lang/yasm ) |
612 |
- doc? ( |
613 |
- app-doc/doxygen |
614 |
- dev-lang/php |
615 |
- ) |
616 |
-" |
617 |
- |
618 |
-PATCHES=( |
619 |
- "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
620 |
- "${FILESDIR}/libvpx-1.8.0-ppc64le-disable-vsx.patch" #688138 |
621 |
-) |
622 |
- |
623 |
-src_configure() { |
624 |
- # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
625 |
- # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
626 |
- # copied from php-pear-r1.eclass |
627 |
- addpredict /usr/share/snmp/mibs/.index |
628 |
- addpredict /var/lib/net-snmp/ |
629 |
- addpredict /var/lib/net-snmp/mib_indexes |
630 |
- addpredict /session_mm_cli0.sem |
631 |
- multilib-minimal_src_configure |
632 |
-} |
633 |
- |
634 |
-multilib_src_configure() { |
635 |
- unset CODECS #357487 |
636 |
- |
637 |
- # #498364: sse doesn't work without sse2 enabled, |
638 |
- local myconfargs=( |
639 |
- --prefix="${EPREFIX}"/usr |
640 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
641 |
- --enable-pic |
642 |
- --enable-vp8 |
643 |
- --enable-vp9 |
644 |
- --enable-shared |
645 |
- --extra-cflags="${CFLAGS}" |
646 |
- $(use_enable postproc) |
647 |
- $(use_enable svc experimental) |
648 |
- $(use_enable static-libs static) |
649 |
- $(use_enable test unit-tests) |
650 |
- $(use_enable threads multithread) |
651 |
- $(use_enable highbitdepth vp9-highbitdepth) |
652 |
- ) |
653 |
- |
654 |
- # let the build system decide which AS to use (it honours $AS but |
655 |
- # then feeds it with yasm flags without checking...) #345161 |
656 |
- tc-export AS |
657 |
- case "${CHOST}" in |
658 |
- i?86*) export AS=yasm;; |
659 |
- x86_64*) export AS=yasm;; |
660 |
- esac |
661 |
- |
662 |
- # powerpc toolchain is not recognized anymore, #694368 |
663 |
- [[ ${CHOST} == powerpc-* ]] && myconfargs+=( --force-target=generic-gnu ) |
664 |
- |
665 |
- # Build with correct toolchain. |
666 |
- tc-export CC CXX AR NM |
667 |
- # Link with gcc by default, the build system should override this if needed. |
668 |
- export LD="${CC}" |
669 |
- |
670 |
- if multilib_is_native_abi; then |
671 |
- myconfargs+=( $(use_enable doc install-docs) $(use_enable doc docs) ) |
672 |
- else |
673 |
- # not needed for multilib and will be overwritten anyway. |
674 |
- myconfargs+=( --disable-examples --disable-install-docs --disable-docs ) |
675 |
- fi |
676 |
- |
677 |
- echo "${S}"/configure "${myconfargs[@]}" >&2 |
678 |
- "${S}"/configure "${myconfargs[@]}" |
679 |
-} |
680 |
- |
681 |
-multilib_src_compile() { |
682 |
- # build verbose by default and do not build examples that will not be installed |
683 |
- emake verbose=yes GEN_EXAMPLES= |
684 |
-} |
685 |
- |
686 |
-multilib_src_test() { |
687 |
- local -x LD_LIBRARY_PATH="${BUILD_DIR}" |
688 |
- local -x LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" |
689 |
- emake verbose=yes GEN_EXAMPLES= test |
690 |
-} |
691 |
- |
692 |
-multilib_src_install() { |
693 |
- emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
694 |
- multilib_is_native_abi && use doc && dodoc -r docs/html |
695 |
-} |
696 |
|
697 |
diff --git a/media-libs/libvpx/libvpx-1.8.0.ebuild b/media-libs/libvpx/libvpx-1.8.0.ebuild |
698 |
deleted file mode 100644 |
699 |
index a05ed4eb72f..00000000000 |
700 |
--- a/media-libs/libvpx/libvpx-1.8.0.ebuild |
701 |
+++ /dev/null |
702 |
@@ -1,131 +0,0 @@ |
703 |
-# Copyright 1999-2019 Gentoo Authors |
704 |
-# Distributed under the terms of the GNU General Public License v2 |
705 |
- |
706 |
-EAPI="7" |
707 |
-inherit toolchain-funcs multilib-minimal |
708 |
- |
709 |
-# To create a new testdata tarball: |
710 |
-# 1. Unpack source tarbll or checkout git tag |
711 |
-# 2. export LIBVPX_TEST_DATA_PATH=libvpx-testdata |
712 |
-# 3. configure --enable-unit-tests --enable-vp9-highbitdepth |
713 |
-# 4. make testdata |
714 |
-# 5. tar -cjf libvpx-testdata-${MY_PV}.tar.xz libvpx-testdata |
715 |
- |
716 |
-LIBVPX_TESTDATA_VER=1.8.0 |
717 |
- |
718 |
-DESCRIPTION="WebM VP8 and VP9 Codec SDK" |
719 |
-HOMEPAGE="https://www.webmproject.org" |
720 |
-SRC_URI="https://github.com/webmproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
721 |
- test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.xz )" |
722 |
- |
723 |
-LICENSE="BSD" |
724 |
-SLOT="0/6" |
725 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
726 |
-IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 doc cpu_flags_x86_mmx postproc cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 +highbitdepth static-libs svc test +threads" |
727 |
- |
728 |
-REQUIRED_USE=" |
729 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
730 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) |
731 |
- test? ( threads ) |
732 |
-" |
733 |
- |
734 |
-# Disable test phase when USE="-test" |
735 |
-RESTRICT="!test? ( test )" |
736 |
- |
737 |
-RDEPEND="" |
738 |
-DEPEND="abi_x86_32? ( dev-lang/yasm ) |
739 |
- abi_x86_64? ( dev-lang/yasm ) |
740 |
- abi_x86_x32? ( dev-lang/yasm ) |
741 |
- x86-fbsd? ( dev-lang/yasm ) |
742 |
- amd64-fbsd? ( dev-lang/yasm ) |
743 |
- doc? ( |
744 |
- app-doc/doxygen |
745 |
- dev-lang/php |
746 |
- ) |
747 |
-" |
748 |
- |
749 |
-PATCHES=( |
750 |
- "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
751 |
- "${FILESDIR}/libvpx-1.8.0-ppc64le-disable-vsx.patch" #688138 |
752 |
-) |
753 |
- |
754 |
-src_configure() { |
755 |
- # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
756 |
- # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
757 |
- # copied from php-pear-r1.eclass |
758 |
- addpredict /usr/share/snmp/mibs/.index |
759 |
- addpredict /var/lib/net-snmp/ |
760 |
- addpredict /var/lib/net-snmp/mib_indexes |
761 |
- addpredict /session_mm_cli0.sem |
762 |
- multilib-minimal_src_configure |
763 |
-} |
764 |
- |
765 |
-multilib_src_configure() { |
766 |
- unset CODECS #357487 |
767 |
- |
768 |
- # #498364: sse doesn't work without sse2 enabled, |
769 |
- local myconfargs=( |
770 |
- --prefix="${EPREFIX}"/usr |
771 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
772 |
- --enable-pic |
773 |
- --enable-vp8 |
774 |
- --enable-vp9 |
775 |
- --enable-shared |
776 |
- --extra-cflags="${CFLAGS}" |
777 |
- $(use_enable cpu_flags_x86_avx avx) |
778 |
- $(use_enable cpu_flags_x86_avx2 avx2) |
779 |
- $(use_enable cpu_flags_x86_mmx mmx) |
780 |
- $(use_enable postproc) |
781 |
- $(use cpu_flags_x86_sse2 && use_enable cpu_flags_x86_sse sse || echo --disable-sse) |
782 |
- $(use_enable cpu_flags_x86_sse2 sse2) |
783 |
- $(use_enable cpu_flags_x86_sse3 sse3) |
784 |
- $(use_enable cpu_flags_x86_sse4_1 sse4_1) |
785 |
- $(use_enable cpu_flags_x86_ssse3 ssse3) |
786 |
- $(use_enable svc experimental) |
787 |
- $(use_enable static-libs static) |
788 |
- $(use_enable test unit-tests) |
789 |
- $(use_enable threads multithread) |
790 |
- $(use_enable highbitdepth vp9-highbitdepth) |
791 |
- ) |
792 |
- |
793 |
- # let the build system decide which AS to use (it honours $AS but |
794 |
- # then feeds it with yasm flags without checking...) #345161 |
795 |
- tc-export AS |
796 |
- case "${CHOST}" in |
797 |
- i?86*) export AS=yasm;; |
798 |
- x86_64*) export AS=yasm;; |
799 |
- esac |
800 |
- |
801 |
- # powerpc toolchain is not recognized anymore, #694368 |
802 |
- [[ ${CHOST} == powerpc-* ]] && myconfargs+=( --force-target=generic-gnu ) |
803 |
- |
804 |
- # Build with correct toolchain. |
805 |
- tc-export CC CXX AR NM |
806 |
- # Link with gcc by default, the build system should override this if needed. |
807 |
- export LD="${CC}" |
808 |
- |
809 |
- if multilib_is_native_abi; then |
810 |
- myconfargs+=( $(use_enable doc install-docs) $(use_enable doc docs) ) |
811 |
- else |
812 |
- # not needed for multilib and will be overwritten anyway. |
813 |
- myconfargs+=( --disable-examples --disable-install-docs --disable-docs ) |
814 |
- fi |
815 |
- |
816 |
- "${S}"/configure "${myconfargs[@]}" |
817 |
-} |
818 |
- |
819 |
-multilib_src_compile() { |
820 |
- # build verbose by default and do not build examples that will not be installed |
821 |
- emake verbose=yes GEN_EXAMPLES= |
822 |
-} |
823 |
- |
824 |
-multilib_src_test() { |
825 |
- local -x LD_LIBRARY_PATH="${BUILD_DIR}" |
826 |
- local -x LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" |
827 |
- emake verbose=yes GEN_EXAMPLES= test |
828 |
-} |
829 |
- |
830 |
-multilib_src_install() { |
831 |
- emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
832 |
- multilib_is_native_abi && use doc && dodoc -r docs/html |
833 |
-} |