1 |
commit: 9a6dfc7c32e1eea612182939932c32a305ec8c2b |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 8 06:55:26 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 8 06:55:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6dfc7c |
7 |
|
8 |
media-libs/libvpx: Bump to version 1.7.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/646054 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
media-libs/libvpx/Manifest | 2 + |
14 |
media-libs/libvpx/libvpx-1.7.0.ebuild | 127 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 129 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/libvpx/Manifest b/media-libs/libvpx/Manifest |
18 |
index bc0a2454c1c..0cf9742727b 100644 |
19 |
--- a/media-libs/libvpx/Manifest |
20 |
+++ b/media-libs/libvpx/Manifest |
21 |
@@ -1,6 +1,8 @@ |
22 |
DIST libvpx-1.5.0.tar.bz2 1906571 BLAKE2B 1e4e2d7ac6ae046d733361d644a9c36b84f03353fd55bc938b064bcba565d943affa6866df4e9c23b3a1120bf34ad660932bad8c9d8e480d42cdf96b4b937d49 SHA512 5a952aa53e539a130d316723d424fa02a8f42a450950d74a16d8abc5df569ba5559b3b09a32140b638d7a0cd54be1c7b0f8306ad286825bc1281f513bb665fc5 |
23 |
DIST libvpx-1.6.0.tar.bz2 1943026 BLAKE2B 1fbea27d73b2120ed807108b8ba09c4118e2d8381fdcbbf8661c5fd664e6272d6c14b73c7b8317b97fa51b212d3ea2429819e0e17adf6afcb8d0f5fb6dd9a68a SHA512 dd753372a156bbf7ceb4090276e5fb32b4c8581c93925dded93efee74153b5eb24ee8c3d8ee6339a6878482f0ecf178a2befeeb36e17eada6c440b48c60e9162 |
24 |
DIST libvpx-1.6.1.tar.bz2 1959534 BLAKE2B 67f73ffd2569bde46db98e7fcb36f7b37d33927fad8c3916ebe1810e63e7aae963bd39ba1f399be079ea4c9f52736f98a603c810f9412643a91166dfb09ed895 SHA512 1a4b009fe1737715c6563a79848126a5859394a5074b1e9cca9bc2e213df90890c15e708040d5f2c96c7c21e268f51e1352ac6911514bf891a4bf3eea154159d |
25 |
+DIST libvpx-1.7.0.tar.gz 2679797 BLAKE2B de7992adb517e375c5be2a9facf2b4a73174adcaef11185ed6d3102c2f6b73f378b0d415c5e3a4d915b3a6889bd8b31ba3e8c007a87a433a345ef7696a1dd899 SHA512 8b3b766b550f8d86907628d7ed88035f9a2612aac21542e0fd5ad35b905eb82cbe1be02a1a24afce7a3bcc4766f62611971f72724761996b392136c40a1e7ff0 |
26 |
DIST libvpx-testdata-1.5.0.tar.bz2 117022525 BLAKE2B d0b5e96694d84d825b874df208dc3b3156ab0d5e9d567e1e05cdc7b88f47126917b84178748f0971ce14d58ee031906b72070bec622983ec56244159b8b759ee SHA512 58abcea159d1f709c2b9b52e8ae381481ed0ee1f43972f5e52d628754844ed23f5f77180a9c3f950a19fd8e2eaec406288d9ec65a42c9d6d080a6948827698bb |
27 |
DIST libvpx-testdata-1.6.0.tar.bz2 121020858 BLAKE2B 93bbaa4514e46b762fbf86d66394b228d62c19906dc79c5c661feedf088d09d4b6c2ac908dc8b1ac4236a801047d5d608b17a8bc0fa5bd5ca0c992cd0729fc7a SHA512 639e229bd97e7a92a29e636f548234a87dbe63673d968cdfbec1faf9ccb0ee2087ad00b0a5bfb1581bea6b17e70bb449e9a046da4d9891f59ec79773ece4294e |
28 |
DIST libvpx-testdata-1.6.1.tar.bz2 158774682 BLAKE2B 0ba1897e015c69cbf98b645cc634f98fdaf58aa814ad2cf93ee1812a38d279a570b856017822db0b21215c0e6d2d069c3f40692317c885ffbc3b59c236a754ba SHA512 9038774a6955cb6664ea664b4d8e08b0e7a2acba85429da9fd84f522bc7a03d57f6d9f1302481136a718507113babbe4786ff7a648130298ad2c0b3cbe8e82ab |
29 |
+DIST libvpx-testdata-1.7.0.tar.xz 238790100 BLAKE2B 1d14e794341d35402eaf54d398ebed56b0983908e397ae677737e0f313ea0bfc9c4a39be91765b02a07a8eb9b55529d5f998efcc87b1b493b0e326e02193d982 SHA512 1556345e41674f0846a7419828972ec27c3c37fe270fa1deb45e03665f60ec088d79134aee0d2e27003b130636eeed4a15ea3f701c9d7014f3ca2785467767a8 |
30 |
|
31 |
diff --git a/media-libs/libvpx/libvpx-1.7.0.ebuild b/media-libs/libvpx/libvpx-1.7.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..edd1717a223 |
34 |
--- /dev/null |
35 |
+++ b/media-libs/libvpx/libvpx-1.7.0.ebuild |
36 |
@@ -0,0 +1,127 @@ |
37 |
+# Copyright 1999-2018 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+inherit toolchain-funcs multilib-minimal |
42 |
+ |
43 |
+# To create a new testdata tarball: |
44 |
+# 1. Unpack source tarbll or checkout git tag |
45 |
+# 2. export LIBVPX_TEST_DATA_PATH=libvpx-testdata |
46 |
+# 3. configure --enable-unit-tests --enable-vp9-highbitdepth |
47 |
+# 4. make testdata |
48 |
+# 5. tar -cjf libvpx-testdata-${MY_PV}.tar.bz2 libvpx-testdata |
49 |
+ |
50 |
+LIBVPX_TESTDATA_VER=1.7.0 |
51 |
+ |
52 |
+DESCRIPTION="WebM VP8 and VP9 Codec SDK" |
53 |
+HOMEPAGE="http://www.webmproject.org" |
54 |
+SRC_URI="https://github.com/webmproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
55 |
+ test? ( mirror://gentoo/${PN}-testdata-${LIBVPX_TESTDATA_VER}.tar.xz )" |
56 |
+ |
57 |
+LICENSE="BSD" |
58 |
+SLOT="0/5" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
60 |
+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" |
61 |
+ |
62 |
+REQUIRED_USE=" |
63 |
+ cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
64 |
+ cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) |
65 |
+ test? ( threads ) |
66 |
+" |
67 |
+ |
68 |
+# Disable test phase when USE="-test" |
69 |
+RESTRICT="!test? ( test )" |
70 |
+ |
71 |
+RDEPEND="abi_x86_32? ( !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
72 |
+DEPEND="abi_x86_32? ( dev-lang/yasm ) |
73 |
+ abi_x86_64? ( dev-lang/yasm ) |
74 |
+ abi_x86_x32? ( dev-lang/yasm ) |
75 |
+ x86-fbsd? ( dev-lang/yasm ) |
76 |
+ amd64-fbsd? ( dev-lang/yasm ) |
77 |
+ doc? ( |
78 |
+ app-doc/doxygen |
79 |
+ dev-lang/php |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
85 |
+) |
86 |
+ |
87 |
+src_configure() { |
88 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=384585 |
89 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=465988 |
90 |
+ # copied from php-pear-r1.eclass |
91 |
+ addpredict /usr/share/snmp/mibs/.index |
92 |
+ addpredict /var/lib/net-snmp/ |
93 |
+ addpredict /var/lib/net-snmp/mib_indexes |
94 |
+ addpredict /session_mm_cli0.sem |
95 |
+ multilib-minimal_src_configure |
96 |
+} |
97 |
+ |
98 |
+multilib_src_configure() { |
99 |
+ unset CODECS #357487 |
100 |
+ |
101 |
+ # #498364: sse doesn't work without sse2 enabled, |
102 |
+ local myconfargs=( |
103 |
+ --prefix="${EPREFIX}"/usr |
104 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) |
105 |
+ --enable-pic |
106 |
+ --enable-vp8 |
107 |
+ --enable-vp9 |
108 |
+ --enable-shared |
109 |
+ --extra-cflags="${CFLAGS}" |
110 |
+ $(use_enable cpu_flags_x86_avx avx) |
111 |
+ $(use_enable cpu_flags_x86_avx2 avx2) |
112 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
113 |
+ $(use_enable postproc) |
114 |
+ $(use cpu_flags_x86_sse2 && use_enable cpu_flags_x86_sse sse || echo --disable-sse) |
115 |
+ $(use_enable cpu_flags_x86_sse2 sse2) |
116 |
+ $(use_enable cpu_flags_x86_sse3 sse3) |
117 |
+ $(use_enable cpu_flags_x86_sse4_1 sse4_1) |
118 |
+ $(use_enable cpu_flags_x86_ssse3 ssse3) |
119 |
+ $(use_enable svc experimental) $(use_enable svc spatial-svc) |
120 |
+ $(use_enable static-libs static) |
121 |
+ $(use_enable test unit-tests) |
122 |
+ $(use_enable threads multithread) |
123 |
+ $(use_enable highbitdepth vp9-highbitdepth) |
124 |
+ ) |
125 |
+ |
126 |
+ # let the build system decide which AS to use (it honours $AS but |
127 |
+ # then feeds it with yasm flags without checking...) #345161 |
128 |
+ tc-export AS |
129 |
+ case "${CHOST}" in |
130 |
+ i?86*) export AS=yasm;; |
131 |
+ x86_64*) export AS=yasm;; |
132 |
+ esac |
133 |
+ |
134 |
+ # Build with correct toolchain. |
135 |
+ tc-export CC CXX AR NM |
136 |
+ # Link with gcc by default, the build system should override this if needed. |
137 |
+ export LD="${CC}" |
138 |
+ |
139 |
+ if multilib_is_native_abi; then |
140 |
+ myconfargs+=( $(use_enable doc install-docs) $(use_enable doc docs) ) |
141 |
+ else |
142 |
+ # not needed for multilib and will be overwritten anyway. |
143 |
+ myconfargs+=( --disable-examples --disable-install-docs --disable-docs ) |
144 |
+ fi |
145 |
+ |
146 |
+ "${S}"/configure "${myconfargs[@]}" |
147 |
+} |
148 |
+ |
149 |
+multilib_src_compile() { |
150 |
+ # build verbose by default and do not build examples that will not be installed |
151 |
+ emake verbose=yes GEN_EXAMPLES= |
152 |
+} |
153 |
+ |
154 |
+multilib_src_test() { |
155 |
+ local -x LD_LIBRARY_PATH="${BUILD_DIR}" |
156 |
+ local -x LIBVPX_TEST_DATA_PATH="${WORKDIR}/${PN}-testdata" |
157 |
+ emake verbose=yes GEN_EXAMPLES= test |
158 |
+} |
159 |
+ |
160 |
+multilib_src_install() { |
161 |
+ emake verbose=yes GEN_EXAMPLES= DESTDIR="${D}" install |
162 |
+ multilib_is_native_abi && use doc && dodoc -r docs/html |
163 |
+} |