svn commit: r434325 - head/devel/icu

Jan Beich jbeich at FreeBSD.org
Sat Feb 18 00:29:08 UTC 2017


Author: jbeich
Date: Sat Feb 18 00:29:07 2017
New Revision: 434325
URL: https://svnweb.freebsd.org/changeset/ports/434325

Log:
  devel/icu: use sh(1) globbing for endian-sensitive path
  
  This should unbreak build on armeb, mipshf, mipsn32, mips64hf without
  having to worry about future architectures.

Modified:
  head/devel/icu/Makefile   (contents, props changed)

Modified: head/devel/icu/Makefile
==============================================================================
--- head/devel/icu/Makefile	Fri Feb 17 23:35:36 2017	(r434324)
+++ head/devel/icu/Makefile	Sat Feb 18 00:29:07 2017	(r434325)
@@ -33,16 +33,7 @@ WRKSRC=		${WRKDIR}/icu/source
 ICUMAJOR=	${PORTVERSION:C/\..*//}
 PLIST_SUB+=	ICUMAJOR=${ICUMAJOR} ICUVER=${PORTVERSION}
 
-.include <bsd.port.options.mk>
-
 .ifndef PKGNAMESUFFIX
-.if ${ARCH} == "mips" || ${ARCH} == "mips64" || ${ARCH} == "sparc64" \
- || ${ARCH} == "powerpc" || ${ARCH} == "powerpc64"
-PLIST_FILES+=	%%DATADIR%%/%%ICUVER%%/icudt%%ICUMAJOR%%b.dat
-.else
-PLIST_FILES+=	%%DATADIR%%/%%ICUVER%%/icudt%%ICUMAJOR%%l.dat
-.endif
-
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \
 		${STAGEDIR}${PREFIX}/bin/*conv \
@@ -50,6 +41,9 @@ post-install:
 		${STAGEDIR}${PREFIX}/bin/derb \
 		${STAGEDIR}${PREFIX}/bin/pkgdata
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
+# Filename varies by endianness: icudt<major>b.dat vs. icudt<major>l.dat
+	@(cd ${STAGEDIR}${PREFIX} && ${ECHO_CMD} \
+		${DATADIR_REL}/${PORTVERSION}/icudt*.dat >>${TMPPLIST})
 .endif # PKGNAMESUFFIX
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list