Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2015 12:50:09 +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: r402595 - in head: devel/llvm34 graphics/openimageio graphics/openimageio/files graphics/openshadinglanguage lang/clang34
Message-ID:  <201511291250.tATCo9r7082123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sun Nov 29 12:50:09 2015
New Revision: 402595
URL: https://svnweb.freebsd.org/changeset/ports/402595

Log:
  Allow to build on PowerPC.

Added:
  head/graphics/openimageio/files/
  head/graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt   (contents, props changed)
Modified:
  head/devel/llvm34/Makefile
  head/graphics/openimageio/Makefile
  head/graphics/openshadinglanguage/Makefile
  head/lang/clang34/Makefile

Modified: head/devel/llvm34/Makefile
==============================================================================
--- head/devel/llvm34/Makefile	Sun Nov 29 12:49:05 2015	(r402594)
+++ head/devel/llvm34/Makefile	Sun Nov 29 12:50:09 2015	(r402595)
@@ -85,6 +85,10 @@ CONFIGURE_ARGS+=--enable-experimental-ta
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == powerpc
+USE_GCC=	yes
+.endif
+
 # keep in sync with /usr/src/lib/clang/clang.build.mk
 CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-portbld-${OPSYS:tl}${OSREL}
 

Modified: head/graphics/openimageio/Makefile
==============================================================================
--- head/graphics/openimageio/Makefile	Sun Nov 29 12:49:05 2015	(r402594)
+++ head/graphics/openimageio/Makefile	Sun Nov 29 12:50:09 2015	(r402595)
@@ -79,6 +79,10 @@ PLIST_SUB+=		LIBVERS=${PORTVERSION}
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == powerpc
+USE_GCC=	yes
+.endif
+
 .if ${SLAVE_PORT} == no
 LIB_DEPENDS+=	libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
 		libboost_thread.so:${PORTSDIR}/devel/boost-libs \

Added: head/graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt	Sun Nov 29 12:50:09 2015	(r402595)
@@ -0,0 +1,13 @@
+--- src/libOpenImageIO/CMakeLists.txt.orig	2015-09-28 18:00:17 UTC
++++ src/libOpenImageIO/CMakeLists.txt
+@@ -272,6 +272,10 @@ if (EMBEDPLUGINS)
+     endif ()
+ endif ()
+ 
++if (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
++    target_link_libraries (OpenImageIO atomic)
++endif ()
++
+ link_ilmbase (OpenImageIO)
+ 
+ if (USE_EXTERNAL_PUGIXML)

Modified: head/graphics/openshadinglanguage/Makefile
==============================================================================
--- head/graphics/openshadinglanguage/Makefile	Sun Nov 29 12:49:05 2015	(r402594)
+++ head/graphics/openshadinglanguage/Makefile	Sun Nov 29 12:50:09 2015	(r402595)
@@ -29,6 +29,10 @@ USES=		bison cmake:outsource
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == powerpc
+USE_GCC=	yes
+.endif
+
 .if ${OSVERSION} < 1000033
 BUILD_DEPENDS+=	flex>=2.5.37:${PORTSDIR}/textproc/flex
 CMAKE_ARGS+=	-DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex

Modified: head/lang/clang34/Makefile
==============================================================================
--- head/lang/clang34/Makefile	Sun Nov 29 12:49:05 2015	(r402594)
+++ head/lang/clang34/Makefile	Sun Nov 29 12:50:09 2015	(r402595)
@@ -75,6 +75,10 @@ PORTDATA=	scanview.css \
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == powerpc
+USE_GCC=	yes
+.endif
+
 # keep in sync with /usr/src/lib/clang/clang.build.mk
 CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-portbld-${OPSYS:tl}${OSREL}
 



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