Mon Mar 25 11:46:08 2013 UTC ()
Fix package for Cygwin. From Makoto Fujiwara in PR 47691


(wiz)
diff -r1.83 -r1.84 pkgsrc/archivers/unzip/Makefile

cvs diff -r1.83 -r1.84 pkgsrc/archivers/unzip/Makefile (expand / switch to unified diff)

--- pkgsrc/archivers/unzip/Makefile 2012/09/11 19:47:02 1.83
+++ pkgsrc/archivers/unzip/Makefile 2013/03/25 11:46:07 1.84
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.83 2012/09/11 19:47:02 asau Exp $ 1# $NetBSD: Makefile,v 1.84 2013/03/25 11:46:07 wiz Exp $
2 2
3DISTNAME= unzip60 3DISTNAME= unzip60
4PKGNAME= unzip-6.0 4PKGNAME= unzip-6.0
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= archivers 6CATEGORIES= archivers
7MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/ 7MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/
8EXTRACT_SUFX= .tgz 8EXTRACT_SUFX= .tgz
9 9
10MAINTAINER= wiz@NetBSD.org 10MAINTAINER= wiz@NetBSD.org
11HOMEPAGE= http://www.info-zip.org/UnZip.html 11HOMEPAGE= http://www.info-zip.org/UnZip.html
12COMMENT= List, test and extract compressed files in a ZIP archive 12COMMENT= List, test and extract compressed files in a ZIP archive
13LICENSE= info-zip 13LICENSE= info-zip
14 14
@@ -22,26 +22,27 @@ CONFLICTS= fcrackzip<1.0nb1 @@ -22,26 +22,27 @@ CONFLICTS= fcrackzip<1.0nb1
22 22
23.include "../../mk/bsd.prefs.mk" 23.include "../../mk/bsd.prefs.mk"
24 24
25MAKE_FILE= unix/Makefile 25MAKE_FILE= unix/Makefile
26BUILD_TARGET= generic_zlib unzipsfx 26BUILD_TARGET= generic_zlib unzipsfx
27 27
28.if ${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin" 28.if ${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin"
29CPPFLAGS+= -DBSD 29CPPFLAGS+= -DBSD
30.endif 30.endif
31.if (${OPSYS} == "SunOS" || \ 31.if (${OPSYS} == "SunOS" || \
32 ${OPSYS} == "OSF1" || \ 32 ${OPSYS} == "OSF1" || \
33 ${OPSYS} == "AIX" || \ 33 ${OPSYS} == "AIX" || \
34 ${OPSYS} == "OpenBSD" || \ 34 ${OPSYS} == "OpenBSD" || \
 35 ${OPSYS} == "Cygwin" || \
35 (${OPSYS} == "Darwin" && !empty(OS_VERSION:M[01234678].*))) 36 (${OPSYS} == "Darwin" && !empty(OS_VERSION:M[01234678].*)))
36CPPFLAGS+= -DNO_LCHMOD 37CPPFLAGS+= -DNO_LCHMOD
37.endif 38.endif
38CPPFLAGS+= -DUNIX -Dunix -DUSE_UNSHRINK -I. 39CPPFLAGS+= -DUNIX -Dunix -DUSE_UNSHRINK -I.
39.if (${OPSYS} != "SunOS") 40.if (${OPSYS} != "SunOS")
40CPPFLAGS+= -DLARGE_FILE_SUPPORT 41CPPFLAGS+= -DLARGE_FILE_SUPPORT
41.endif 42.endif
42 43
43MAKE_FLAGS+= CF=${CPPFLAGS:Q}\ ${CFLAGS:Q} 44MAKE_FLAGS+= CF=${CPPFLAGS:Q}\ ${CFLAGS:Q}
44MAKE_FLAGS+= LF2=${_STRIPFLAG_CC:Q}\ ${LDFLAGS:Q}\ -lz 45MAKE_FLAGS+= LF2=${_STRIPFLAG_CC:Q}\ ${LDFLAGS:Q}\ -lz
45 46
46INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/unzip 47INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/unzip
47 48