summaryrefslogtreecommitdiff
path: root/textproc/icu
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-04-06 16:36:00 +0000
committerjmmv <jmmv@pkgsrc.org>2004-04-06 16:36:00 +0000
commit5f6fe28718b41d41d472ae0b66324c16d7bce261 (patch)
treef420e966916742d932bdc49d07a2792b5126a963 /textproc/icu
parentf898898e6492f327ee0e08ab32e1d716b6391922 (diff)
downloadpkgsrc-5f6fe28718b41d41d472ae0b66324c16d7bce261.tar.gz
Fix PLIST under Linux. Also attempt to fix under IRIX and SunOS (though,
untested).
Diffstat (limited to 'textproc/icu')
-rw-r--r--textproc/icu/Makefile20
-rw-r--r--textproc/icu/PLIST4
2 files changed, 21 insertions, 3 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile
index f2f3eb9cd59..89bb14376e9 100644
--- a/textproc/icu/Makefile
+++ b/textproc/icu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2004/04/04 16:58:16 recht Exp $
+# $NetBSD: Makefile,v 1.31 2004/04/06 16:36:00 jmmv Exp $
#
DISTNAME= icu-2.8
@@ -42,6 +42,24 @@ SUPPORT_FILES+= ${CONVRTRS_EG} ${PKG_SYSCONFDIR}/convrtrs.txt
CONFIGURE_ARGS+= --disable-threads
.endif
+.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+PLIST_SUBST+= MH_NAME=mh-bsd-gcc
+.elif ${OPSYS} == "Linux"
+PLIST_SUBST+= MH_NAME=mh-linux
+.elif ${OPSYS} == "SunOS"
+. if !empty(CC_VERSION:Mgcc*)
+PLIST_SUBST+= MH_NAME=mh-solaris-gcc
+. else
+PLIST_SUBST+= MH_NAME=mh-solaris
+. endif
+.elif ${OPSYS} == "IRIX"
+PLIST_SUBST+= MH_NAME=mh-irix
+.else
+# For unknown systems, set the filename to mh-unknown so that the user
+# gets a warning about missing files.
+PLIST_SUBST+= MH_NAME=mh-unknown
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${CONVRTRS_EG_DIR}
${INSTALL_DATA} ${WRKSRC}/data/mappings/convrtrs.txt ${CONVRTRS_EG}
diff --git a/textproc/icu/PLIST b/textproc/icu/PLIST
index 5c62293fa38..db54eab1fd3 100644
--- a/textproc/icu/PLIST
+++ b/textproc/icu/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2004/04/04 16:58:16 recht Exp $
+@comment $NetBSD: PLIST,v 1.7 2004/04/06 16:36:00 jmmv Exp $
bin/derb
bin/genbrk
bin/gencnval
@@ -173,7 +173,7 @@ sbin/gensprep
sbin/genuca
sbin/icuswap
share/examples/icu/convrtrs.txt
-share/icu/${PKGVERSION}/config/mh-bsd-gcc
+share/icu/${PKGVERSION}/config/${MH_NAME}
share/icu/${PKGVERSION}/license.html
share/icu/${PKGVERSION}/mkinstalldirs
@dirrm share/icu/${PKGVERSION}/config