aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2015-11-29 12:50:09 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2015-11-29 12:50:09 +0000
commit0eae38450b917181780f7c3b30f6135e2ac273db (patch)
tree30b89f256dc3540d070cb3d457d3593d199f8413 /graphics
parent3530da76ff7982566455c7fdbe1bb8e934e5dafd (diff)
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/openimageio/Makefile4
-rw-r--r--graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt13
-rw-r--r--graphics/openshadinglanguage/Makefile4
3 files changed, 21 insertions, 0 deletions
diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile
index 3a7228e74729..d8bc951b2f4e 100644
--- a/graphics/openimageio/Makefile
+++ b/graphics/openimageio/Makefile
@@ -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 \
diff --git a/graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt b/graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt
new file mode 100644
index 000000000000..21467c1fba39
--- /dev/null
+++ b/graphics/openimageio/files/patch-src_libOpenImageIO_CMakeLists.txt
@@ -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)
diff --git a/graphics/openshadinglanguage/Makefile b/graphics/openshadinglanguage/Makefile
index 464d39695d75..68b4317705ee 100644
--- a/graphics/openshadinglanguage/Makefile
+++ b/graphics/openshadinglanguage/Makefile
@@ -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