Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/x265/, media-libs/x265/files/
Date: Tue, 08 Sep 2020 18:08:24
Message-Id: 1599588462.91c314279cf31e6605927cf49e144fc2ddb2896d.asturm@gentoo
1 commit: 91c314279cf31e6605927cf49e144fc2ddb2896d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 8 17:10:38 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 18:07:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91c31427
7
8 media-libs/x265: Drop 2.8, 2.9, 3.0, 3.1*, 3.2*, 3.3
9
10 Closes: https://bugs.gentoo.org/729628
11 Package-Manager: Portage-3.0.5, Repoman-3.0.1
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 media-libs/x265/Manifest | 8 -
15 media-libs/x265/files/arm.patch | 34 ----
16 media-libs/x265/files/non_x86.patch | 20 ---
17 media-libs/x265/files/ppc64.patch | 15 --
18 media-libs/x265/files/x265-2.9-detect512.patch | 25 ---
19 media-libs/x265/files/x265-3.3-arm.patch | 34 ----
20 media-libs/x265/files/x265-3.3-neon.patch | 16 --
21 media-libs/x265/metadata.xml | 1 -
22 media-libs/x265/x265-2.8.ebuild | 197 ----------------------
23 media-libs/x265/x265-2.9.ebuild | 197 ----------------------
24 media-libs/x265/x265-3.0.ebuild | 196 ----------------------
25 media-libs/x265/x265-3.1.2.ebuild | 196 ----------------------
26 media-libs/x265/x265-3.1.ebuild | 196 ----------------------
27 media-libs/x265/x265-3.2.1.ebuild | 196 ----------------------
28 media-libs/x265/x265-3.2.ebuild | 196 ----------------------
29 media-libs/x265/x265-3.3.ebuild | 220 -------------------------
30 16 files changed, 1747 deletions(-)
31
32 diff --git a/media-libs/x265/Manifest b/media-libs/x265/Manifest
33 index 0d4b2ec0e0c..54e9273750f 100644
34 --- a/media-libs/x265/Manifest
35 +++ b/media-libs/x265/Manifest
36 @@ -1,9 +1 @@
37 -DIST x265_2.8.tar.gz 1379551 BLAKE2B c124864a08492739cdde89e44d72c84ad94a0b236d2c59d995e53a26d1a5fb9ec1557a03640a3065a727be69bfb0c0633b50351dc875c9706a1550f488c8ee24 SHA512 c2a8eaec64aa022badcbcd2a96304a9abd9d08489300b6a9c4c9d76066f3d9848e6948238c84ae16ea91bff0b2fac528a67ee29950d94dcd0ea7c0e9e7baa714
38 -DIST x265_2.9.tar.gz 1385848 BLAKE2B ff14eba55cea0646ad0ffc12f9032c9033d23c9d805939fc3a049911ebae459eee097349f074dcd224bef97d6140dbc37ee9bd3db54c5473b158e135784d2179 SHA512 270818c7fd84947fde371e32bef225c1880cfb0bcd95378d95b51f50577a134d7cd585fcdfa43b103a24d76c5ad826b09509a07eb9e208e8f2b56f2f77365cf3
39 -DIST x265_3.0.tar.gz 1398519 BLAKE2B e3ac28b01e89ce8a428f294c759644a8177e1b79941aba5e1b53033c236e3445f9afeea96f8adf7e5cdcfff8c790ca9fcadcc8b2de6c31ba3fe9ba87321a8ca8 SHA512 bb7665194ddd4bccbb91c16337463ad4ef32111a1e7779e4cc16964df0992aa99e578cb74fef0edbf41119105e4085574247f60541b0558cc36730ea12d2c6ba
40 -DIST x265_3.1.2.tar.gz 1419864 BLAKE2B 1eeb210e58d6977f9a048b84e924d690868aa350b6e736f577b5c1a62b9c5b71cfb2b03f004f26839ea44b9db871313bc9888af95999a576dcc167e79d297c61 SHA512 00fc2d8460657c0d2edcc54fd8c4521785c632f8811b74d0cd0a3efa0f06f1fb8cdd6233ad4917c1f40b3c1f1660a6c97ad947e656b7c3e9a51f8ae84afef65a
41 -DIST x265_3.1.tar.gz 1419649 BLAKE2B b9151f136fdc6c0512f481af6c8d4d575ce4c75ef8891b42ca24ddfd1f4802bfe8cd47bb07dfc1834243560a8d36ddd5ca4d79d7b9f140fbd411b5b80ea6b8d4 SHA512 81905b6286a61fada7cb1632d7f8461295a28e8d53ccd53d3c26c60c7d8091df47a1b694de28caa721f632d66940f5ceeb44d3405dc3b079edd17d21c30e7a7d
42 -DIST x265_3.2.1.tar.gz 1426255 BLAKE2B 4184cfa290b36f497c5f3a5e3b597bf44e52dd20ba6af21c665d98709c9b984122a339d93aae572756a94549c0c1a293ee195c6c1d34902d298664ecf016f896 SHA512 5cb29b9d4475c1f686f6e31e47ccddde3db1639d5dcf9c058513389a9fdeb35a83b14e30e59498a76dec74bb0b410b6d8f5b1b45d18927be9811bb6a40d8d568
43 -DIST x265_3.2.tar.gz 1425689 BLAKE2B 58da4aa52381ec89b0aea1dc896fef92d9ec9fc781fd279acd0a338cd872f52482c81c558dde749c1205dbc13341a9851c381d01e2f312f5e2b4712d2242b7d3 SHA512 08c779026fe4c03797efef9d6a898b16c308355311e167c81b976345eb78039725a31294c77a60b76b4ef648d8720e16b2d6524e7108755531a5375231f5313e
44 -DIST x265_3.3.tar.gz 1438685 BLAKE2B 43806915c3b22fabff71c307dc53e9a3408262528f8ec01bf81168826eee26b468b0e68c738e3c0371f6de6121a3ac090bfaeed0cbfca0a3b8c57710d7f25ad0 SHA512 3d56900ecd58e83d2ecc93d956524e3b0e622dbe3c74a137c7b21f98599245547403401e9ec7f679996fd09fca788aa10272bf17e58a68fce449c8cb555ad7c0
45 DIST x265_3.4.tar.gz 1469365 BLAKE2B 1021d9d62779d0cecddea56496b4e46bd8ccfd91fdf292efe412dc82b3c974095a5f9bd095057aa08e77b164555adc594549dea6aef7fbc0c025ae7295df721e SHA512 576b18711935e7da8433b2170d24ed159eb12ff1a18399360afa1b2132db33b463145c65ed918f667528ee954bbdfb5c69e5480f1c1df801515cefc592f3206e
46
47 diff --git a/media-libs/x265/files/arm.patch b/media-libs/x265/files/arm.patch
48 deleted file mode 100644
49 index 69edcdecfb9..00000000000
50 --- a/media-libs/x265/files/arm.patch
51 +++ /dev/null
52 @@ -1,34 +0,0 @@
53 -More aliases for ARM.
54 -Do not force CFLAGS for ARM.
55 -
56 -Index: source/CMakeLists.txt
57 -===================================================================
58 ---- source.orig/CMakeLists.txt
59 -+++ source/CMakeLists.txt
60 -@@ -41,7 +41,7 @@ SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_
61 - # System architecture detection
62 - string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
63 - set(X86_ALIASES x86 i386 i686 x86_64 amd64)
64 --set(ARM_ALIASES armv6l armv7l)
65 -+set(ARM_ALIASES armv6l armv6j armv7l armv7a)
66 - list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
67 - list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH)
68 - set(POWER_ALIASES ppc64 ppc64le)
69 -@@ -208,15 +208,11 @@ if(GCC)
70 - endif()
71 - endif()
72 - endif()
73 -- if(ARM AND CROSS_COMPILE_ARM)
74 -- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
75 -- elseif(ARM)
76 -+ if(ARM)
77 - find_package(Neon)
78 - if(CPU_HAS_NEON)
79 -- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC)
80 -+ set(ARM_ARGS -mfpu=neon)
81 - add_definitions(-DHAVE_NEON)
82 -- else()
83 -- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
84 - endif()
85 - endif()
86 - add_definitions(${ARM_ARGS})
87
88 diff --git a/media-libs/x265/files/non_x86.patch b/media-libs/x265/files/non_x86.patch
89 deleted file mode 100644
90 index 3c7e389329a..00000000000
91 --- a/media-libs/x265/files/non_x86.patch
92 +++ /dev/null
93 @@ -1,20 +0,0 @@
94 -# HG changeset patch
95 -# User Jayashree <jayashree.c@××××××××××××××××.com>
96 -# Date 1527224165 -19800
97 -# Fri May 25 10:26:05 2018 +0530
98 -# Node ID 4504219210793536d921ee4e0b3058698c630bf4
99 -# Parent cc2c5e46f3c87d27e3602af30b06ba6a0fbe2704
100 -Fix build error on on ppc64le
101 -
102 -diff -r cc2c5e46f3c8 -r 450421921079 source/common/param.cpp
103 ---- a/source/common/param.cpp Mon May 21 18:42:29 2018 +0530
104 -+++ b/source/common/param.cpp Fri May 25 10:26:05 2018 +0530
105 -@@ -633,7 +633,7 @@
106 - if (bValueWasNull)
107 - p->cpuid = atobool(value);
108 - else
109 -- p->cpuid = parseCpuName(value, bError);
110 -+ p->cpuid = parseCpuName(value, bError, false);
111 - #endif
112 - }
113 - OPT("fps")
114
115 diff --git a/media-libs/x265/files/ppc64.patch b/media-libs/x265/files/ppc64.patch
116 deleted file mode 100644
117 index f453c0de0a5..00000000000
118 --- a/media-libs/x265/files/ppc64.patch
119 +++ /dev/null
120 @@ -1,15 +0,0 @@
121 -More complete ppc64 matches.
122 -
123 -Index: x265_2.2/source/CMakeLists.txt
124 -===================================================================
125 ---- x265_2.2.orig/source/CMakeLists.txt
126 -+++ x265_2.2/source/CMakeLists.txt
127 -@@ -44,7 +44,7 @@ set(X86_ALIASES x86 i386 i686 x86_64 amd
128 - set(ARM_ALIASES armv6l armv6j armv7l armv7a)
129 - list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
130 - list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH)
131 --set(POWER_ALIASES ppc64 ppc64le)
132 -+set(POWER_ALIASES ppc64 ppc64le powerpc64 powerpc64le)
133 - list(FIND POWER_ALIASES "${SYSPROC}" POWERMATCH)
134 - if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
135 - set(X86 1)
136
137 diff --git a/media-libs/x265/files/x265-2.9-detect512.patch b/media-libs/x265/files/x265-2.9-detect512.patch
138 deleted file mode 100644
139 index 8437ed09b88..00000000000
140 --- a/media-libs/x265/files/x265-2.9-detect512.patch
141 +++ /dev/null
142 @@ -1,25 +0,0 @@
143 ---- a/source/common/cpu.cpp
144 -+++ b/source/common/cpu.cpp
145 -@@ -110,6 +110,11 @@
146 - { "", 0 },
147 - };
148 -
149 -+bool detect512()
150 -+{
151 -+ return(enable512);
152 -+}
153 -+
154 - #if X265_ARCH_X86
155 -
156 - extern "C" {
157 -@@ -123,10 +128,6 @@
158 - #pragma warning(disable: 4309) // truncation of constant value
159 - #endif
160 -
161 --bool detect512()
162 --{
163 -- return(enable512);
164 --}
165 - uint32_t cpu_detect(bool benableavx512 )
166 - {
167 -
168
169 diff --git a/media-libs/x265/files/x265-3.3-arm.patch b/media-libs/x265/files/x265-3.3-arm.patch
170 deleted file mode 100644
171 index 7e7c8c58b72..00000000000
172 --- a/media-libs/x265/files/x265-3.3-arm.patch
173 +++ /dev/null
174 @@ -1,34 +0,0 @@
175 -More aliases for ARM.
176 -Do not force CFLAGS for ARM.
177 -
178 -Index: source/CMakeLists.txt
179 -===================================================================
180 ---- old/CMakeLists.txt
181 -+++ new/CMakeLists.txt
182 -@@ -41,7 +41,7 @@ SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_
183 - # System architecture detection
184 - string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
185 - set(X86_ALIASES x86 i386 i686 x86_64 amd64)
186 --set(ARM_ALIASES armv6l armv7l)
187 -+set(ARM_ALIASES armv6l armv6j armv7l armv7a)
188 - list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
189 - list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH)
190 - set(POWER_ALIASES ppc64 ppc64le)
191 -@@ -208,15 +208,11 @@ if(GCC)
192 - endif()
193 - endif()
194 - endif()
195 -- if(ARM AND CROSS_COMPILE_ARM)
196 -- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
197 -- elseif(ARM)
198 -+ if(ARM)
199 - find_package(Neon)
200 - if(CPU_HAS_NEON)
201 -- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC)
202 -+ set(ARM_ARGS -mfpu=neon)
203 - add_definitions(-DHAVE_NEON)
204 -- else()
205 -- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
206 - endif()
207 - endif()
208 - add_definitions(${ARM_ARGS})
209
210 diff --git a/media-libs/x265/files/x265-3.3-neon.patch b/media-libs/x265/files/x265-3.3-neon.patch
211 deleted file mode 100644
212 index 316e670febe..00000000000
213 --- a/media-libs/x265/files/x265-3.3-neon.patch
214 +++ /dev/null
215 @@ -1,16 +0,0 @@
216 -These functions are only built when enabling assembly on ARM; use proper check
217 -to avoid undefined symbols.
218 -
219 -Index: source/common/primitives.cpp
220 -===================================================================
221 ---- old/common/primitives.cpp
222 -+++ new/common/primitives.cpp
223 -@@ -270,7 +270,7 @@ void PFX(cpu_emms)(void) {}
224 - void PFX(cpu_cpuid)(uint32_t, uint32_t *eax, uint32_t *, uint32_t *, uint32_t *) { *eax = 0; }
225 - void PFX(cpu_xgetbv)(uint32_t, uint32_t *, uint32_t *) {}
226 -
227 --#if X265_ARCH_ARM == 0
228 -+#if X265_ARCH_ARM == 0 || !defined(ENABLE_ASSEMBLY)
229 - void PFX(cpu_neon_test)(void) {}
230 - int PFX(cpu_fast_neon_mrc_test)(void) { return 0; }
231 - #endif // X265_ARCH_ARM
232
233 diff --git a/media-libs/x265/metadata.xml b/media-libs/x265/metadata.xml
234 index 2049b41f26e..ed61a9259d5 100644
235 --- a/media-libs/x265/metadata.xml
236 +++ b/media-libs/x265/metadata.xml
237 @@ -5,7 +5,6 @@
238 <email>media-video@g.o</email>
239 </maintainer>
240 <use>
241 - <flag name="asm">Enable x86_64 assembly optimizations.</flag>
242 <flag name="10bit">Add support for producing 10bits HEVC.</flag>
243 <flag name="12bit">Add support for producing 12bits HEVC.</flag>
244 <flag name="numa">Build with support for NUMA nodes.</flag>
245
246 diff --git a/media-libs/x265/x265-2.8.ebuild b/media-libs/x265/x265-2.8.ebuild
247 deleted file mode 100644
248 index 3041c243b77..00000000000
249 --- a/media-libs/x265/x265-2.8.ebuild
250 +++ /dev/null
251 @@ -1,197 +0,0 @@
252 -# Copyright 1999-2020 Gentoo Authors
253 -# Distributed under the terms of the GNU General Public License v2
254 -
255 -EAPI=5
256 -
257 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
258 -
259 -if [[ ${PV} = 9999* ]]; then
260 - inherit mercurial
261 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
262 -else
263 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
264 - KEYWORDS="amd64 arm ~arm64 hppa ~ia64 ppc ppc64 x86"
265 -fi
266 -
267 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
268 -HOMEPAGE="http://x265.org/"
269 -
270 -LICENSE="GPL-2"
271 -# subslot = libx265 soname
272 -SLOT="0/160"
273 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
274 -RESTRICT="!test? ( test )"
275 -
276 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
277 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
278 -DEPEND="${RDEPEND}
279 - abi_x86_32? ( ${ASM_DEPEND} )
280 - abi_x86_64? ( ${ASM_DEPEND} )"
281 -
282 -PATCHES=(
283 - "${FILESDIR}/arm.patch"
284 - "${FILESDIR}/neon.patch"
285 - "${FILESDIR}/ppc64.patch"
286 - "${FILESDIR}/non_x86.patch"
287 -)
288 -
289 -src_unpack() {
290 - if [[ ${PV} = 9999* ]]; then
291 - mercurial_src_unpack
292 - # Can't set it at global scope due to mercurial.eclass limitations...
293 - export S=${WORKDIR}/${P}/source
294 - else
295 - unpack ${A}
296 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
297 - fi
298 -}
299 -
300 -# By default, the library and the encoder is configured for only one output bit
301 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
302 -# files with a different bit depth, which is annoying. However, upstream
303 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
304 -# that together so that the resulting library can produce all three of them
305 -# instead of only one.
306 -# The API requires the bit depth parameter, so that libx265 can then chose which
307 -# variant of the encoder to use.
308 -# To achieve this, we have to build one (static) library for each non-main
309 -# variant, and link it into the main library.
310 -# Upstream documents using the 8bit variant as main library, hence we do not
311 -# allow disabling it: "main" *MUST* come last in the following list.
312 -
313 -x265_get_variants() {
314 - local variants=""
315 - use 12bit && variants+="main12 "
316 - use 10bit && variants+="main10 "
317 - variants+="main"
318 - echo "${variants}"
319 -}
320 -
321 -x265_variant_src_configure() {
322 - mkdir -p "${BUILD_DIR}" || die
323 - pushd "${BUILD_DIR}" >/dev/null || die
324 -
325 - local mycmakeargs=( "${myabicmakeargs[@]}" )
326 - case "${MULTIBUILD_VARIANT}" in
327 - "main12")
328 - mycmakeargs+=(
329 - -DHIGH_BIT_DEPTH=ON
330 - -DEXPORT_C_API=OFF
331 - -DENABLE_SHARED=OFF
332 - -DENABLE_CLI=OFF
333 - -DMAIN12=ON
334 - )
335 - if [[ ${ABI} = x86 ]] ; then
336 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
337 - fi
338 - if [[ ${ABI} = arm ]] ; then
339 - # 589674
340 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
341 - fi
342 - if [[ ${ABI} = ppc64 ]] ; then
343 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
344 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
345 - fi
346 - ;;
347 - "main10")
348 - mycmakeargs+=(
349 - -DHIGH_BIT_DEPTH=ON
350 - -DEXPORT_C_API=OFF
351 - -DENABLE_SHARED=OFF
352 - -DENABLE_CLI=OFF
353 - )
354 - if [[ ${ABI} = x86 ]] ; then
355 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
356 - fi
357 - if [[ ${ABI} = arm ]] ; then
358 - # 589674
359 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
360 - fi
361 - if [[ ${ABI} = ppc64 ]] ; then
362 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
363 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
364 - fi
365 - ;;
366 - "main")
367 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
368 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
369 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
370 - local liblist=""
371 - for v in "${myvariants[@]}" ; do
372 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
373 - liblist+="libx265_${v}.a;"
374 - done
375 - mycmakeargs+=(
376 - -DEXTRA_LIB="${liblist}"
377 - -DEXTRA_LINK_FLAGS=-L.
378 - -DLINKED_10BIT=$(usex 10bit)
379 - -DLINKED_12BIT=$(usex 12bit)
380 - )
381 - fi
382 - ;;
383 - *)
384 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
385 - esac
386 - cmake-utils_src_configure
387 - popd >/dev/null || die
388 -}
389 -
390 -multilib_src_configure() {
391 - append-cflags -fPIC
392 - append-cxxflags -fPIC
393 - local myabicmakeargs=(
394 - $(cmake-utils_use_enable test TESTS)
395 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
396 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
397 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
398 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
399 - -DLIB_INSTALL_DIR="$(get_libdir)"
400 - )
401 -
402 - if [[ ${ABI} = x86 ]] ; then
403 - # Bug #528202
404 - if use pic ; then
405 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
406 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
407 - fi
408 - elif [[ ${ABI} = x32 ]] ; then
409 - # bug #510890
410 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
411 - elif [[ ${ABI} = arm ]] ; then
412 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
413 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
414 - fi
415 -
416 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
417 - multibuild_foreach_variant x265_variant_src_configure
418 -}
419 -
420 -multilib_src_compile() {
421 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
422 - multibuild_foreach_variant cmake-utils_src_compile
423 -}
424 -
425 -x265_variant_src_test() {
426 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
427 - "${BUILD_DIR}/test/TestBench" || die
428 - else
429 - einfo "Unit tests check only assembly."
430 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
431 - einfo "Skipping tests."
432 - fi
433 -}
434 -
435 -multilib_src_test() {
436 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
437 - multibuild_foreach_variant x265_variant_src_test
438 -}
439 -
440 -multilib_src_install() {
441 - # Install only "main" variant since the others are already linked into it.
442 - local MULTIBUILD_VARIANTS=( "main" )
443 - multibuild_foreach_variant cmake-utils_src_install
444 -}
445 -
446 -multilib_src_install_all() {
447 - dodoc -r "${S}/../doc/"*
448 -}
449
450 diff --git a/media-libs/x265/x265-2.9.ebuild b/media-libs/x265/x265-2.9.ebuild
451 deleted file mode 100644
452 index ead3e157954..00000000000
453 --- a/media-libs/x265/x265-2.9.ebuild
454 +++ /dev/null
455 @@ -1,197 +0,0 @@
456 -# Copyright 1999-2020 Gentoo Authors
457 -# Distributed under the terms of the GNU General Public License v2
458 -
459 -EAPI=5
460 -
461 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
462 -
463 -if [[ ${PV} = 9999* ]]; then
464 - inherit mercurial
465 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
466 -else
467 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
468 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
469 -fi
470 -
471 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
472 -HOMEPAGE="http://x265.org/"
473 -
474 -LICENSE="GPL-2"
475 -# subslot = libx265 soname
476 -SLOT="0/165"
477 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
478 -RESTRICT="!test? ( test )"
479 -
480 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
481 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
482 -DEPEND="${RDEPEND}
483 - abi_x86_32? ( ${ASM_DEPEND} )
484 - abi_x86_64? ( ${ASM_DEPEND} )"
485 -
486 -PATCHES=(
487 - "${FILESDIR}/arm.patch"
488 - "${FILESDIR}/neon.patch"
489 - "${FILESDIR}/ppc64.patch"
490 - "${FILESDIR}"/${PN}-2.9-detect512.patch
491 -)
492 -
493 -src_unpack() {
494 - if [[ ${PV} = 9999* ]]; then
495 - mercurial_src_unpack
496 - # Can't set it at global scope due to mercurial.eclass limitations...
497 - export S=${WORKDIR}/${P}/source
498 - else
499 - unpack ${A}
500 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
501 - fi
502 -}
503 -
504 -# By default, the library and the encoder is configured for only one output bit
505 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
506 -# files with a different bit depth, which is annoying. However, upstream
507 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
508 -# that together so that the resulting library can produce all three of them
509 -# instead of only one.
510 -# The API requires the bit depth parameter, so that libx265 can then chose which
511 -# variant of the encoder to use.
512 -# To achieve this, we have to build one (static) library for each non-main
513 -# variant, and link it into the main library.
514 -# Upstream documents using the 8bit variant as main library, hence we do not
515 -# allow disabling it: "main" *MUST* come last in the following list.
516 -
517 -x265_get_variants() {
518 - local variants=""
519 - use 12bit && variants+="main12 "
520 - use 10bit && variants+="main10 "
521 - variants+="main"
522 - echo "${variants}"
523 -}
524 -
525 -x265_variant_src_configure() {
526 - mkdir -p "${BUILD_DIR}" || die
527 - pushd "${BUILD_DIR}" >/dev/null || die
528 -
529 - local mycmakeargs=( "${myabicmakeargs[@]}" )
530 - case "${MULTIBUILD_VARIANT}" in
531 - "main12")
532 - mycmakeargs+=(
533 - -DHIGH_BIT_DEPTH=ON
534 - -DEXPORT_C_API=OFF
535 - -DENABLE_SHARED=OFF
536 - -DENABLE_CLI=OFF
537 - -DMAIN12=ON
538 - )
539 - if [[ ${ABI} = x86 ]] ; then
540 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
541 - fi
542 - if [[ ${ABI} = arm ]] ; then
543 - # 589674
544 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
545 - fi
546 - if [[ ${ABI} = ppc64 ]] ; then
547 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
548 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
549 - fi
550 - ;;
551 - "main10")
552 - mycmakeargs+=(
553 - -DHIGH_BIT_DEPTH=ON
554 - -DEXPORT_C_API=OFF
555 - -DENABLE_SHARED=OFF
556 - -DENABLE_CLI=OFF
557 - )
558 - if [[ ${ABI} = x86 ]] ; then
559 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
560 - fi
561 - if [[ ${ABI} = arm ]] ; then
562 - # 589674
563 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
564 - fi
565 - if [[ ${ABI} = ppc64 ]] ; then
566 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
567 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
568 - fi
569 - ;;
570 - "main")
571 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
572 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
573 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
574 - local liblist=""
575 - for v in "${myvariants[@]}" ; do
576 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
577 - liblist+="libx265_${v}.a;"
578 - done
579 - mycmakeargs+=(
580 - -DEXTRA_LIB="${liblist}"
581 - -DEXTRA_LINK_FLAGS=-L.
582 - -DLINKED_10BIT=$(usex 10bit)
583 - -DLINKED_12BIT=$(usex 12bit)
584 - )
585 - fi
586 - ;;
587 - *)
588 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
589 - esac
590 - cmake-utils_src_configure
591 - popd >/dev/null || die
592 -}
593 -
594 -multilib_src_configure() {
595 - append-cflags -fPIC
596 - append-cxxflags -fPIC
597 - local myabicmakeargs=(
598 - $(cmake-utils_use_enable test TESTS)
599 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
600 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
601 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
602 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
603 - -DLIB_INSTALL_DIR="$(get_libdir)"
604 - )
605 -
606 - if [[ ${ABI} = x86 ]] ; then
607 - # Bug #528202
608 - if use pic ; then
609 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
610 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
611 - fi
612 - elif [[ ${ABI} = x32 ]] ; then
613 - # bug #510890
614 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
615 - elif [[ ${ABI} = arm ]] ; then
616 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
617 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
618 - fi
619 -
620 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
621 - multibuild_foreach_variant x265_variant_src_configure
622 -}
623 -
624 -multilib_src_compile() {
625 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
626 - multibuild_foreach_variant cmake-utils_src_compile
627 -}
628 -
629 -x265_variant_src_test() {
630 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
631 - "${BUILD_DIR}/test/TestBench" || die
632 - else
633 - einfo "Unit tests check only assembly."
634 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
635 - einfo "Skipping tests."
636 - fi
637 -}
638 -
639 -multilib_src_test() {
640 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
641 - multibuild_foreach_variant x265_variant_src_test
642 -}
643 -
644 -multilib_src_install() {
645 - # Install only "main" variant since the others are already linked into it.
646 - local MULTIBUILD_VARIANTS=( "main" )
647 - multibuild_foreach_variant cmake-utils_src_install
648 -}
649 -
650 -multilib_src_install_all() {
651 - dodoc -r "${S}/../doc/"*
652 -}
653
654 diff --git a/media-libs/x265/x265-3.0.ebuild b/media-libs/x265/x265-3.0.ebuild
655 deleted file mode 100644
656 index df633a2e1d7..00000000000
657 --- a/media-libs/x265/x265-3.0.ebuild
658 +++ /dev/null
659 @@ -1,196 +0,0 @@
660 -# Copyright 1999-2020 Gentoo Authors
661 -# Distributed under the terms of the GNU General Public License v2
662 -
663 -EAPI=5
664 -
665 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
666 -
667 -if [[ ${PV} = 9999* ]]; then
668 - inherit mercurial
669 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
670 -else
671 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
672 - KEYWORDS="~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
673 -fi
674 -
675 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
676 -HOMEPAGE="http://x265.org/"
677 -
678 -LICENSE="GPL-2"
679 -# subslot = libx265 soname
680 -SLOT="0/169"
681 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
682 -RESTRICT="!test? ( test )"
683 -
684 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
685 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
686 -DEPEND="${RDEPEND}
687 - abi_x86_32? ( ${ASM_DEPEND} )
688 - abi_x86_64? ( ${ASM_DEPEND} )"
689 -
690 -PATCHES=(
691 - "${FILESDIR}/arm.patch"
692 - "${FILESDIR}/neon.patch"
693 - "${FILESDIR}/ppc64.patch"
694 -)
695 -
696 -src_unpack() {
697 - if [[ ${PV} = 9999* ]]; then
698 - mercurial_src_unpack
699 - # Can't set it at global scope due to mercurial.eclass limitations...
700 - export S=${WORKDIR}/${P}/source
701 - else
702 - unpack ${A}
703 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
704 - fi
705 -}
706 -
707 -# By default, the library and the encoder is configured for only one output bit
708 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
709 -# files with a different bit depth, which is annoying. However, upstream
710 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
711 -# that together so that the resulting library can produce all three of them
712 -# instead of only one.
713 -# The API requires the bit depth parameter, so that libx265 can then chose which
714 -# variant of the encoder to use.
715 -# To achieve this, we have to build one (static) library for each non-main
716 -# variant, and link it into the main library.
717 -# Upstream documents using the 8bit variant as main library, hence we do not
718 -# allow disabling it: "main" *MUST* come last in the following list.
719 -
720 -x265_get_variants() {
721 - local variants=""
722 - use 12bit && variants+="main12 "
723 - use 10bit && variants+="main10 "
724 - variants+="main"
725 - echo "${variants}"
726 -}
727 -
728 -x265_variant_src_configure() {
729 - mkdir -p "${BUILD_DIR}" || die
730 - pushd "${BUILD_DIR}" >/dev/null || die
731 -
732 - local mycmakeargs=( "${myabicmakeargs[@]}" )
733 - case "${MULTIBUILD_VARIANT}" in
734 - "main12")
735 - mycmakeargs+=(
736 - -DHIGH_BIT_DEPTH=ON
737 - -DEXPORT_C_API=OFF
738 - -DENABLE_SHARED=OFF
739 - -DENABLE_CLI=OFF
740 - -DMAIN12=ON
741 - )
742 - if [[ ${ABI} = x86 ]] ; then
743 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
744 - fi
745 - if [[ ${ABI} = arm ]] ; then
746 - # 589674
747 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
748 - fi
749 - if [[ ${ABI} = ppc64 ]] ; then
750 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
751 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
752 - fi
753 - ;;
754 - "main10")
755 - mycmakeargs+=(
756 - -DHIGH_BIT_DEPTH=ON
757 - -DEXPORT_C_API=OFF
758 - -DENABLE_SHARED=OFF
759 - -DENABLE_CLI=OFF
760 - )
761 - if [[ ${ABI} = x86 ]] ; then
762 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
763 - fi
764 - if [[ ${ABI} = arm ]] ; then
765 - # 589674
766 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
767 - fi
768 - if [[ ${ABI} = ppc64 ]] ; then
769 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
770 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
771 - fi
772 - ;;
773 - "main")
774 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
775 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
776 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
777 - local liblist=""
778 - for v in "${myvariants[@]}" ; do
779 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
780 - liblist+="libx265_${v}.a;"
781 - done
782 - mycmakeargs+=(
783 - -DEXTRA_LIB="${liblist}"
784 - -DEXTRA_LINK_FLAGS=-L.
785 - -DLINKED_10BIT=$(usex 10bit)
786 - -DLINKED_12BIT=$(usex 12bit)
787 - )
788 - fi
789 - ;;
790 - *)
791 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
792 - esac
793 - cmake-utils_src_configure
794 - popd >/dev/null || die
795 -}
796 -
797 -multilib_src_configure() {
798 - append-cflags -fPIC
799 - append-cxxflags -fPIC
800 - local myabicmakeargs=(
801 - $(cmake-utils_use_enable test TESTS)
802 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
803 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
804 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
805 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
806 - -DLIB_INSTALL_DIR="$(get_libdir)"
807 - )
808 -
809 - if [[ ${ABI} = x86 ]] ; then
810 - # Bug #528202
811 - if use pic ; then
812 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
813 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
814 - fi
815 - elif [[ ${ABI} = x32 ]] ; then
816 - # bug #510890
817 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
818 - elif [[ ${ABI} = arm ]] ; then
819 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
820 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
821 - fi
822 -
823 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
824 - multibuild_foreach_variant x265_variant_src_configure
825 -}
826 -
827 -multilib_src_compile() {
828 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
829 - multibuild_foreach_variant cmake-utils_src_compile
830 -}
831 -
832 -x265_variant_src_test() {
833 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
834 - "${BUILD_DIR}/test/TestBench" || die
835 - else
836 - einfo "Unit tests check only assembly."
837 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
838 - einfo "Skipping tests."
839 - fi
840 -}
841 -
842 -multilib_src_test() {
843 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
844 - multibuild_foreach_variant x265_variant_src_test
845 -}
846 -
847 -multilib_src_install() {
848 - # Install only "main" variant since the others are already linked into it.
849 - local MULTIBUILD_VARIANTS=( "main" )
850 - multibuild_foreach_variant cmake-utils_src_install
851 -}
852 -
853 -multilib_src_install_all() {
854 - dodoc -r "${S}/../doc/"*
855 -}
856
857 diff --git a/media-libs/x265/x265-3.1.2.ebuild b/media-libs/x265/x265-3.1.2.ebuild
858 deleted file mode 100644
859 index b69d74af980..00000000000
860 --- a/media-libs/x265/x265-3.1.2.ebuild
861 +++ /dev/null
862 @@ -1,196 +0,0 @@
863 -# Copyright 1999-2020 Gentoo Authors
864 -# Distributed under the terms of the GNU General Public License v2
865 -
866 -EAPI=5
867 -
868 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
869 -
870 -if [[ ${PV} = 9999* ]]; then
871 - inherit mercurial
872 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
873 -else
874 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
875 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
876 -fi
877 -
878 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
879 -HOMEPAGE="http://x265.org/"
880 -
881 -LICENSE="GPL-2"
882 -# subslot = libx265 soname
883 -SLOT="0/176"
884 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
885 -RESTRICT="!test? ( test )"
886 -
887 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
888 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
889 -DEPEND="${RDEPEND}
890 - abi_x86_32? ( ${ASM_DEPEND} )
891 - abi_x86_64? ( ${ASM_DEPEND} )"
892 -
893 -PATCHES=(
894 - "${FILESDIR}/arm.patch"
895 - "${FILESDIR}/neon.patch"
896 - "${FILESDIR}/ppc64.patch"
897 -)
898 -
899 -src_unpack() {
900 - if [[ ${PV} = 9999* ]]; then
901 - mercurial_src_unpack
902 - # Can't set it at global scope due to mercurial.eclass limitations...
903 - export S=${WORKDIR}/${P}/source
904 - else
905 - unpack ${A}
906 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
907 - fi
908 -}
909 -
910 -# By default, the library and the encoder is configured for only one output bit
911 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
912 -# files with a different bit depth, which is annoying. However, upstream
913 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
914 -# that together so that the resulting library can produce all three of them
915 -# instead of only one.
916 -# The API requires the bit depth parameter, so that libx265 can then chose which
917 -# variant of the encoder to use.
918 -# To achieve this, we have to build one (static) library for each non-main
919 -# variant, and link it into the main library.
920 -# Upstream documents using the 8bit variant as main library, hence we do not
921 -# allow disabling it: "main" *MUST* come last in the following list.
922 -
923 -x265_get_variants() {
924 - local variants=""
925 - use 12bit && variants+="main12 "
926 - use 10bit && variants+="main10 "
927 - variants+="main"
928 - echo "${variants}"
929 -}
930 -
931 -x265_variant_src_configure() {
932 - mkdir -p "${BUILD_DIR}" || die
933 - pushd "${BUILD_DIR}" >/dev/null || die
934 -
935 - local mycmakeargs=( "${myabicmakeargs[@]}" )
936 - case "${MULTIBUILD_VARIANT}" in
937 - "main12")
938 - mycmakeargs+=(
939 - -DHIGH_BIT_DEPTH=ON
940 - -DEXPORT_C_API=OFF
941 - -DENABLE_SHARED=OFF
942 - -DENABLE_CLI=OFF
943 - -DMAIN12=ON
944 - )
945 - if [[ ${ABI} = x86 ]] ; then
946 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
947 - fi
948 - if [[ ${ABI} = arm ]] ; then
949 - # 589674
950 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
951 - fi
952 - if [[ ${ABI} = ppc64 ]] ; then
953 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
954 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
955 - fi
956 - ;;
957 - "main10")
958 - mycmakeargs+=(
959 - -DHIGH_BIT_DEPTH=ON
960 - -DEXPORT_C_API=OFF
961 - -DENABLE_SHARED=OFF
962 - -DENABLE_CLI=OFF
963 - )
964 - if [[ ${ABI} = x86 ]] ; then
965 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
966 - fi
967 - if [[ ${ABI} = arm ]] ; then
968 - # 589674
969 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
970 - fi
971 - if [[ ${ABI} = ppc64 ]] ; then
972 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
973 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
974 - fi
975 - ;;
976 - "main")
977 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
978 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
979 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
980 - local liblist=""
981 - for v in "${myvariants[@]}" ; do
982 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
983 - liblist+="libx265_${v}.a;"
984 - done
985 - mycmakeargs+=(
986 - -DEXTRA_LIB="${liblist}"
987 - -DEXTRA_LINK_FLAGS=-L.
988 - -DLINKED_10BIT=$(usex 10bit)
989 - -DLINKED_12BIT=$(usex 12bit)
990 - )
991 - fi
992 - ;;
993 - *)
994 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
995 - esac
996 - cmake-utils_src_configure
997 - popd >/dev/null || die
998 -}
999 -
1000 -multilib_src_configure() {
1001 - append-cflags -fPIC
1002 - append-cxxflags -fPIC
1003 - local myabicmakeargs=(
1004 - $(cmake-utils_use_enable test TESTS)
1005 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
1006 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
1007 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
1008 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
1009 - -DLIB_INSTALL_DIR="$(get_libdir)"
1010 - )
1011 -
1012 - if [[ ${ABI} = x86 ]] ; then
1013 - # Bug #528202
1014 - if use pic ; then
1015 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
1016 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1017 - fi
1018 - elif [[ ${ABI} = x32 ]] ; then
1019 - # bug #510890
1020 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1021 - elif [[ ${ABI} = arm ]] ; then
1022 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
1023 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
1024 - fi
1025 -
1026 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1027 - multibuild_foreach_variant x265_variant_src_configure
1028 -}
1029 -
1030 -multilib_src_compile() {
1031 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1032 - multibuild_foreach_variant cmake-utils_src_compile
1033 -}
1034 -
1035 -x265_variant_src_test() {
1036 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
1037 - "${BUILD_DIR}/test/TestBench" || die
1038 - else
1039 - einfo "Unit tests check only assembly."
1040 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
1041 - einfo "Skipping tests."
1042 - fi
1043 -}
1044 -
1045 -multilib_src_test() {
1046 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1047 - multibuild_foreach_variant x265_variant_src_test
1048 -}
1049 -
1050 -multilib_src_install() {
1051 - # Install only "main" variant since the others are already linked into it.
1052 - local MULTIBUILD_VARIANTS=( "main" )
1053 - multibuild_foreach_variant cmake-utils_src_install
1054 -}
1055 -
1056 -multilib_src_install_all() {
1057 - dodoc -r "${S}/../doc/"*
1058 -}
1059
1060 diff --git a/media-libs/x265/x265-3.1.ebuild b/media-libs/x265/x265-3.1.ebuild
1061 deleted file mode 100644
1062 index b69d74af980..00000000000
1063 --- a/media-libs/x265/x265-3.1.ebuild
1064 +++ /dev/null
1065 @@ -1,196 +0,0 @@
1066 -# Copyright 1999-2020 Gentoo Authors
1067 -# Distributed under the terms of the GNU General Public License v2
1068 -
1069 -EAPI=5
1070 -
1071 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
1072 -
1073 -if [[ ${PV} = 9999* ]]; then
1074 - inherit mercurial
1075 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
1076 -else
1077 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
1078 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
1079 -fi
1080 -
1081 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
1082 -HOMEPAGE="http://x265.org/"
1083 -
1084 -LICENSE="GPL-2"
1085 -# subslot = libx265 soname
1086 -SLOT="0/176"
1087 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
1088 -RESTRICT="!test? ( test )"
1089 -
1090 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
1091 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
1092 -DEPEND="${RDEPEND}
1093 - abi_x86_32? ( ${ASM_DEPEND} )
1094 - abi_x86_64? ( ${ASM_DEPEND} )"
1095 -
1096 -PATCHES=(
1097 - "${FILESDIR}/arm.patch"
1098 - "${FILESDIR}/neon.patch"
1099 - "${FILESDIR}/ppc64.patch"
1100 -)
1101 -
1102 -src_unpack() {
1103 - if [[ ${PV} = 9999* ]]; then
1104 - mercurial_src_unpack
1105 - # Can't set it at global scope due to mercurial.eclass limitations...
1106 - export S=${WORKDIR}/${P}/source
1107 - else
1108 - unpack ${A}
1109 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
1110 - fi
1111 -}
1112 -
1113 -# By default, the library and the encoder is configured for only one output bit
1114 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
1115 -# files with a different bit depth, which is annoying. However, upstream
1116 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
1117 -# that together so that the resulting library can produce all three of them
1118 -# instead of only one.
1119 -# The API requires the bit depth parameter, so that libx265 can then chose which
1120 -# variant of the encoder to use.
1121 -# To achieve this, we have to build one (static) library for each non-main
1122 -# variant, and link it into the main library.
1123 -# Upstream documents using the 8bit variant as main library, hence we do not
1124 -# allow disabling it: "main" *MUST* come last in the following list.
1125 -
1126 -x265_get_variants() {
1127 - local variants=""
1128 - use 12bit && variants+="main12 "
1129 - use 10bit && variants+="main10 "
1130 - variants+="main"
1131 - echo "${variants}"
1132 -}
1133 -
1134 -x265_variant_src_configure() {
1135 - mkdir -p "${BUILD_DIR}" || die
1136 - pushd "${BUILD_DIR}" >/dev/null || die
1137 -
1138 - local mycmakeargs=( "${myabicmakeargs[@]}" )
1139 - case "${MULTIBUILD_VARIANT}" in
1140 - "main12")
1141 - mycmakeargs+=(
1142 - -DHIGH_BIT_DEPTH=ON
1143 - -DEXPORT_C_API=OFF
1144 - -DENABLE_SHARED=OFF
1145 - -DENABLE_CLI=OFF
1146 - -DMAIN12=ON
1147 - )
1148 - if [[ ${ABI} = x86 ]] ; then
1149 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1150 - fi
1151 - if [[ ${ABI} = arm ]] ; then
1152 - # 589674
1153 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1154 - fi
1155 - if [[ ${ABI} = ppc64 ]] ; then
1156 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
1157 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
1158 - fi
1159 - ;;
1160 - "main10")
1161 - mycmakeargs+=(
1162 - -DHIGH_BIT_DEPTH=ON
1163 - -DEXPORT_C_API=OFF
1164 - -DENABLE_SHARED=OFF
1165 - -DENABLE_CLI=OFF
1166 - )
1167 - if [[ ${ABI} = x86 ]] ; then
1168 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1169 - fi
1170 - if [[ ${ABI} = arm ]] ; then
1171 - # 589674
1172 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1173 - fi
1174 - if [[ ${ABI} = ppc64 ]] ; then
1175 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
1176 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
1177 - fi
1178 - ;;
1179 - "main")
1180 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
1181 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
1182 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
1183 - local liblist=""
1184 - for v in "${myvariants[@]}" ; do
1185 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
1186 - liblist+="libx265_${v}.a;"
1187 - done
1188 - mycmakeargs+=(
1189 - -DEXTRA_LIB="${liblist}"
1190 - -DEXTRA_LINK_FLAGS=-L.
1191 - -DLINKED_10BIT=$(usex 10bit)
1192 - -DLINKED_12BIT=$(usex 12bit)
1193 - )
1194 - fi
1195 - ;;
1196 - *)
1197 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
1198 - esac
1199 - cmake-utils_src_configure
1200 - popd >/dev/null || die
1201 -}
1202 -
1203 -multilib_src_configure() {
1204 - append-cflags -fPIC
1205 - append-cxxflags -fPIC
1206 - local myabicmakeargs=(
1207 - $(cmake-utils_use_enable test TESTS)
1208 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
1209 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
1210 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
1211 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
1212 - -DLIB_INSTALL_DIR="$(get_libdir)"
1213 - )
1214 -
1215 - if [[ ${ABI} = x86 ]] ; then
1216 - # Bug #528202
1217 - if use pic ; then
1218 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
1219 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1220 - fi
1221 - elif [[ ${ABI} = x32 ]] ; then
1222 - # bug #510890
1223 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1224 - elif [[ ${ABI} = arm ]] ; then
1225 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
1226 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
1227 - fi
1228 -
1229 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1230 - multibuild_foreach_variant x265_variant_src_configure
1231 -}
1232 -
1233 -multilib_src_compile() {
1234 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1235 - multibuild_foreach_variant cmake-utils_src_compile
1236 -}
1237 -
1238 -x265_variant_src_test() {
1239 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
1240 - "${BUILD_DIR}/test/TestBench" || die
1241 - else
1242 - einfo "Unit tests check only assembly."
1243 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
1244 - einfo "Skipping tests."
1245 - fi
1246 -}
1247 -
1248 -multilib_src_test() {
1249 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1250 - multibuild_foreach_variant x265_variant_src_test
1251 -}
1252 -
1253 -multilib_src_install() {
1254 - # Install only "main" variant since the others are already linked into it.
1255 - local MULTIBUILD_VARIANTS=( "main" )
1256 - multibuild_foreach_variant cmake-utils_src_install
1257 -}
1258 -
1259 -multilib_src_install_all() {
1260 - dodoc -r "${S}/../doc/"*
1261 -}
1262
1263 diff --git a/media-libs/x265/x265-3.2.1.ebuild b/media-libs/x265/x265-3.2.1.ebuild
1264 deleted file mode 100644
1265 index 6ce84bf0fa1..00000000000
1266 --- a/media-libs/x265/x265-3.2.1.ebuild
1267 +++ /dev/null
1268 @@ -1,196 +0,0 @@
1269 -# Copyright 1999-2020 Gentoo Authors
1270 -# Distributed under the terms of the GNU General Public License v2
1271 -
1272 -EAPI=5
1273 -
1274 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
1275 -
1276 -if [[ ${PV} = 9999* ]]; then
1277 - inherit mercurial
1278 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
1279 -else
1280 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
1281 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
1282 -fi
1283 -
1284 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
1285 -HOMEPAGE="http://x265.org/"
1286 -
1287 -LICENSE="GPL-2"
1288 -# subslot = libx265 soname
1289 -SLOT="0/179"
1290 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
1291 -RESTRICT="!test? ( test )"
1292 -
1293 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
1294 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
1295 -DEPEND="${RDEPEND}
1296 - abi_x86_32? ( ${ASM_DEPEND} )
1297 - abi_x86_64? ( ${ASM_DEPEND} )"
1298 -
1299 -PATCHES=(
1300 - "${FILESDIR}/arm.patch"
1301 - "${FILESDIR}/neon.patch"
1302 - "${FILESDIR}/ppc64.patch"
1303 -)
1304 -
1305 -src_unpack() {
1306 - if [[ ${PV} = 9999* ]]; then
1307 - mercurial_src_unpack
1308 - # Can't set it at global scope due to mercurial.eclass limitations...
1309 - export S=${WORKDIR}/${P}/source
1310 - else
1311 - unpack ${A}
1312 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
1313 - fi
1314 -}
1315 -
1316 -# By default, the library and the encoder is configured for only one output bit
1317 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
1318 -# files with a different bit depth, which is annoying. However, upstream
1319 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
1320 -# that together so that the resulting library can produce all three of them
1321 -# instead of only one.
1322 -# The API requires the bit depth parameter, so that libx265 can then chose which
1323 -# variant of the encoder to use.
1324 -# To achieve this, we have to build one (static) library for each non-main
1325 -# variant, and link it into the main library.
1326 -# Upstream documents using the 8bit variant as main library, hence we do not
1327 -# allow disabling it: "main" *MUST* come last in the following list.
1328 -
1329 -x265_get_variants() {
1330 - local variants=""
1331 - use 12bit && variants+="main12 "
1332 - use 10bit && variants+="main10 "
1333 - variants+="main"
1334 - echo "${variants}"
1335 -}
1336 -
1337 -x265_variant_src_configure() {
1338 - mkdir -p "${BUILD_DIR}" || die
1339 - pushd "${BUILD_DIR}" >/dev/null || die
1340 -
1341 - local mycmakeargs=( "${myabicmakeargs[@]}" )
1342 - case "${MULTIBUILD_VARIANT}" in
1343 - "main12")
1344 - mycmakeargs+=(
1345 - -DHIGH_BIT_DEPTH=ON
1346 - -DEXPORT_C_API=OFF
1347 - -DENABLE_SHARED=OFF
1348 - -DENABLE_CLI=OFF
1349 - -DMAIN12=ON
1350 - )
1351 - if [[ ${ABI} = x86 ]] ; then
1352 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1353 - fi
1354 - if [[ ${ABI} = arm ]] ; then
1355 - # 589674
1356 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1357 - fi
1358 - if [[ ${ABI} = ppc64 ]] ; then
1359 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
1360 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
1361 - fi
1362 - ;;
1363 - "main10")
1364 - mycmakeargs+=(
1365 - -DHIGH_BIT_DEPTH=ON
1366 - -DEXPORT_C_API=OFF
1367 - -DENABLE_SHARED=OFF
1368 - -DENABLE_CLI=OFF
1369 - )
1370 - if [[ ${ABI} = x86 ]] ; then
1371 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1372 - fi
1373 - if [[ ${ABI} = arm ]] ; then
1374 - # 589674
1375 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1376 - fi
1377 - if [[ ${ABI} = ppc64 ]] ; then
1378 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
1379 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
1380 - fi
1381 - ;;
1382 - "main")
1383 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
1384 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
1385 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
1386 - local liblist=""
1387 - for v in "${myvariants[@]}" ; do
1388 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
1389 - liblist+="libx265_${v}.a;"
1390 - done
1391 - mycmakeargs+=(
1392 - -DEXTRA_LIB="${liblist}"
1393 - -DEXTRA_LINK_FLAGS=-L.
1394 - -DLINKED_10BIT=$(usex 10bit)
1395 - -DLINKED_12BIT=$(usex 12bit)
1396 - )
1397 - fi
1398 - ;;
1399 - *)
1400 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
1401 - esac
1402 - cmake-utils_src_configure
1403 - popd >/dev/null || die
1404 -}
1405 -
1406 -multilib_src_configure() {
1407 - append-cflags -fPIC
1408 - append-cxxflags -fPIC
1409 - local myabicmakeargs=(
1410 - $(cmake-utils_use_enable test TESTS)
1411 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
1412 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
1413 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
1414 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
1415 - -DLIB_INSTALL_DIR="$(get_libdir)"
1416 - )
1417 -
1418 - if [[ ${ABI} = x86 ]] ; then
1419 - # Bug #528202
1420 - if use pic ; then
1421 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
1422 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1423 - fi
1424 - elif [[ ${ABI} = x32 ]] ; then
1425 - # bug #510890
1426 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1427 - elif [[ ${ABI} = arm ]] ; then
1428 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
1429 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
1430 - fi
1431 -
1432 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1433 - multibuild_foreach_variant x265_variant_src_configure
1434 -}
1435 -
1436 -multilib_src_compile() {
1437 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1438 - multibuild_foreach_variant cmake-utils_src_compile
1439 -}
1440 -
1441 -x265_variant_src_test() {
1442 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
1443 - "${BUILD_DIR}/test/TestBench" || die
1444 - else
1445 - einfo "Unit tests check only assembly."
1446 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
1447 - einfo "Skipping tests."
1448 - fi
1449 -}
1450 -
1451 -multilib_src_test() {
1452 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1453 - multibuild_foreach_variant x265_variant_src_test
1454 -}
1455 -
1456 -multilib_src_install() {
1457 - # Install only "main" variant since the others are already linked into it.
1458 - local MULTIBUILD_VARIANTS=( "main" )
1459 - multibuild_foreach_variant cmake-utils_src_install
1460 -}
1461 -
1462 -multilib_src_install_all() {
1463 - dodoc -r "${S}/../doc/"*
1464 -}
1465
1466 diff --git a/media-libs/x265/x265-3.2.ebuild b/media-libs/x265/x265-3.2.ebuild
1467 deleted file mode 100644
1468 index 6ce84bf0fa1..00000000000
1469 --- a/media-libs/x265/x265-3.2.ebuild
1470 +++ /dev/null
1471 @@ -1,196 +0,0 @@
1472 -# Copyright 1999-2020 Gentoo Authors
1473 -# Distributed under the terms of the GNU General Public License v2
1474 -
1475 -EAPI=5
1476 -
1477 -inherit cmake-utils multilib-minimal multilib multibuild flag-o-matic
1478 -
1479 -if [[ ${PV} = 9999* ]]; then
1480 - inherit mercurial
1481 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
1482 -else
1483 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
1484 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
1485 -fi
1486 -
1487 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
1488 -HOMEPAGE="http://x265.org/"
1489 -
1490 -LICENSE="GPL-2"
1491 -# subslot = libx265 soname
1492 -SLOT="0/179"
1493 -IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
1494 -RESTRICT="!test? ( test )"
1495 -
1496 -ASM_DEPEND=">=dev-lang/yasm-1.2.0"
1497 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
1498 -DEPEND="${RDEPEND}
1499 - abi_x86_32? ( ${ASM_DEPEND} )
1500 - abi_x86_64? ( ${ASM_DEPEND} )"
1501 -
1502 -PATCHES=(
1503 - "${FILESDIR}/arm.patch"
1504 - "${FILESDIR}/neon.patch"
1505 - "${FILESDIR}/ppc64.patch"
1506 -)
1507 -
1508 -src_unpack() {
1509 - if [[ ${PV} = 9999* ]]; then
1510 - mercurial_src_unpack
1511 - # Can't set it at global scope due to mercurial.eclass limitations...
1512 - export S=${WORKDIR}/${P}/source
1513 - else
1514 - unpack ${A}
1515 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
1516 - fi
1517 -}
1518 -
1519 -# By default, the library and the encoder is configured for only one output bit
1520 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
1521 -# files with a different bit depth, which is annoying. However, upstream
1522 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
1523 -# that together so that the resulting library can produce all three of them
1524 -# instead of only one.
1525 -# The API requires the bit depth parameter, so that libx265 can then chose which
1526 -# variant of the encoder to use.
1527 -# To achieve this, we have to build one (static) library for each non-main
1528 -# variant, and link it into the main library.
1529 -# Upstream documents using the 8bit variant as main library, hence we do not
1530 -# allow disabling it: "main" *MUST* come last in the following list.
1531 -
1532 -x265_get_variants() {
1533 - local variants=""
1534 - use 12bit && variants+="main12 "
1535 - use 10bit && variants+="main10 "
1536 - variants+="main"
1537 - echo "${variants}"
1538 -}
1539 -
1540 -x265_variant_src_configure() {
1541 - mkdir -p "${BUILD_DIR}" || die
1542 - pushd "${BUILD_DIR}" >/dev/null || die
1543 -
1544 - local mycmakeargs=( "${myabicmakeargs[@]}" )
1545 - case "${MULTIBUILD_VARIANT}" in
1546 - "main12")
1547 - mycmakeargs+=(
1548 - -DHIGH_BIT_DEPTH=ON
1549 - -DEXPORT_C_API=OFF
1550 - -DENABLE_SHARED=OFF
1551 - -DENABLE_CLI=OFF
1552 - -DMAIN12=ON
1553 - )
1554 - if [[ ${ABI} = x86 ]] ; then
1555 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1556 - fi
1557 - if [[ ${ABI} = arm ]] ; then
1558 - # 589674
1559 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1560 - fi
1561 - if [[ ${ABI} = ppc64 ]] ; then
1562 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
1563 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
1564 - fi
1565 - ;;
1566 - "main10")
1567 - mycmakeargs+=(
1568 - -DHIGH_BIT_DEPTH=ON
1569 - -DEXPORT_C_API=OFF
1570 - -DENABLE_SHARED=OFF
1571 - -DENABLE_CLI=OFF
1572 - )
1573 - if [[ ${ABI} = x86 ]] ; then
1574 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1575 - fi
1576 - if [[ ${ABI} = arm ]] ; then
1577 - # 589674
1578 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1579 - fi
1580 - if [[ ${ABI} = ppc64 ]] ; then
1581 - # https://bugs.gentoo.org/show_bug.cgi?id=607802#c5
1582 - mycmakeargs+=( -DENABLE_ASSEMBLY=OFF -DENABLE_ALTIVEC=OFF )
1583 - fi
1584 - ;;
1585 - "main")
1586 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
1587 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
1588 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
1589 - local liblist=""
1590 - for v in "${myvariants[@]}" ; do
1591 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
1592 - liblist+="libx265_${v}.a;"
1593 - done
1594 - mycmakeargs+=(
1595 - -DEXTRA_LIB="${liblist}"
1596 - -DEXTRA_LINK_FLAGS=-L.
1597 - -DLINKED_10BIT=$(usex 10bit)
1598 - -DLINKED_12BIT=$(usex 12bit)
1599 - )
1600 - fi
1601 - ;;
1602 - *)
1603 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
1604 - esac
1605 - cmake-utils_src_configure
1606 - popd >/dev/null || die
1607 -}
1608 -
1609 -multilib_src_configure() {
1610 - append-cflags -fPIC
1611 - append-cxxflags -fPIC
1612 - local myabicmakeargs=(
1613 - $(cmake-utils_use_enable test TESTS)
1614 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
1615 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
1616 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
1617 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
1618 - -DLIB_INSTALL_DIR="$(get_libdir)"
1619 - )
1620 -
1621 - if [[ ${ABI} = x86 ]] ; then
1622 - # Bug #528202
1623 - if use pic ; then
1624 - ewarn "PIC has been requested but x86 asm is not PIC-safe, disabling it."
1625 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1626 - fi
1627 - elif [[ ${ABI} = x32 ]] ; then
1628 - # bug #510890
1629 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1630 - elif [[ ${ABI} = arm ]] ; then
1631 - myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex cpu_flags_arm_neon ON OFF)) )
1632 - use cpu_flags_arm_neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
1633 - fi
1634 -
1635 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1636 - multibuild_foreach_variant x265_variant_src_configure
1637 -}
1638 -
1639 -multilib_src_compile() {
1640 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1641 - multibuild_foreach_variant cmake-utils_src_compile
1642 -}
1643 -
1644 -x265_variant_src_test() {
1645 - if [ -x "${BUILD_DIR}/test/TestBench" ] ; then
1646 - "${BUILD_DIR}/test/TestBench" || die
1647 - else
1648 - einfo "Unit tests check only assembly."
1649 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
1650 - einfo "Skipping tests."
1651 - fi
1652 -}
1653 -
1654 -multilib_src_test() {
1655 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1656 - multibuild_foreach_variant x265_variant_src_test
1657 -}
1658 -
1659 -multilib_src_install() {
1660 - # Install only "main" variant since the others are already linked into it.
1661 - local MULTIBUILD_VARIANTS=( "main" )
1662 - multibuild_foreach_variant cmake-utils_src_install
1663 -}
1664 -
1665 -multilib_src_install_all() {
1666 - dodoc -r "${S}/../doc/"*
1667 -}
1668
1669 diff --git a/media-libs/x265/x265-3.3.ebuild b/media-libs/x265/x265-3.3.ebuild
1670 deleted file mode 100644
1671 index 1bcd7b28a79..00000000000
1672 --- a/media-libs/x265/x265-3.3.ebuild
1673 +++ /dev/null
1674 @@ -1,220 +0,0 @@
1675 -# Copyright 1999-2020 Gentoo Authors
1676 -# Distributed under the terms of the GNU General Public License v2
1677 -
1678 -EAPI="7"
1679 -
1680 -CMAKE_ECLASS=cmake
1681 -inherit flag-o-matic multibuild cmake-multilib
1682 -
1683 -if [[ ${PV} = 9999* ]]; then
1684 - inherit mercurial
1685 - EHG_REPO_URI="https://bitbucket.org/multicoreware/x265"
1686 -else
1687 - SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz"
1688 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
1689 -fi
1690 -
1691 -DESCRIPTION="Library for encoding video streams into the H.265/HEVC format"
1692 -HOMEPAGE="http://x265.org/ https://bitbucket.org/multicoreware/x265/wiki/Home"
1693 -
1694 -LICENSE="GPL-2"
1695 -# subslot = libx265 soname
1696 -SLOT="0/188"
1697 -IUSE="+asm +10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa test"
1698 -
1699 -# Test suite requires assembly support and is known to be broken
1700 -RESTRICT="test"
1701 -
1702 -ASM_DEPEND=">=dev-lang/nasm-2.13"
1703 -
1704 -BDEPEND="asm? (
1705 - abi_x86_32? ( ${ASM_DEPEND} )
1706 - abi_x86_64? ( ${ASM_DEPEND} )
1707 - )"
1708 -
1709 -RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
1710 -
1711 -DEPEND="${RDEPEND}"
1712 -
1713 -PATCHES=(
1714 - "${FILESDIR}"/${PN}-3.3-arm.patch
1715 - "${FILESDIR}"/${PN}-3.3-neon.patch
1716 - "${FILESDIR}"/${PN}-3.3-ppc64.patch
1717 -)
1718 -
1719 -src_unpack() {
1720 - if [[ ${PV} = 9999* ]] ; then
1721 - mercurial_src_unpack
1722 - # Can't set it at global scope due to mercurial.eclass limitations...
1723 - export S=${WORKDIR}/${P}/source
1724 - else
1725 - unpack ${A}
1726 - export S="$(echo "${WORKDIR}/${PN}_"*"/source")"
1727 - fi
1728 -}
1729 -
1730 -# By default, the library and the encoder is configured for only one output bit
1731 -# depth. Meaning, one has to rebuild libx265 if (s)he wants to produce HEVC
1732 -# files with a different bit depth, which is annoying. However, upstream
1733 -# supports proper namespacing for 8bits, 10bits & 12bits HEVC and linking all
1734 -# that together so that the resulting library can produce all three of them
1735 -# instead of only one.
1736 -# The API requires the bit depth parameter, so that libx265 can then chose which
1737 -# variant of the encoder to use.
1738 -# To achieve this, we have to build one (static) library for each non-main
1739 -# variant, and link it into the main library.
1740 -# Upstream documents using the 8bit variant as main library, hence we do not
1741 -# allow disabling it: "main" *MUST* come last in the following list.
1742 -
1743 -x265_get_variants() {
1744 - local -a variants=()
1745 - use 12bit && variants+=( main12 )
1746 - use 10bit && variants+=( main10 )
1747 - variants+=( main )
1748 - echo "${variants[@]}"
1749 -}
1750 -
1751 -x265_variant_src_configure() {
1752 - mkdir -p "${BUILD_DIR}" || die
1753 - pushd "${BUILD_DIR}" >/dev/null || die
1754 -
1755 - local mycmakeargs=( "${myabicmakeargs[@]}" )
1756 - case "${MULTIBUILD_VARIANT}" in
1757 - "main12")
1758 - mycmakeargs+=(
1759 - -DHIGH_BIT_DEPTH=ON
1760 - -DEXPORT_C_API=OFF
1761 - -DENABLE_SHARED=OFF
1762 - -DENABLE_CLI=OFF
1763 - -DMAIN12=ON
1764 - )
1765 - # disable altivec for 12bit build #607802#c5
1766 - [[ ${ABI} = ppc* ]] && mycmakeargs+=( -DENABLE_ALTIVEC=OFF )
1767 - ;;
1768 - "main10")
1769 - mycmakeargs+=(
1770 - -DHIGH_BIT_DEPTH=ON
1771 - -DEXPORT_C_API=OFF
1772 - -DENABLE_SHARED=OFF
1773 - -DENABLE_CLI=OFF
1774 - )
1775 - # disable altivec for 10bit build #607802#c5
1776 - [[ ${ABI} = ppc* ]] && mycmakeargs+=( -DENABLE_ALTIVEC=OFF )
1777 - ;;
1778 - "main")
1779 - if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
1780 - local myvariants=( "${MULTIBUILD_VARIANTS[@]}" )
1781 - unset myvariants[${#MULTIBUILD_VARIANTS[@]}-1]
1782 - local liblist="" v=
1783 - for v in "${myvariants[@]}" ; do
1784 - ln -s "${BUILD_DIR%-*}-${v}/libx265.a" "libx265_${v}.a" || die
1785 - liblist+="libx265_${v}.a;"
1786 - done
1787 - mycmakeargs+=(
1788 - -DEXTRA_LIB="${liblist}"
1789 - -DEXTRA_LINK_FLAGS=-L.
1790 - -DLINKED_10BIT=$(usex 10bit)
1791 - -DLINKED_12BIT=$(usex 12bit)
1792 - )
1793 - # we have to handle ppc here and not in multilib_src_configure
1794 - # because we want those flags apply ONLY to "main" variant
1795 - if [[ ${ABI} = ppc* ]] ; then
1796 - myabicmakeargs+=(
1797 - -DCPU_POWER8=$(usex cpu_flags_ppc_vsx2 ON OFF)
1798 - -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_vsx2 ON OFF)
1799 - )
1800 - fi
1801 - fi
1802 - ;;
1803 - *)
1804 - die "Unknown variant: ${MULTIBUILD_VARIANT}";;
1805 - esac
1806 -
1807 - cmake_src_configure
1808 - popd >/dev/null || die
1809 -}
1810 -
1811 -multilib_src_configure() {
1812 - local myabicmakeargs=(
1813 - $(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
1814 - -DENABLE_PIC=ON
1815 - -DENABLE_LIBNUMA=$(usex numa ON OFF)
1816 - -DLIB_INSTALL_DIR="$(get_libdir)"
1817 - )
1818 -
1819 - local supports_asm=yes
1820 -
1821 - if [[ ${ABI} = x86 ]] ; then
1822 - if use asm ; then
1823 - # Bug #528202
1824 - ewarn "x86 asm is not PIC-safe, disabling it."
1825 - supports_asm=no
1826 - fi
1827 - elif [[ ${ABI} = x32 ]] ; then
1828 - if use asm ; then
1829 - # bug #510890
1830 - ewarn "x32 ABI doesn't support asm"
1831 - supports_asm=no
1832 - fi
1833 - elif [[ ${ABI} = arm ]] ; then
1834 - if use asm && use cpu_flags_arm_neon ; then
1835 - supports_asm=yes
1836 - elif use asm ; then
1837 - ewarn "arm asm is not PIC-safe, disabling it."
1838 - supports_asm=no
1839 - fi
1840 - elif [[ ${ABI} = ppc* ]] ; then
1841 - if use asm ; then
1842 - ewarn "ppc64 uses altivec instead of asm, disabling it."
1843 - supports_asm=no
1844 - fi
1845 - fi
1846 -
1847 - if [[ "${supports_asm}" = yes ]] && use asm ; then
1848 - myabicmakeargs+=( -DENABLE_ASSEMBLY=ON )
1849 -
1850 - if multilib_is_native_abi ; then
1851 - myabicmakeargs+=( -DENABLE_TESTS=$(usex test ON OFF) )
1852 - fi
1853 - else
1854 - myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
1855 - fi
1856 -
1857 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1858 - multibuild_foreach_variant x265_variant_src_configure
1859 -}
1860 -
1861 -multilib_src_compile() {
1862 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1863 - multibuild_foreach_variant cmake_src_compile
1864 -}
1865 -
1866 -x265_variant_src_test() {
1867 - if [[ -x "${BUILD_DIR}/test/TestBench" ]] ; then
1868 - "${BUILD_DIR}/test/TestBench" || die
1869 - else
1870 - einfo "Unit tests check only assembly."
1871 - einfo "You do not seem to have any for ABI=${ABI}, x265 variant=${MULTIBUILD_VARIANT}"
1872 - einfo "Skipping tests."
1873 - fi
1874 -}
1875 -
1876 -multilib_src_test() {
1877 - local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
1878 - multibuild_foreach_variant x265_variant_src_test
1879 -}
1880 -
1881 -multilib_src_install() {
1882 - # Install only "main" variant since the others are already linked into it.
1883 - local MULTIBUILD_VARIANTS=( "main" )
1884 - multibuild_foreach_variant cmake_src_install
1885 -}
1886 -
1887 -multilib_src_install_all() {
1888 - dodoc -r "${S}/../doc/"*
1889 -
1890 - # we don't install *.a files for all variants,
1891 - # so just delete these files instead of pretending
1892 - # real USE=static-libs support
1893 - find "${ED}" -name "*.a" -delete || die
1894 -}