summaryrefslogtreecommitdiffstats
path: root/archivers/unzip
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-10 13:39:06 +0000
committerache <ache@FreeBSD.org>2001-08-10 13:39:06 +0000
commit93b846d0e69010149c423429590c65d8cb4c396d (patch)
treea83c796a2d1c862db2cf7a41c4614c4b797c2ca2 /archivers/unzip
parentb2eca7739e889ce25c3b01fcf7cfeb8aebd567b5 (diff)
downloadFreeBSD-ports-93b846d0e69010149c423429590c65d8cb4c396d.zip
FreeBSD-ports-93b846d0e69010149c423429590c65d8cb4c396d.tar.gz
Replace dead master sites
Add WITH_UNZIP_UNREDUCE option
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 4fe145d..92ad624 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 a29950c..be6cc18 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 d0ff110..52363d82 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
OpenPOWER on IntegriCloud