svn commit: r388126 - head/devel/icu

Sean Bruno sbruno at FreeBSD.org
Sun May 31 18:51:28 UTC 2015


Author: sbruno
Date: Sun May 31 18:51:27 2015
New Revision: 388126
URL: https://svnweb.freebsd.org/changeset/ports/388126

Log:
  Fix builds on big-endian architectures by declaring a CPPFLAG used internally
  by the source to handle big vs little endianess.
  
  PR:		199471

Modified:
  head/devel/icu/Makefile

Modified: head/devel/icu/Makefile
==============================================================================
--- head/devel/icu/Makefile	Sun May 31 17:48:59 2015	(r388125)
+++ head/devel/icu/Makefile	Sun May 31 18:51:27 2015	(r388126)
@@ -47,6 +47,11 @@ PLIST_SUB+=	ICUMAJOR=${ICUMAJOR} ICUVER=
 THREADS_CONFIGURE_ON=	--enable-weak-threads
 THREADS_CONFIGURE_OFF=	--enable-threads=no
 
+# For all Bigendian systems, set CPPFLAGS so that icu compiles and checks correctly
+.if ${ARCH} == "mips" || ${ARCH} == "mips64" || ${ARCH} == "sparc64" || ${ARCH} == "powerpc" || ${ARCH} == "powerpc64"
+CPPFLAGS+=	-DU_IS_BIG_ENDIAN=1
+.endif
+
 .include <bsd.port.options.mk>
 
 post-patch:


More information about the svn-ports-all mailing list