From owner-svn-ports-head@freebsd.org Fri Oct 23 15:47:10 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6289AA1DA25; Fri, 23 Oct 2015 15:47:10 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1554BD66; Fri, 23 Oct 2015 15:47:10 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9NFl9ow021084; Fri, 23 Oct 2015 15:47:09 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9NFl9RT021081; Fri, 23 Oct 2015 15:47:09 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201510231547.t9NFl9RT021081@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Fri, 23 Oct 2015 15:47:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400030 - in head/graphics/dcp2icc: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 15:47:10 -0000 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 ++ #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