ports/multimedia/libgav1/files/patch-cmake_libgav1__cpu__detection.cmake
Jan Beich ef8a4135b0 multimedia/libgav1: add new port
libgav1 is a Main profile (0) & High profile (1) compliant AV1 decoder.

https://chromium.googlesource.com/codecs/libgav1
2020-08-29 00:38:42 +00:00

13 lines
618 B
CMake

- Don't enable NEON on armv6 as it requires runtime detection
--- cmake/libgav1_cpu_detection.cmake.orig 2020-07-15 02:27:54 UTC
+++ cmake/libgav1_cpu_detection.cmake
@@ -21,7 +21,7 @@ set(LIBGAV1_CMAKE_LIBGAV1_CPU_DETECTION_CMAKE_ 1)
macro(libgav1_optimization_detect)
if(LIBGAV1_ENABLE_OPTIMIZATIONS)
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" cpu_lowercase)
- if(cpu_lowercase MATCHES "^arm|^aarch64")
+ if(cpu_lowercase MATCHES "^arm|^aarch64" AND NOT cpu_lowercase MATCHES "^armv6")
set(libgav1_have_neon ON)
elseif(cpu_lowercase MATCHES "^x86|amd64")
set(libgav1_have_sse4 ON)