aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/luxrender
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-07-12 23:59:44 +0800
committerdanfe <danfe@FreeBSD.org>2014-07-12 23:59:44 +0800
commit9514ca03673e556410bdb7180900527f4d9aa486 (patch)
treefc4e7c02433ae84444dd82a702c63238c9d855ea /graphics/luxrender
parentde39ca1b21bb8e921551d5a2ed69a554cfd0f5bf (diff)
downloadfreebsd-ports-gnome-9514ca03673e556410bdb7180900527f4d9aa486.tar.gz
freebsd-ports-gnome-9514ca03673e556410bdb7180900527f4d9aa486.tar.zst
freebsd-ports-gnome-9514ca03673e556410bdb7180900527f4d9aa486.zip
Unbreak on i386 by letting compiler to use SSE extensions, and limit the port
to x86 only because of this. Reported by: pkg-fallout
Diffstat (limited to 'graphics/luxrender')
-rw-r--r--graphics/luxrender/Makefile3
-rw-r--r--graphics/luxrender/files/patch-CMakeLists.txt2
-rw-r--r--graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake2
3 files changed, 5 insertions, 2 deletions
diff --git a/graphics/luxrender/Makefile b/graphics/luxrender/Makefile
index 0569ca33b119..ddff4fc3dfc4 100644
--- a/graphics/luxrender/Makefile
+++ b/graphics/luxrender/Makefile
@@ -24,6 +24,9 @@ LIB_DEPENDS= libboost_python.so:${PORTSDIR}/devel/boost-python-libs \
LIB_DEPENDS+= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
.endif
+ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS_REASON= uses SSE extensions
+
USES= bison cmake tar:bzip2
USE_GL= glut glew
WRKSRC= ${WRKDIR}/luxrender-lux-${LUX_REV}
diff --git a/graphics/luxrender/files/patch-CMakeLists.txt b/graphics/luxrender/files/patch-CMakeLists.txt
index 8b79b1af7065..1cea51b134b9 100644
--- a/graphics/luxrender/files/patch-CMakeLists.txt
+++ b/graphics/luxrender/files/patch-CMakeLists.txt
@@ -14,7 +14,7 @@
# Dade - default compiler options
# Removed "-O3" from definitions in order to have CMake Release/Debug options to work
- ADD_DEFINITIONS(-msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall -fPIC -DHAVE_PTHREAD_H)
-+ ADD_DEFINITIONS(-Wall -fPIC -DHAVE_PTHREAD_H)
++ ADD_DEFINITIONS(-msse -Wall -fPIC -DHAVE_PTHREAD_H)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fvisibility=hidden -fvisibility-inlines-hidden")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fvisibility=hidden -fvisibility-inlines-hidden")
# The QBVH accelerator needs to be compiled with much reduced optimizations
diff --git a/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake b/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake
index aecad2dfde73..74c02cfb6c22 100644
--- a/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake
+++ b/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake
@@ -9,7 +9,7 @@
# Update if necessary
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3 -mssse3")
-+# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3 -mssse3")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
IF(NOT CYGWIN)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF(NOT CYGWIN)