Mon May 13 14:55:05 2019 UTC ()
Work around upstream bug, PR pkg/54193


(martin)
diff -r1.125 -r1.126 pkgsrc/textproc/icu/Makefile

cvs diff -r1.125 -r1.126 pkgsrc/textproc/icu/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/icu/Makefile 2019/05/04 20:30:34 1.125
+++ pkgsrc/textproc/icu/Makefile 2019/05/13 14:55:05 1.126
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.125 2019/05/04 20:30:34 wiedi Exp $ 1# $NetBSD: Makefile,v 1.126 2019/05/13 14:55:05 martin Exp $
2 2
3DISTNAME= icu4c-64_2-src 3DISTNAME= icu4c-64_2-src
4PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g} 4PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g}
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= textproc 6CATEGORIES= textproc
7MASTER_SITES= http://download.icu-project.org/files/icu4c/${PKGVERSION_NOREV}/ 7MASTER_SITES= http://download.icu-project.org/files/icu4c/${PKGVERSION_NOREV}/
8EXTRACT_SUFX= .tgz 8EXTRACT_SUFX= .tgz
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.icu-project.org/ 11HOMEPAGE= http://www.icu-project.org/
12COMMENT= Robust and full-featured Unicode services 12COMMENT= Robust and full-featured Unicode services
13LICENSE= mit 13LICENSE= mit
14 14
@@ -91,26 +91,30 @@ PLIST_SUBST+= MH_NAME=mh-qnx @@ -91,26 +91,30 @@ PLIST_SUBST+= MH_NAME=mh-qnx
91# For unknown systems, set the filename to mh-unknown so that the user 91# For unknown systems, set the filename to mh-unknown so that the user
92# gets a warning about missing files. 92# gets a warning about missing files.
93PLIST_SUBST+= MH_NAME=mh-unknown 93PLIST_SUBST+= MH_NAME=mh-unknown
94.endif 94.endif
95 95
96PKGCONFIG_OVERRIDE+= config/icu-i18n.pc 96PKGCONFIG_OVERRIDE+= config/icu-i18n.pc
97PKGCONFIG_OVERRIDE+= config/icu-io.pc 97PKGCONFIG_OVERRIDE+= config/icu-io.pc
98PKGCONFIG_OVERRIDE+= config/icu-le.pc 98PKGCONFIG_OVERRIDE+= config/icu-le.pc
99PKGCONFIG_OVERRIDE+= config/icu-lx.pc 99PKGCONFIG_OVERRIDE+= config/icu-lx.pc
100PKGCONFIG_OVERRIDE+= config/icu-uc.pc 100PKGCONFIG_OVERRIDE+= config/icu-uc.pc
101PKGCONFIG_OVERRIDE+= config/icu.pc 101PKGCONFIG_OVERRIDE+= config/icu.pc
102PKGCONFIG_OVERRIDE_STAGE= post-build 102PKGCONFIG_OVERRIDE_STAGE= post-build
103 103
 104# work around ICU-20533 (build failure on big endian machines)
 105post-configure:
 106 ${MKDIR} ${WRKSRC}/data/out
 107
104# expect builtin gcc atomic functions for gcc>=4.1 108# expect builtin gcc atomic functions for gcc>=4.1
105# (source/common/putilimp.h) 109# (source/common/putilimp.h)
106.if !empty(CC_VERSION:Mgcc-*) && \ 110.if !empty(CC_VERSION:Mgcc-*) && \
107 (empty(CC_VERSION:Mgcc-4.0*) && empty(CC_VERSION:Mgcc-[0-3].*)) 111 (empty(CC_VERSION:Mgcc-4.0*) && empty(CC_VERSION:Mgcc-[0-3].*))
108. if ${MACHINE_ARCH} == "i386" 112. if ${MACHINE_ARCH} == "i386"
109CFLAGS+= -march=i486 113CFLAGS+= -march=i486
110. endif 114. endif
111.endif 115.endif
112 116
113.if ${OPSYS} == "Cygwin" 117.if ${OPSYS} == "Cygwin"
114INSTALL_UNSTRIPPED= yes 118INSTALL_UNSTRIPPED= yes
115SO_MAJOR= ${PKGVERSION_NOREV:R} 119SO_MAJOR= ${PKGVERSION_NOREV:R}
116. for l in data i18n io le lx test tu uc 120. for l in data i18n io le lx test tu uc