summaryrefslogtreecommitdiff
path: root/archivers/unzip
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-10 13:39:06 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-10 13:39:06 +0000
commit9917d36c4c69b861376b8202bfc025bab0d51801 (patch)
treeb4adef8f0e46bee3b2ae4d368b5d939213851ff4 /archivers/unzip
parentupgrade to 2.105 (diff)
Replace dead master sites
Add WITH_UNZIP_UNREDUCE option
Notes
Notes: svn path=/head/; revision=46037
Diffstat (limited to 'archivers/unzip')
-rw-r--r--archivers/unzip/Makefile21
-rw-r--r--archivers/unzip/distinfo1
-rw-r--r--archivers/unzip/pkg-descr2
3 files changed, 20 insertions, 4 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile
index 4fe145d3d73a..92ad6243eda7 100644
--- a/archivers/unzip/Makefile
+++ b/archivers/unzip/Makefile
@@ -8,17 +8,23 @@
PORTNAME= unzip
PORTVERSION= 5.42
CATEGORIES= archivers
-MASTER_SITES= ftp://ftp.freesoftware.com/pub/infozip/src/ \
+MASTER_SITES= ftp://ftp.icce.rug.nl/infozip/src/ \
${MASTER_SITE_TEX_CTAN:S,%SUBDIR%,tools/zip/info-zip/src/,}
-DISTNAME= ${PORTNAME}542
+DISTFILES= ${PORTNAME}542.tar.gz
MAINTAINER= ache@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKEFILE= unix/Makefile
-MAKE_FLAGS= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK" -f
+MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
MAN1= funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1
+.if defined(WITH_UNZIP_UNREDUCE)
+DISTFILES+= unreduce_full.zip
+EXTRACT_ONLY= ${PORTNAME}542.tar.gz
+MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK -DUSE_SMITH_CODE"
+.endif
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
@@ -27,6 +33,15 @@ ALL_TARGET= freebsd
ALL_TARGET= bsd
.endif
+.if defined(WITH_UNZIP_UNREDUCE)
+pre-build:
+ @(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} unzip)
+ @(cd ${WRKSRC}; \
+ ./unzip -o ${DISTDIR}/unreduce_full.zip; \
+ ${MV} unreduce_full.c unreduce.c)
+ @(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean)
+.endif
+
do-install:
.for file in funzip unzip unzipsfx
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
diff --git a/archivers/unzip/distinfo b/archivers/unzip/distinfo
index a29950cbd1d5..be6cc184c591 100644
--- a/archivers/unzip/distinfo
+++ b/archivers/unzip/distinfo
@@ -1 +1,2 @@
MD5 (unzip542.tar.gz) = 4fc23bb7f3fb00ef6af35c5e77ede016
+MD5 (unreduce_full.zip) = b7cde206d69b403e7551b9b0c25bd345
diff --git a/archivers/unzip/pkg-descr b/archivers/unzip/pkg-descr
index d0ff11038ec2..52363d82b3f8 100644
--- a/archivers/unzip/pkg-descr
+++ b/archivers/unzip/pkg-descr
@@ -18,4 +18,4 @@ from the specified file instead of from stdin.
Unzipsfx may be used to create self-extracting ZIP archives from previously
created ZIP archives.
-WWW: http://www.info-zip.org/pub/infozip/Info-ZIP.html
+WWW: http://www.ctan.org/tex-archive/tools/zip/info-zip/UnZip.html