aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2015-10-23 23:47:08 +0800
committerdanfe <danfe@FreeBSD.org>2015-10-23 23:47:08 +0800
commit9180fc5b8272480972c7fade5b8102cee1ce7126 (patch)
tree9a43a0424f0c5ed775875b49f90d9be20ca58e39 /graphics
parent9062b6eab8232701f3d2a044cf0edfe873e10cd0 (diff)
downloadfreebsd-ports-gnome-9180fc5b8272480972c7fade5b8102cee1ce7126.tar.gz
freebsd-ports-gnome-9180fc5b8272480972c7fade5b8102cee1ce7126.tar.zst
freebsd-ports-gnome-9180fc5b8272480972c7fade5b8102cee1ce7126.zip
- Allow to build on big-endian architectures
- Add a comment explaining the need for USE_GCC
Diffstat (limited to 'graphics')
-rw-r--r--graphics/dcp2icc/Makefile2
-rw-r--r--graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp18
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/dcp2icc/Makefile b/graphics/dcp2icc/Makefile
index fbf207862b93..e347d2437d3b 100644
--- a/graphics/dcp2icc/Makefile
+++ b/graphics/dcp2icc/Makefile
@@ -16,7 +16,7 @@ LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
liblcms.so:${PORTSDIR}/graphics/lcms
USES= localbase scons tar:bzip2
-USE_GCC= any
+USE_GCC= any # segfaults on exit when built with Clang
PLIST_FILES= bin/${PORTNAME}
diff --git a/graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp b/graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp
new file mode 100644
index 000000000000..d2a7c1d58ab7
--- /dev/null
+++ b/graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp
@@ -0,0 +1,18 @@
+--- XMP-Toolkit-SDK-4.4.2/source/common/EndianUtils.hpp.orig 2008-10-06 07:18:58 UTC
++++ XMP-Toolkit-SDK-4.4.2/source/common/EndianUtils.hpp
+@@ -32,8 +32,13 @@
+ #endif
+ #elif XMP_UNIXBuild
+ #ifndef kBigEndianHost // Typically in the makefile for generic UNIX.
+- #if __GNUC__ && (__i386__ || __x86_64__)
+- #define kBigEndianHost 0
++ #ifdef __FreeBSD__
++ #include <sys/endian.h>
++ #if _BYTE_ORDER == _LITTLE_ENDIAN
++ #define kBigEndianHost 0
++ #else // _BYTE_ORDER == _BIG_ENDIAN
++ #define kBigEndianHost 1
++ #endif
+ #else
+ #error "Must define kBigEndianHost as 0 or 1 in the makefile."
+ #endif