Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2015 15:47: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: r400030 - in head/graphics/dcp2icc: . files
Message-ID:  <201510231547.t9NFl9RT021081@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Fri Oct 23 15:47:08 2015
New Revision: 400030
URL: https://svnweb.freebsd.org/changeset/ports/400030

Log:
  - Allow to build on big-endian architectures
  - Add a comment explaining the need for USE_GCC

Added:
  head/graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp   (contents, props changed)
Modified:
  head/graphics/dcp2icc/Makefile

Modified: head/graphics/dcp2icc/Makefile
==============================================================================
--- head/graphics/dcp2icc/Makefile	Fri Oct 23 15:23:36 2015	(r400029)
+++ head/graphics/dcp2icc/Makefile	Fri Oct 23 15:47:08 2015	(r400030)
@@ -16,7 +16,7 @@ LIB_DEPENDS=	libexpat.so:${PORTSDIR}/tex
 		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}
 

Added: head/graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/dcp2icc/files/patch-XMP-Toolkit-SDK-4.4.2_source_common_EndianUtils.hpp	Fri Oct 23 15:47:08 2015	(r400030)
@@ -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



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