diff options
author | 2020-05-24 16:58:19 +0200 | |
---|---|---|
committer | 2020-05-24 22:23:49 +0200 | |
commit | e2661dbb76e81cc081c1220350c11e0a82401dd4 (patch) | |
tree | fed294b25455d8a4321acaa5ee376a5c4678f84e /media-libs/x265/files | |
parent | media-libs/x265: update HOMEPAGE (diff) | |
download | gentoo-e2661dbb76e81cc081c1220350c11e0a82401dd4.tar.gz gentoo-e2661dbb76e81cc081c1220350c11e0a82401dd4.tar.bz2 gentoo-e2661dbb76e81cc081c1220350c11e0a82401dd4.zip |
media-libs/x265: migrate to EAPI=7
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-libs/x265/files')
-rw-r--r-- | media-libs/x265/files/x265-3.3-arm.patch | 34 | ||||
-rw-r--r-- | media-libs/x265/files/x265-3.3-neon.patch | 16 | ||||
-rw-r--r-- | media-libs/x265/files/x265-3.3-ppc64.patch | 15 |
3 files changed, 65 insertions, 0 deletions
diff --git a/media-libs/x265/files/x265-3.3-arm.patch b/media-libs/x265/files/x265-3.3-arm.patch new file mode 100644 index 000000000000..7e7c8c58b724 --- /dev/null +++ b/media-libs/x265/files/x265-3.3-arm.patch @@ -0,0 +1,34 @@ +More aliases for ARM. +Do not force CFLAGS for ARM. + +Index: source/CMakeLists.txt +=================================================================== +--- old/CMakeLists.txt ++++ new/CMakeLists.txt +@@ -41,7 +41,7 @@ SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_ + # System architecture detection + string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC) + set(X86_ALIASES x86 i386 i686 x86_64 amd64) +-set(ARM_ALIASES armv6l armv7l) ++set(ARM_ALIASES armv6l armv6j armv7l armv7a) + list(FIND X86_ALIASES "${SYSPROC}" X86MATCH) + list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH) + set(POWER_ALIASES ppc64 ppc64le) +@@ -208,15 +208,11 @@ if(GCC) + endif() + endif() + endif() +- if(ARM AND CROSS_COMPILE_ARM) +- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC) +- elseif(ARM) ++ if(ARM) + find_package(Neon) + if(CPU_HAS_NEON) +- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC) ++ set(ARM_ARGS -mfpu=neon) + add_definitions(-DHAVE_NEON) +- else() +- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm) + endif() + endif() + add_definitions(${ARM_ARGS}) diff --git a/media-libs/x265/files/x265-3.3-neon.patch b/media-libs/x265/files/x265-3.3-neon.patch new file mode 100644 index 000000000000..316e670febe3 --- /dev/null +++ b/media-libs/x265/files/x265-3.3-neon.patch @@ -0,0 +1,16 @@ +These functions are only built when enabling assembly on ARM; use proper check +to avoid undefined symbols. + +Index: source/common/primitives.cpp +=================================================================== +--- old/common/primitives.cpp ++++ new/common/primitives.cpp +@@ -270,7 +270,7 @@ void PFX(cpu_emms)(void) {} + void PFX(cpu_cpuid)(uint32_t, uint32_t *eax, uint32_t *, uint32_t *, uint32_t *) { *eax = 0; } + void PFX(cpu_xgetbv)(uint32_t, uint32_t *, uint32_t *) {} + +-#if X265_ARCH_ARM == 0 ++#if X265_ARCH_ARM == 0 || !defined(ENABLE_ASSEMBLY) + void PFX(cpu_neon_test)(void) {} + int PFX(cpu_fast_neon_mrc_test)(void) { return 0; } + #endif // X265_ARCH_ARM diff --git a/media-libs/x265/files/x265-3.3-ppc64.patch b/media-libs/x265/files/x265-3.3-ppc64.patch new file mode 100644 index 000000000000..8e739e3fab1b --- /dev/null +++ b/media-libs/x265/files/x265-3.3-ppc64.patch @@ -0,0 +1,15 @@ +More complete ppc64 matches. + +Index: x265_2.2/source/CMakeLists.txt +=================================================================== +--- old/CMakeLists.txt ++++ new/CMakeLists.txt +@@ -44,7 +44,7 @@ set(X86_ALIASES x86 i386 i686 x86_64 amd + set(ARM_ALIASES armv6l armv6j armv7l armv7a) + list(FIND X86_ALIASES "${SYSPROC}" X86MATCH) + list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH) +-set(POWER_ALIASES ppc64 ppc64le) ++set(POWER_ALIASES ppc64 ppc64le powerpc64 powerpc64le) + list(FIND POWER_ALIASES "${SYSPROC}" POWERMATCH) + if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1") + set(X86 1) |