Date: Thu, 11 Jun 2015 17:12:08 +0000 (UTC) From: Alberto Villa <avilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r389231 - head/multimedia/vid.stab/files Message-ID: <201506111712.t5BHC83i082616@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avilla Date: Thu Jun 11 17:12:08 2015 New Revision: 389231 URL: https://svnweb.freebsd.org/changeset/ports/389231 Log: 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 Added: head/multimedia/vid.stab/files/ head/multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake (contents, props changed) Added: head/multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/vid.stab/files/patch-CMakeModules_FindSSE.cmake Thu Jun 11 17:12:08 2015 (r389231) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506111712.t5BHC83i082616>