aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2015-06-12 01:12:08 +0800
committeravilla <avilla@FreeBSD.org>2015-06-12 01:12:08 +0800
commit5d40de4e0ebb98585f120251bbb38286da477285 (patch)
treee16ac523713fbf4ccc62f611d81383429121407f /multimedia
parent58838e170d58d067ea77de3d1ac17322c0bc02ae (diff)
downloadfreebsd-ports-gnome-5d40de4e0ebb98585f120251bbb38286da477285.tar.gz
freebsd-ports-gnome-5d40de4e0ebb98585f120251bbb38286da477285.tar.zst
freebsd-ports-gnome-5d40de4e0ebb98585f120251bbb38286da477285.zip
multimedia/vid.stab: fix build on ARM and MIPS
The project was hardcoding SSE support, thus making the build fail on ARM and MIPS architectures. PR: 197133 MFH: 2015Q2
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake39
1 files changed, 39 insertions, 0 deletions
diff --git a/multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake b/multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake
new file mode 100644
index 000000000000..b28220296b6d
--- /dev/null
+++ b/multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake
@@ -0,0 +1,39 @@
+--- CMakeModules/FindSSE.cmake.orig 2014-03-12 19:42:49 UTC
++++ CMakeModules/FindSSE.cmake
+@@ -40,6 +40,36 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ ELSE (SSE41_TRUE)
+ set(SSE4_1_FOUND false CACHE BOOL "SSE4.1 available on host")
+ ENDIF (SSE41_TRUE)
++ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
++ EXEC_PROGRAM(make ARGS "-V MACHINE_CPU" OUTPUT_VARIABLE CPUINFO)
++
++ STRING(REGEX MATCH "(^|[^s])sse2" SSE2_TRUE ${CPUINFO})
++ IF (SSE2_TRUE)
++ set(SSE2_FOUND true CACHE BOOL "SSE2 available on host")
++ ELSE (SSE2_TRUE)
++ set(SSE2_FOUND false CACHE BOOL "SSE2 available on host")
++ ENDIF (SSE2_TRUE)
++
++ STRING(REGEX MATCH "(^|[^s])sse3" SSE3_TRUE ${CPUINFO})
++ IF (SSE3_TRUE)
++ set(SSE3_FOUND true CACHE BOOL "SSE3 available on host")
++ ELSE (SSE3_TRUE)
++ set(SSE3_FOUND false CACHE BOOL "SSE3 available on host")
++ ENDIF (SSE3_TRUE)
++
++ STRING(REGEX MATCH "ssse3" SSSE3_TRUE ${CPUINFO})
++ IF (SSSE3_TRUE)
++ set(SSSE3_FOUND true CACHE BOOL "SSSE3 available on host")
++ ELSE (SSSE3_TRUE)
++ set(SSSE3_FOUND false CACHE BOOL "SSSE3 available on host")
++ ENDIF (SSSE3_TRUE)
++
++ STRING(REGEX MATCH "sse41" SSE41_TRUE ${CPUINFO})
++ IF (SSE41_TRUE)
++ set(SSE4_1_FOUND true CACHE BOOL "SSE4.1 available on host")
++ ELSE (SSE41_TRUE)
++ set(SSE4_1_FOUND false CACHE BOOL "SSE4.1 available on host")
++ ENDIF (SSE41_TRUE)
+ ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+ EXEC_PROGRAM("/usr/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
+ CPUINFO)