summaryrefslogtreecommitdiff
path: root/textproc/icu/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-10-04 18:26:29 +0000
committerjoerg <joerg@pkgsrc.org>2013-10-04 18:26:29 +0000
commit980def5025cb480d2454b575d67791282f553ba5 (patch)
tree4238139c5d860867d21fd30c988cec5ee95aa6bd /textproc/icu/Makefile
parent1510cd23608bf8a3fca655d359c5500c8ddb560a (diff)
downloadpkgsrc-980def5025cb480d2454b575d67791282f553ba5.tar.gz
Correctly install DLLs for Cygwin. The dynamic data library build is
still a bit fishy, but this gets it to a mostly usable state at least.
Diffstat (limited to 'textproc/icu/Makefile')
-rw-r--r--textproc/icu/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile
index b21daf4c9bf..1001761fac7 100644
--- a/textproc/icu/Makefile
+++ b/textproc/icu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.84 2013/06/04 06:39:45 adam Exp $
+# $NetBSD: Makefile,v 1.85 2013/10/04 18:26:29 joerg Exp $
DISTNAME= icu4c-51_2-src
PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g}
@@ -47,13 +47,15 @@ CFLAGS.SunOS+= -std=c99
PLIST_SUBST+= MH_NAME=mh-irix
.elif ${OPSYS} == "Darwin"
PLIST_SUBST+= MH_NAME=mh-darwin
+.elif ${OPSYS} == "Cygwin"
+PLIST_SUBST+= MH_NAME=mh-cygwin
.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
-.if ${OPSYS} == "Darwin"
+.if ${OPSYS} == "Darwin" || ${OPSYS} == "Cygwin"
INSTALL_UNSTRIPPED= yes
.endif
@@ -66,4 +68,11 @@ CFLAGS+= -march=i486
. endif
.endif
+INSTALLATION_DIRS= bin
+
+.if ${OPSYS} == "Cygwin"
+post-install:
+ mv ${DESTDIR}${PREFIX}/lib/cygicudata.dll ${DESTDIR}${PREFIX}/bin/
+.endif
+
.include "../../mk/bsd.pkg.mk"