summaryrefslogtreecommitdiff
path: root/archivers/unzip/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unzip/Makefile')
-rw-r--r--archivers/unzip/Makefile33
1 files changed, 25 insertions, 8 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile
index 2423def57f4..3cb3ec2b702 100644
--- a/archivers/unzip/Makefile
+++ b/archivers/unzip/Makefile
@@ -1,17 +1,34 @@
-# $NetBSD: Makefile,v 1.9 1998/06/18 16:06:38 agc Exp $
+# $NetBSD: Makefile,v 1.10 1998/06/20 23:26:06 tv Exp $
# FreeBSD Id: Makefile,v 1.14 1997/06/19 05:30:04 ache Exp
#
-DISTNAME= unzip-5.32
+DISTNAME= unzip-5.32
CATEGORIES= archivers
-MASTER_SITES= ftp://ftp.cdrom.com/pub/infozip/src/
-DISTFILES= unzip532.tar.gz
+MASTER_SITES= ftp://ftp.cdrom.com/pub/infozip/src/ \
+ ftp://ftp.icce.rug.nl/infozip/src/
+DISTFILES= unzip532.tar.gz
-MAINTAINER= packages@netbsd.org
+MAINTAINER= packages@netbsd.org
-MAKEFILE= unix/Makefile
-ALL_TARGET= bsd
-MAKE_FLAGS= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
+MAKEFILE= unix/Makefile
+ALL_TARGET= unzips
+MAKE_FLAGS= CF="${CFLAGS} -I. -DBSD -DUNIX -DUSE_UNSHRINK -DUSE_ZLIB" LF2=-lz
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(ZIP_ENCRYPTION)
+DISTFILES+= zcrypt27.zip
+EXTRACT_ONLY= unzip532.tar.gz
+RESTRICTED= crypto
+MIRROR_DISTFILE=no
+
+# This bootstrap is ugly, but zcrypt is only shipped as a zipfile.
+pre-build:
+ @cd ${WRKSRC}; test -f README.CR || ( \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} unzip && \
+ ./unzip -qo ${DISTDIR}/zcrypt27.zip && \
+ ${RM} -f *.o unzip )
+.endif
do-install:
cd ${WRKSRC} && \