Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2014 15:59:44 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361622 - in head/graphics/luxrender: . files
Message-ID:  <201407121559.s6CFxiFc072949@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sat Jul 12 15:59:44 2014
New Revision: 361622
URL: http://svnweb.freebsd.org/changeset/ports/361622
QAT: https://qat.redports.org/buildarchive/r361622/

Log:
  Unbreak on i386 by letting compiler to use SSE extensions, and limit the port
  to x86 only because of this.
  
  Reported by:	pkg-fallout

Modified:
  head/graphics/luxrender/Makefile
  head/graphics/luxrender/files/patch-CMakeLists.txt
  head/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake

Modified: head/graphics/luxrender/Makefile
==============================================================================
--- head/graphics/luxrender/Makefile	Sat Jul 12 15:22:00 2014	(r361621)
+++ head/graphics/luxrender/Makefile	Sat Jul 12 15:59:44 2014	(r361622)
@@ -24,6 +24,9 @@ LIB_DEPENDS=	libboost_python.so:${PORTSD
 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}

Modified: head/graphics/luxrender/files/patch-CMakeLists.txt
==============================================================================
--- head/graphics/luxrender/files/patch-CMakeLists.txt	Sat Jul 12 15:22:00 2014	(r361621)
+++ head/graphics/luxrender/files/patch-CMakeLists.txt	Sat Jul 12 15:59:44 2014	(r361622)
@@ -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

Modified: head/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake
==============================================================================
--- head/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake	Sat Jul 12 15:22:00 2014	(r361621)
+++ head/graphics/luxrender/files/patch-luxrays-cmake-PlatformSpecific.cmake	Sat Jul 12 15:59:44 2014	(r361622)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407121559.s6CFxiFc072949>