1 |
commit: efd2ed5c48f0e8ee2ec0ade8b42087fa211b5947 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 4 12:08:32 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 4 12:08:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efd2ed5c |
7 |
|
8 |
media-libs/x265: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
media-libs/x265/Manifest | 5 -- |
13 |
media-libs/x265/x265-1.5.ebuild | 74 ----------------- |
14 |
media-libs/x265/x265-1.7.ebuild | 82 ------------------- |
15 |
media-libs/x265/x265-1.8.ebuild | 94 ---------------------- |
16 |
media-libs/x265/x265-1.9.ebuild | 171 ---------------------------------------- |
17 |
media-libs/x265/x265-2.0.ebuild | 171 ---------------------------------------- |
18 |
media-libs/x265/x265-2.1.ebuild | 171 ---------------------------------------- |
19 |
7 files changed, 768 deletions(-) |
20 |
|
21 |
diff --git a/media-libs/x265/Manifest b/media-libs/x265/Manifest |
22 |
index 59c60b4..7c512b4 100644 |
23 |
--- a/media-libs/x265/Manifest |
24 |
+++ b/media-libs/x265/Manifest |
25 |
@@ -1,7 +1,2 @@ |
26 |
-DIST x265-1.5.tar.bz2 588263 SHA256 da226cbe56938f85d5a3d123d1f5ca895795f2eac794e45af4b70047e03d8648 SHA512 e5db8c3428b7b393c5c3049041de152b43821a083bc1988903ade8d6ce5fdc71a2fe0ad9efa0564aa3c2c6f1ec31659fcd2b338f6b53d22a202811be7071f077 WHIRLPOOL 9e1256832a3ece06d68a872b44337285afbbeebbd149ac71fda25524d60310f595adedce1b28f0ed5a59feadef39848d797bd58f4b0d7c7d707bcddca7520f6d |
27 |
-DIST x265_1.7.tar.gz 844212 SHA256 a52ca95e8e64219c1e8e73a9abf0bb7151ced2c93756a623cf2b7e5cf8226585 SHA512 cf6fce24b008d36bbc79e2488ab5fb3010aa588113645597ffc66959088a73b3ba72f6bb81bd16e36847a73b50b8f264cff0899162552418ae499170c286eb89 WHIRLPOOL 9c932fd85fbc06a63802f8aabdbb5f44fe4bee6bc2d0996df8788acad30be965bde7b56f562e4ca8ae87856fbcf728b6938a701afb397ef2195437b73a60c744 |
28 |
DIST x265_1.8.tar.gz 918469 SHA256 760e6280c688f1ea90c492d19fc6d4084ca1c4b0ea9b2e3c736d32565c30d857 SHA512 498c25ff6e5c68849db11d1509cc6f7e96d3a2e6594542589ac5b9f6d65a09ab3af590dcc3357f985f218f8d54af364c998cfedfbe95644747835c059214935c WHIRLPOOL ef5c1a31e8ab45c2918e24e97c09809eda735df354d9000e3935b054ca01fd60ef1d1afad6c161c7c62b8b016c2a80155665448a18e4037fab8c56a841488eeb |
29 |
-DIST x265_1.9.tar.gz 956101 SHA256 3e4654133ed957a98708fdb4cb9a154d9e80922b84e26e43fc462a101c5b15c8 SHA512 1c399101374da58d0661786a6144dd25a2028e25bcb99b3084d8839b0bd9c20bccf5c0e4413882f16b3b1c49f96710746a16cb690f3811dffb08c3befdc8e5f1 WHIRLPOOL 508d21ad0ff7ed8eb2fe9a9a69113dc7dca07306ddace6de22b29e71dad7242fae0b6e4864a409a0279d85adbe054b4ffbc8c95fe915163b506f5bab25245f8c |
30 |
-DIST x265_2.0.tar.gz 1028299 SHA256 5a7f6797bee33310c690be5d9a6c63125f36663ac3478e98ac6b6142a70bce1f SHA512 4262a32cf9a34c494770c7917fbaba88e8211c332a91932f4cd096ce25394979e1d43ae641be0aa480af1d0580e842ca70f58005dd41361b78dfd25870035a1e WHIRLPOOL c85e42a3bbf3ee9d84a69615b117444088e16c45cea7362956c92dc1097babdc8cb819d101bf17a97bfb0128e93a5c85cf9c8d980dc75de9de90dcf6a3e46b09 |
31 |
-DIST x265_2.1.tar.gz 1037400 SHA256 b3bc83754e91ed5655c8cba5a2ed48e6b9ab39699c9ed6554c670211d5870f9c SHA512 44ad6815efb039054935f2887f0c98604898a6b5bf144f845df92038ef47ea1c21f2942501294514b05e7eaffd988e52ca777da0be97e57fdd77c89ff0fda421 WHIRLPOOL f91e7fffdccb494c32a6a4b18b72e72537c89bc0a1117e26f2030b9f3d5d11a0e642e25faa83c0b59ca117666d1d81a21823b653d3e0d138073478176908f83b |
32 |
DIST x265_2.2.tar.gz 1203801 SHA256 b872552535e41fbffa03ba7cbcd3479c42c4053868309292e78e147b7773ac4b SHA512 335bb38cf0892f2c4310033b076d51115c0b7faa9596a4f556dde5e3d1378d04f3d0055cb0bf2441eb725b7f84c246174bdc315eeb4ddde61ef9d79469f44eef WHIRLPOOL 6aa6fb3669abbb6e3fd9dd9ffe38f595805a61beedcfccd509606a9c3a19f79037a518269206ddcac7231de45165f000e59c3b0f279921a6aa8de2cb5b38a7ec |
33 |
|
34 |
diff --git a/media-libs/x265/x265-1.5.ebuild b/media-libs/x265/x265-1.5.ebuild |
35 |
deleted file mode 100644 |
36 |
index 34048b7..00000000 |
37 |
--- a/media-libs/x265/x265-1.5.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,74 +0,0 @@ |
40 |
-# Copyright 1999-2015 Gentoo Foundation |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
-# $Id$ |
43 |
- |
44 |
-EAPI=5 |
45 |
- |
46 |
-inherit cmake-multilib multilib flag-o-matic |
47 |
- |
48 |
-if [[ ${PV} = 9999* ]]; then |
49 |
- inherit mercurial |
50 |
- EHG_REPO_URI="https://bitbucket.org/multicoreware/x265" |
51 |
-else |
52 |
- SRC_URI="https://bitbucket.org/multicoreware/x265/get/${PV}.tar.bz2 -> ${P}.tar.bz2" |
53 |
- KEYWORDS="amd64 arm hppa ~ppc ppc64 x86" |
54 |
-fi |
55 |
- |
56 |
-DESCRIPTION="Library for encoding video streams into the H.265/HEVC format" |
57 |
-HOMEPAGE="http://x265.org/" |
58 |
- |
59 |
-LICENSE="GPL-2" |
60 |
-# subslot = libx265 soname |
61 |
-SLOT="0/43" |
62 |
-IUSE="+10bit test" |
63 |
- |
64 |
-ASM_DEPEND=">=dev-lang/yasm-1.2.0" |
65 |
-RDEPEND="" |
66 |
-DEPEND="${RDEPEND} |
67 |
- abi_x86_32? ( ${ASM_DEPEND} ) |
68 |
- abi_x86_64? ( ${ASM_DEPEND} )" |
69 |
- |
70 |
-src_unpack() { |
71 |
- if [[ ${PV} = 9999* ]]; then |
72 |
- mercurial_src_unpack |
73 |
- # Can't set it at global scope due to mercurial.eclass limitations... |
74 |
- export S=${WORKDIR}/${P}/source |
75 |
- else |
76 |
- unpack ${A} |
77 |
- export S=$(echo "${WORKDIR}"/*${PN}*/source) |
78 |
- fi |
79 |
-} |
80 |
- |
81 |
-multilib_src_configure() { |
82 |
- append-cflags -fPIC |
83 |
- append-cxxflags -fPIC |
84 |
- local mycmakeargs=( |
85 |
- $(cmake-utils_use_enable test TESTS) |
86 |
- $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF") |
87 |
- -DHIGH_BIT_DEPTH=$(usex 10bit "ON" "OFF") |
88 |
- -DLIB_INSTALL_DIR="$(get_libdir)" |
89 |
- ) |
90 |
- cmake-utils_src_configure |
91 |
-} |
92 |
- |
93 |
-src_configure() { |
94 |
- multilib_parallel_foreach_abi multilib_src_configure |
95 |
-} |
96 |
- |
97 |
-multilib_src_test() { |
98 |
- if has ${MULTILIB_ABI_FLAG} abi_x86_32 abi_x86_64 ; then |
99 |
- cd "${BUILD_DIR}/test" || die |
100 |
- for i in TestBench ; do |
101 |
- ./${i} || die |
102 |
- done |
103 |
- fi |
104 |
-} |
105 |
- |
106 |
-src_test() { |
107 |
- multilib_foreach_abi multilib_src_test |
108 |
-} |
109 |
- |
110 |
-src_install() { |
111 |
- cmake-multilib_src_install |
112 |
- dodoc -r "${S}/../doc/"* |
113 |
-} |
114 |
|
115 |
diff --git a/media-libs/x265/x265-1.7.ebuild b/media-libs/x265/x265-1.7.ebuild |
116 |
deleted file mode 100644 |
117 |
index 008e9cb..00000000 |
118 |
--- a/media-libs/x265/x265-1.7.ebuild |
119 |
+++ /dev/null |
120 |
@@ -1,82 +0,0 @@ |
121 |
-# Copyright 1999-2015 Gentoo Foundation |
122 |
-# Distributed under the terms of the GNU General Public License v2 |
123 |
-# $Id$ |
124 |
- |
125 |
-EAPI=5 |
126 |
- |
127 |
-inherit cmake-multilib multilib flag-o-matic |
128 |
- |
129 |
-if [[ ${PV} = 9999* ]]; then |
130 |
- inherit mercurial |
131 |
- EHG_REPO_URI="https://bitbucket.org/multicoreware/x265" |
132 |
-else |
133 |
- SRC_URI=" |
134 |
- https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz |
135 |
- http://ftp.videolan.org/pub/videolan/x265/${PN}_${PV}.tar.gz" |
136 |
- KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
137 |
-fi |
138 |
- |
139 |
-DESCRIPTION="Library for encoding video streams into the H.265/HEVC format" |
140 |
-HOMEPAGE="http://x265.org/" |
141 |
- |
142 |
-LICENSE="GPL-2" |
143 |
-# subslot = libx265 soname |
144 |
-SLOT="0/59" |
145 |
-IUSE="+10bit test" |
146 |
- |
147 |
-ASM_DEPEND=">=dev-lang/yasm-1.2.0" |
148 |
-RDEPEND="" |
149 |
-DEPEND="${RDEPEND} |
150 |
- abi_x86_32? ( ${ASM_DEPEND} ) |
151 |
- abi_x86_64? ( ${ASM_DEPEND} )" |
152 |
- |
153 |
-src_unpack() { |
154 |
- if [[ ${PV} = 9999* ]]; then |
155 |
- mercurial_src_unpack |
156 |
- # Can't set it at global scope due to mercurial.eclass limitations... |
157 |
- export S=${WORKDIR}/${P}/source |
158 |
- else |
159 |
- unpack ${A} |
160 |
- export S="${WORKDIR}/${PN}_${PV}/source" |
161 |
- fi |
162 |
-} |
163 |
- |
164 |
-multilib_src_configure() { |
165 |
- append-cflags -fPIC |
166 |
- append-cxxflags -fPIC |
167 |
- local mycmakeargs=( |
168 |
- $(cmake-utils_use_enable test TESTS) |
169 |
- $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF") |
170 |
- -DHIGH_BIT_DEPTH=$(usex 10bit "ON" "OFF") |
171 |
- -DLIB_INSTALL_DIR="$(get_libdir)" |
172 |
- ) |
173 |
- |
174 |
- if [ "${ABI}" = x86 ] ; then |
175 |
- use 10bit && ewarn "Disabling 10bit support on x86 as it does not build (or requires to disable assembly optimizations)" |
176 |
- mycmakeargs+=( -DHIGH_BIT_DEPTH=OFF ) |
177 |
- fi |
178 |
- |
179 |
- cmake-utils_src_configure |
180 |
-} |
181 |
- |
182 |
-src_configure() { |
183 |
- multilib_parallel_foreach_abi multilib_src_configure |
184 |
-} |
185 |
- |
186 |
-multilib_src_test() { |
187 |
- if has ${MULTILIB_ABI_FLAG} abi_x86_32 abi_x86_64 ; then |
188 |
- cd "${BUILD_DIR}/test" || die |
189 |
- for i in TestBench ; do |
190 |
- ./${i} || die |
191 |
- done |
192 |
- fi |
193 |
-} |
194 |
- |
195 |
-src_test() { |
196 |
- multilib_foreach_abi multilib_src_test |
197 |
-} |
198 |
- |
199 |
-src_install() { |
200 |
- cmake-multilib_src_install |
201 |
- dodoc -r "${S}/../doc/"* |
202 |
-} |
203 |
|
204 |
diff --git a/media-libs/x265/x265-1.8.ebuild b/media-libs/x265/x265-1.8.ebuild |
205 |
deleted file mode 100644 |
206 |
index 1505f63..00000000 |
207 |
--- a/media-libs/x265/x265-1.8.ebuild |
208 |
+++ /dev/null |
209 |
@@ -1,94 +0,0 @@ |
210 |
-# Copyright 1999-2015 Gentoo Foundation |
211 |
-# Distributed under the terms of the GNU General Public License v2 |
212 |
-# $Id$ |
213 |
- |
214 |
-EAPI=5 |
215 |
- |
216 |
-inherit cmake-multilib multilib flag-o-matic |
217 |
- |
218 |
-if [[ ${PV} = 9999* ]]; then |
219 |
- inherit mercurial |
220 |
- EHG_REPO_URI="https://bitbucket.org/multicoreware/x265" |
221 |
-else |
222 |
- SRC_URI=" |
223 |
- https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz |
224 |
- http://ftp.videolan.org/pub/videolan/x265/${PN}_${PV}.tar.gz" |
225 |
- KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
226 |
-fi |
227 |
- |
228 |
-DESCRIPTION="Library for encoding video streams into the H.265/HEVC format" |
229 |
-HOMEPAGE="http://x265.org/" |
230 |
- |
231 |
-LICENSE="GPL-2" |
232 |
-# subslot = libx265 soname |
233 |
-SLOT="0/68" |
234 |
-IUSE="+10bit pic test" |
235 |
- |
236 |
-ASM_DEPEND=">=dev-lang/yasm-1.2.0" |
237 |
-RDEPEND="" |
238 |
-DEPEND="${RDEPEND} |
239 |
- abi_x86_32? ( ${ASM_DEPEND} ) |
240 |
- abi_x86_64? ( ${ASM_DEPEND} )" |
241 |
- |
242 |
-src_unpack() { |
243 |
- if [[ ${PV} = 9999* ]]; then |
244 |
- mercurial_src_unpack |
245 |
- # Can't set it at global scope due to mercurial.eclass limitations... |
246 |
- export S=${WORKDIR}/${P}/source |
247 |
- else |
248 |
- unpack ${A} |
249 |
- export S="$(echo "${WORKDIR}/${PN}_"*"/source")" |
250 |
- fi |
251 |
-} |
252 |
- |
253 |
-src_prepare() { |
254 |
- epatch "${FILESDIR}/${PV}-build-Disable-march-selection-from-CMakeLists.txt.patch" # bug #510890 |
255 |
-} |
256 |
- |
257 |
-multilib_src_configure() { |
258 |
- append-cflags -fPIC |
259 |
- append-cxxflags -fPIC |
260 |
- local mycmakeargs=( |
261 |
- $(cmake-utils_use_enable test TESTS) |
262 |
- $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF") |
263 |
- -DHIGH_BIT_DEPTH=$(usex 10bit "ON" "OFF") |
264 |
- -DLIB_INSTALL_DIR="$(get_libdir)" |
265 |
- ) |
266 |
- |
267 |
- if [[ ${ABI} = x86 ]] ; then |
268 |
- use 10bit && ewarn "Disabling 10bit support on x86 as it does not build (or requires to disable assembly optimizations)" |
269 |
- mycmakeargs+=( -DHIGH_BIT_DEPTH=OFF ) |
270 |
- # Bug #528202 |
271 |
- if use pic ; then |
272 |
- ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it." |
273 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
274 |
- fi |
275 |
- elif [[ ${ABI} = x32 ]] ; then |
276 |
- # bug #510890 |
277 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
278 |
- fi |
279 |
- |
280 |
- cmake-utils_src_configure |
281 |
-} |
282 |
- |
283 |
-src_configure() { |
284 |
- multilib_parallel_foreach_abi multilib_src_configure |
285 |
-} |
286 |
- |
287 |
-multilib_src_test() { |
288 |
- if [ -x "${BUILD_DIR}/test/TestBench" ] ; then |
289 |
- "${BUILD_DIR}/test/TestBench" || die |
290 |
- else |
291 |
- einfo "Unit tests check only assembly, and you do not seem to have any." |
292 |
- einfo "Skipping tests." |
293 |
- fi |
294 |
-} |
295 |
- |
296 |
-src_test() { |
297 |
- multilib_foreach_abi multilib_src_test |
298 |
-} |
299 |
- |
300 |
-src_install() { |
301 |
- cmake-multilib_src_install |
302 |
- dodoc -r "${S}/../doc/"* |
303 |
-} |
304 |
|
305 |
diff --git a/media-libs/x265/x265-1.9.ebuild b/media-libs/x265/x265-1.9.ebuild |
306 |
deleted file mode 100644 |
307 |
index 9e5db6a..00000000 |
308 |
--- a/media-libs/x265/x265-1.9.ebuild |
309 |
+++ /dev/null |
310 |
@@ -1,171 +0,0 @@ |
311 |
-# Copyright 1999-2015 Gentoo Foundation |
312 |
-# Distributed under the terms of the GNU General Public License v2 |
313 |
-# $Id$ |
314 |
- |
315 |
-EAPI=5 |
316 |
- |
317 |
-inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic |
318 |
- |
319 |
-if [[ ${PV} = 9999* ]]; then |
320 |
- inherit mercurial |
321 |
- EHG_REPO_URI="https://bitbucket.org/multicoreware/x265" |
322 |
-else |
323 |
- SRC_URI=" |
324 |
- https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz |
325 |
- http://ftp.videolan.org/pub/videolan/x265/${PN}_${PV}.tar.gz" |
326 |
- KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
327 |
-fi |
328 |
- |
329 |
-DESCRIPTION="Library for encoding video streams into the H.265/HEVC format" |
330 |
-HOMEPAGE="http://x265.org/" |
331 |
- |
332 |
-LICENSE="GPL-2" |
333 |
-# subslot = libx265 soname |
334 |
-SLOT="0/79" |
335 |
-IUSE="+10bit +12bit numa pic test" |
336 |
- |
337 |
-ASM_DEPEND=">=dev-lang/yasm-1.2.0" |
338 |
-RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )" |
339 |
-DEPEND="${RDEPEND} |
340 |
- abi_x86_32? ( ${ASM_DEPEND} ) |
341 |
- abi_x86_64? ( ${ASM_DEPEND} )" |
342 |
- |
343 |
-src_unpack() { |
344 |
- if [[ ${PV} = 9999* ]]; then |
345 |
- mercurial_src_unpack |
346 |
- # Can't set it at global scope due to mercurial.eclass limitations... |
347 |
- export S=${WORKDIR}/${P}/source |
348 |
- else |
349 |
- unpack ${A} |
350 |
- export S="$(echo "${WORKDIR}/${PN}_"*"/source")" |
351 |
- fi |
352 |
-} |
353 |
- |
354 |
-# By default, the library and the encoder is configured for only one output bit |
355 |
-# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC |
356 |
-# files with a different bit depth, which is annoying. However, upstream |
357 |
-# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all |
358 |
-# that together so that the resulting library can produce all three of them |
359 |
-# instead of only one. |
360 |
-# The API requires the bit depth parameter, so that libx265 can then chose which |
361 |
-# variant of the encoder to use. |
362 |
-# To achieve this, we have to build one (static) library for each non-main |
363 |
-# variant, and link it into the main library. |
364 |
-# Upstream documents using the 8bit variant as main library, hence we do not |
365 |
-# allow disabling it: "main" *MUST* come last in the following list. |
366 |
- |
367 |
-x265_get_variants() { |
368 |
- local variants="" |
369 |
- use 12bit && variants+="main12 " |
370 |
- use 10bit && variants+="main10 " |
371 |
- variants+="main" |
372 |
- echo "${variants}" |
373 |
-} |
374 |
- |
375 |
-x265_variant_src_configure() { |
376 |
- mkdir -p "${BUILD_DIR}" || die |
377 |
- pushd "${BUILD_DIR}" >/dev/null || die |
378 |
- |
379 |
- local mycmakeargs=( "${myabicmakeargs[@]}" ) |
380 |
- case "${MULTIBUILD_VARIANT}" in |
381 |
- "main12") |
382 |
- mycmakeargs+=( |
383 |
- -DHIGH_BIT_DEPTH=ON |
384 |
- -DEXPORT_C_API=OFF |
385 |
- -DENABLE_SHARED=OFF |
386 |
- -DENABLE_CLI=OFF |
387 |
- -DMAIN12=ON |
388 |
- ) |
389 |
- if [[ ${ABI} = x86 ]] ; then |
390 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
391 |
- fi |
392 |
- ;; |
393 |
- "main10") |
394 |
- mycmakeargs+=( |
395 |
- -DHIGH_BIT_DEPTH=ON |
396 |
- -DEXPORT_C_API=OFF |
397 |
- -DENABLE_SHARED=OFF |
398 |
- -DENABLE_CLI=OFF |
399 |
- ) |
400 |
- if [[ ${ABI} = x86 ]] ; then |
401 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
402 |
- fi |
403 |
- ;; |
404 |
- "main") |
405 |
- if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then |
406 |
- local myvariants=( "${MULTIBUILD_VARIANTS[@]}" ) |
407 |
- unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1] |
408 |
- local liblist="" |
409 |
- for v in "${myvariants[@]}" ; do |
410 |
- ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die |
411 |
- liblist+="libx265_${v}.a;" |
412 |
- done |
413 |
- mycmakeargs+=( |
414 |
- -DEXTRA_LIB="${liblist}" |
415 |
- -DEXTRA_LINK_FLAGS=-L. |
416 |
- -DLINKED_10BIT=$(usex 10bit) |
417 |
- -DLINKED_12BIT=$(usex 12bit) |
418 |
- ) |
419 |
- fi |
420 |
- ;; |
421 |
- *) |
422 |
- die "Unknown variant: ${MULTIBUILD_VARIANT}";; |
423 |
- esac |
424 |
- cmake-utils_src_configure |
425 |
- popd >/dev/null || die |
426 |
-} |
427 |
- |
428 |
-multilib_src_configure() { |
429 |
- append-cflags -fPIC |
430 |
- append-cxxflags -fPIC |
431 |
- local myabicmakeargs=( |
432 |
- $(cmake-utils_use_enable test TESTS) |
433 |
- $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF") |
434 |
- -DENABLE_LIBNUMA=$(usex numa ON OFF) |
435 |
- -DLIB_INSTALL_DIR="$(get_libdir)" |
436 |
- ) |
437 |
- |
438 |
- if [[ ${ABI} = x86 ]] ; then |
439 |
- # Bug #528202 |
440 |
- if use pic ; then |
441 |
- ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it." |
442 |
- myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
443 |
- fi |
444 |
- elif [[ ${ABI} = x32 ]] ; then |
445 |
- # bug #510890 |
446 |
- myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
447 |
- fi |
448 |
- |
449 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
450 |
- multibuild_foreach_variant x265_variant_src_configure |
451 |
-} |
452 |
- |
453 |
-multilib_src_compile() { |
454 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
455 |
- multibuild_foreach_variant cmake-utils_src_compile |
456 |
-} |
457 |
- |
458 |
-x265_variant_src_test() { |
459 |
- if [ -x "${BUILD_DIR}/test/TestBench" ] ; then |
460 |
- "${BUILD_DIR}/test/TestBench" || die |
461 |
- else |
462 |
- einfo "Unit tests check only assembly." |
463 |
- einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}" |
464 |
- einfo "Skipping tests." |
465 |
- fi |
466 |
-} |
467 |
- |
468 |
-multilib_src_test() { |
469 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
470 |
- multibuild_foreach_variant x265_variant_src_test |
471 |
-} |
472 |
- |
473 |
-multilib_src_install() { |
474 |
- # Install only "main" variant since the others are already linked into it. |
475 |
- local MULTIBUILD_VARIANTS=( "main" ) |
476 |
- multibuild_foreach_variant cmake-utils_src_install |
477 |
-} |
478 |
- |
479 |
-multilib_src_install_all() { |
480 |
- dodoc -r "${S}/../doc/"* |
481 |
-} |
482 |
|
483 |
diff --git a/media-libs/x265/x265-2.0.ebuild b/media-libs/x265/x265-2.0.ebuild |
484 |
deleted file mode 100644 |
485 |
index 97e74dd..00000000 |
486 |
--- a/media-libs/x265/x265-2.0.ebuild |
487 |
+++ /dev/null |
488 |
@@ -1,171 +0,0 @@ |
489 |
-# Copyright 1999-2016 Gentoo Foundation |
490 |
-# Distributed under the terms of the GNU General Public License v2 |
491 |
-# $Id$ |
492 |
- |
493 |
-EAPI=5 |
494 |
- |
495 |
-inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic |
496 |
- |
497 |
-if [[ ${PV} = 9999* ]]; then |
498 |
- inherit mercurial |
499 |
- EHG_REPO_URI="https://bitbucket.org/multicoreware/x265" |
500 |
-else |
501 |
- SRC_URI=" |
502 |
- https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz |
503 |
- http://ftp.videolan.org/pub/videolan/x265/${PN}_${PV}.tar.gz" |
504 |
- KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
505 |
-fi |
506 |
- |
507 |
-DESCRIPTION="Library for encoding video streams into the H.265/HEVC format" |
508 |
-HOMEPAGE="http://x265.org/" |
509 |
- |
510 |
-LICENSE="GPL-2" |
511 |
-# subslot = libx265 soname |
512 |
-SLOT="0/87" |
513 |
-IUSE="+10bit +12bit numa pic test" |
514 |
- |
515 |
-ASM_DEPEND=">=dev-lang/yasm-1.2.0" |
516 |
-RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )" |
517 |
-DEPEND="${RDEPEND} |
518 |
- abi_x86_32? ( ${ASM_DEPEND} ) |
519 |
- abi_x86_64? ( ${ASM_DEPEND} )" |
520 |
- |
521 |
-src_unpack() { |
522 |
- if [[ ${PV} = 9999* ]]; then |
523 |
- mercurial_src_unpack |
524 |
- # Can't set it at global scope due to mercurial.eclass limitations... |
525 |
- export S=${WORKDIR}/${P}/source |
526 |
- else |
527 |
- unpack ${A} |
528 |
- export S="$(echo "${WORKDIR}/${PN}_"*"/source")" |
529 |
- fi |
530 |
-} |
531 |
- |
532 |
-# By default, the library and the encoder is configured for only one output bit |
533 |
-# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC |
534 |
-# files with a different bit depth, which is annoying. However, upstream |
535 |
-# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all |
536 |
-# that together so that the resulting library can produce all three of them |
537 |
-# instead of only one. |
538 |
-# The API requires the bit depth parameter, so that libx265 can then chose which |
539 |
-# variant of the encoder to use. |
540 |
-# To achieve this, we have to build one (static) library for each non-main |
541 |
-# variant, and link it into the main library. |
542 |
-# Upstream documents using the 8bit variant as main library, hence we do not |
543 |
-# allow disabling it: "main" *MUST* come last in the following list. |
544 |
- |
545 |
-x265_get_variants() { |
546 |
- local variants="" |
547 |
- use 12bit && variants+="main12 " |
548 |
- use 10bit && variants+="main10 " |
549 |
- variants+="main" |
550 |
- echo "${variants}" |
551 |
-} |
552 |
- |
553 |
-x265_variant_src_configure() { |
554 |
- mkdir -p "${BUILD_DIR}" || die |
555 |
- pushd "${BUILD_DIR}" >/dev/null || die |
556 |
- |
557 |
- local mycmakeargs=( "${myabicmakeargs[@]}" ) |
558 |
- case "${MULTIBUILD_VARIANT}" in |
559 |
- "main12") |
560 |
- mycmakeargs+=( |
561 |
- -DHIGH_BIT_DEPTH=ON |
562 |
- -DEXPORT_C_API=OFF |
563 |
- -DENABLE_SHARED=OFF |
564 |
- -DENABLE_CLI=OFF |
565 |
- -DMAIN12=ON |
566 |
- ) |
567 |
- if [[ ${ABI} = x86 ]] ; then |
568 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
569 |
- fi |
570 |
- ;; |
571 |
- "main10") |
572 |
- mycmakeargs+=( |
573 |
- -DHIGH_BIT_DEPTH=ON |
574 |
- -DEXPORT_C_API=OFF |
575 |
- -DENABLE_SHARED=OFF |
576 |
- -DENABLE_CLI=OFF |
577 |
- ) |
578 |
- if [[ ${ABI} = x86 ]] ; then |
579 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
580 |
- fi |
581 |
- ;; |
582 |
- "main") |
583 |
- if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then |
584 |
- local myvariants=( "${MULTIBUILD_VARIANTS[@]}" ) |
585 |
- unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1] |
586 |
- local liblist="" |
587 |
- for v in "${myvariants[@]}" ; do |
588 |
- ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die |
589 |
- liblist+="libx265_${v}.a;" |
590 |
- done |
591 |
- mycmakeargs+=( |
592 |
- -DEXTRA_LIB="${liblist}" |
593 |
- -DEXTRA_LINK_FLAGS=-L. |
594 |
- -DLINKED_10BIT=$(usex 10bit) |
595 |
- -DLINKED_12BIT=$(usex 12bit) |
596 |
- ) |
597 |
- fi |
598 |
- ;; |
599 |
- *) |
600 |
- die "Unknown variant: ${MULTIBUILD_VARIANT}";; |
601 |
- esac |
602 |
- cmake-utils_src_configure |
603 |
- popd >/dev/null || die |
604 |
-} |
605 |
- |
606 |
-multilib_src_configure() { |
607 |
- append-cflags -fPIC |
608 |
- append-cxxflags -fPIC |
609 |
- local myabicmakeargs=( |
610 |
- $(cmake-utils_use_enable test TESTS) |
611 |
- $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF") |
612 |
- -DENABLE_LIBNUMA=$(usex numa ON OFF) |
613 |
- -DLIB_INSTALL_DIR="$(get_libdir)" |
614 |
- ) |
615 |
- |
616 |
- if [[ ${ABI} = x86 ]] ; then |
617 |
- # Bug #528202 |
618 |
- if use pic ; then |
619 |
- ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it." |
620 |
- myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
621 |
- fi |
622 |
- elif [[ ${ABI} = x32 ]] ; then |
623 |
- # bug #510890 |
624 |
- myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
625 |
- fi |
626 |
- |
627 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
628 |
- multibuild_foreach_variant x265_variant_src_configure |
629 |
-} |
630 |
- |
631 |
-multilib_src_compile() { |
632 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
633 |
- multibuild_foreach_variant cmake-utils_src_compile |
634 |
-} |
635 |
- |
636 |
-x265_variant_src_test() { |
637 |
- if [ -x "${BUILD_DIR}/test/TestBench" ] ; then |
638 |
- "${BUILD_DIR}/test/TestBench" || die |
639 |
- else |
640 |
- einfo "Unit tests check only assembly." |
641 |
- einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}" |
642 |
- einfo "Skipping tests." |
643 |
- fi |
644 |
-} |
645 |
- |
646 |
-multilib_src_test() { |
647 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
648 |
- multibuild_foreach_variant x265_variant_src_test |
649 |
-} |
650 |
- |
651 |
-multilib_src_install() { |
652 |
- # Install only "main" variant since the others are already linked into it. |
653 |
- local MULTIBUILD_VARIANTS=( "main" ) |
654 |
- multibuild_foreach_variant cmake-utils_src_install |
655 |
-} |
656 |
- |
657 |
-multilib_src_install_all() { |
658 |
- dodoc -r "${S}/../doc/"* |
659 |
-} |
660 |
|
661 |
diff --git a/media-libs/x265/x265-2.1.ebuild b/media-libs/x265/x265-2.1.ebuild |
662 |
deleted file mode 100644 |
663 |
index 3864484..00000000 |
664 |
--- a/media-libs/x265/x265-2.1.ebuild |
665 |
+++ /dev/null |
666 |
@@ -1,171 +0,0 @@ |
667 |
-# Copyright 1999-2016 Gentoo Foundation |
668 |
-# Distributed under the terms of the GNU General Public License v2 |
669 |
-# $Id$ |
670 |
- |
671 |
-EAPI=5 |
672 |
- |
673 |
-inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic |
674 |
- |
675 |
-if [[ ${PV} = 9999* ]]; then |
676 |
- inherit mercurial |
677 |
- EHG_REPO_URI="https://bitbucket.org/multicoreware/x265" |
678 |
-else |
679 |
- SRC_URI=" |
680 |
- https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz |
681 |
- http://ftp.videolan.org/pub/videolan/x265/${PN}_${PV}.tar.gz" |
682 |
- KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
683 |
-fi |
684 |
- |
685 |
-DESCRIPTION="Library for encoding video streams into the H.265/HEVC format" |
686 |
-HOMEPAGE="http://x265.org/" |
687 |
- |
688 |
-LICENSE="GPL-2" |
689 |
-# subslot = libx265 soname |
690 |
-SLOT="0/95" |
691 |
-IUSE="+10bit +12bit numa pic test" |
692 |
- |
693 |
-ASM_DEPEND=">=dev-lang/yasm-1.2.0" |
694 |
-RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )" |
695 |
-DEPEND="${RDEPEND} |
696 |
- abi_x86_32? ( ${ASM_DEPEND} ) |
697 |
- abi_x86_64? ( ${ASM_DEPEND} )" |
698 |
- |
699 |
-src_unpack() { |
700 |
- if [[ ${PV} = 9999* ]]; then |
701 |
- mercurial_src_unpack |
702 |
- # Can't set it at global scope due to mercurial.eclass limitations... |
703 |
- export S=${WORKDIR}/${P}/source |
704 |
- else |
705 |
- unpack ${A} |
706 |
- export S="$(echo "${WORKDIR}/${PN}_"*"/source")" |
707 |
- fi |
708 |
-} |
709 |
- |
710 |
-# By default, the library and the encoder is configured for only one output bit |
711 |
-# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC |
712 |
-# files with a different bit depth, which is annoying. However, upstream |
713 |
-# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all |
714 |
-# that together so that the resulting library can produce all three of them |
715 |
-# instead of only one. |
716 |
-# The API requires the bit depth parameter, so that libx265 can then chose which |
717 |
-# variant of the encoder to use. |
718 |
-# To achieve this, we have to build one (static) library for each non-main |
719 |
-# variant, and link it into the main library. |
720 |
-# Upstream documents using the 8bit variant as main library, hence we do not |
721 |
-# allow disabling it: "main" *MUST* come last in the following list. |
722 |
- |
723 |
-x265_get_variants() { |
724 |
- local variants="" |
725 |
- use 12bit && variants+="main12 " |
726 |
- use 10bit && variants+="main10 " |
727 |
- variants+="main" |
728 |
- echo "${variants}" |
729 |
-} |
730 |
- |
731 |
-x265_variant_src_configure() { |
732 |
- mkdir -p "${BUILD_DIR}" || die |
733 |
- pushd "${BUILD_DIR}" >/dev/null || die |
734 |
- |
735 |
- local mycmakeargs=( "${myabicmakeargs[@]}" ) |
736 |
- case "${MULTIBUILD_VARIANT}" in |
737 |
- "main12") |
738 |
- mycmakeargs+=( |
739 |
- -DHIGH_BIT_DEPTH=ON |
740 |
- -DEXPORT_C_API=OFF |
741 |
- -DENABLE_SHARED=OFF |
742 |
- -DENABLE_CLI=OFF |
743 |
- -DMAIN12=ON |
744 |
- ) |
745 |
- if [[ ${ABI} = x86 ]] ; then |
746 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
747 |
- fi |
748 |
- ;; |
749 |
- "main10") |
750 |
- mycmakeargs+=( |
751 |
- -DHIGH_BIT_DEPTH=ON |
752 |
- -DEXPORT_C_API=OFF |
753 |
- -DENABLE_SHARED=OFF |
754 |
- -DENABLE_CLI=OFF |
755 |
- ) |
756 |
- if [[ ${ABI} = x86 ]] ; then |
757 |
- mycmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
758 |
- fi |
759 |
- ;; |
760 |
- "main") |
761 |
- if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then |
762 |
- local myvariants=( "${MULTIBUILD_VARIANTS[@]}" ) |
763 |
- unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1] |
764 |
- local liblist="" |
765 |
- for v in "${myvariants[@]}" ; do |
766 |
- ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die |
767 |
- liblist+="libx265_${v}.a;" |
768 |
- done |
769 |
- mycmakeargs+=( |
770 |
- -DEXTRA_LIB="${liblist}" |
771 |
- -DEXTRA_LINK_FLAGS=-L. |
772 |
- -DLINKED_10BIT=$(usex 10bit) |
773 |
- -DLINKED_12BIT=$(usex 12bit) |
774 |
- ) |
775 |
- fi |
776 |
- ;; |
777 |
- *) |
778 |
- die "Unknown variant: ${MULTIBUILD_VARIANT}";; |
779 |
- esac |
780 |
- cmake-utils_src_configure |
781 |
- popd >/dev/null || die |
782 |
-} |
783 |
- |
784 |
-multilib_src_configure() { |
785 |
- append-cflags -fPIC |
786 |
- append-cxxflags -fPIC |
787 |
- local myabicmakeargs=( |
788 |
- $(cmake-utils_use_enable test TESTS) |
789 |
- $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF") |
790 |
- -DENABLE_LIBNUMA=$(usex numa ON OFF) |
791 |
- -DLIB_INSTALL_DIR="$(get_libdir)" |
792 |
- ) |
793 |
- |
794 |
- if [[ ${ABI} = x86 ]] ; then |
795 |
- # Bug #528202 |
796 |
- if use pic ; then |
797 |
- ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it." |
798 |
- myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
799 |
- fi |
800 |
- elif [[ ${ABI} = x32 ]] ; then |
801 |
- # bug #510890 |
802 |
- myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF ) |
803 |
- fi |
804 |
- |
805 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
806 |
- multibuild_foreach_variant x265_variant_src_configure |
807 |
-} |
808 |
- |
809 |
-multilib_src_compile() { |
810 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
811 |
- multibuild_foreach_variant cmake-utils_src_compile |
812 |
-} |
813 |
- |
814 |
-x265_variant_src_test() { |
815 |
- if [ -x "${BUILD_DIR}/test/TestBench" ] ; then |
816 |
- "${BUILD_DIR}/test/TestBench" || die |
817 |
- else |
818 |
- einfo "Unit tests check only assembly." |
819 |
- einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}" |
820 |
- einfo "Skipping tests." |
821 |
- fi |
822 |
-} |
823 |
- |
824 |
-multilib_src_test() { |
825 |
- local MULTIBUILD_VARIANTS=( $(x265_get_variants) ) |
826 |
- multibuild_foreach_variant x265_variant_src_test |
827 |
-} |
828 |
- |
829 |
-multilib_src_install() { |
830 |
- # Install only "main" variant since the others are already linked into it. |
831 |
- local MULTIBUILD_VARIANTS=( "main" ) |
832 |
- multibuild_foreach_variant cmake-utils_src_install |
833 |
-} |
834 |
- |
835 |
-multilib_src_install_all() { |
836 |
- dodoc -r "${S}/../doc/"* |
837 |
-} |