2000-05-31 12:14:34 +02:00
|
|
|
# New ports collection makefile for: unzip
|
|
|
|
# Date created: 17 October 1994
|
|
|
|
# Whom: jmz
|
1995-04-15 06:45:25 +02:00
|
|
|
#
|
1999-08-25 06:25:23 +02:00
|
|
|
# $FreeBSD$
|
1995-04-15 06:45:25 +02:00
|
|
|
#
|
|
|
|
|
2000-04-13 21:39:44 +02:00
|
|
|
PORTNAME= unzip
|
2002-05-08 07:21:14 +02:00
|
|
|
PORTVERSION= 5.50
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= archivers
|
2002-05-08 07:21:14 +02:00
|
|
|
MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/ \
|
2001-02-20 19:52:44 +01:00
|
|
|
${MASTER_SITE_TEX_CTAN:S,%SUBDIR%,tools/zip/info-zip/src/,}
|
2002-05-08 07:21:14 +02:00
|
|
|
DISTFILES= ${PORTNAME}550.tar.gz
|
1996-05-04 14:30:48 +02:00
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
MAINTAINER= ache@FreeBSD.org
|
1995-04-15 06:45:25 +02:00
|
|
|
|
2000-05-31 12:14:34 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAKEFILE= unix/Makefile
|
2001-08-10 15:39:06 +02:00
|
|
|
MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
|
2000-05-31 12:14:34 +02:00
|
|
|
MAN1= funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1
|
1997-04-27 17:58:17 +02:00
|
|
|
|
2001-08-10 15:39:06 +02:00
|
|
|
.if defined(WITH_UNZIP_UNREDUCE)
|
|
|
|
DISTFILES+= unreduce_full.zip
|
2002-05-08 07:21:14 +02:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}550.tar.gz
|
2001-08-10 15:39:06 +02:00
|
|
|
MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK -DUSE_SMITH_CODE"
|
|
|
|
.endif
|
|
|
|
|
2000-05-31 12:14:34 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
1998-10-05 05:41:16 +02:00
|
|
|
|
2000-05-31 12:14:34 +02:00
|
|
|
.if ${ARCH} == "i386"
|
2002-05-08 07:21:14 +02:00
|
|
|
ALL_TARGET= freebsd
|
1998-10-05 05:41:16 +02:00
|
|
|
.else
|
2002-05-08 07:21:14 +02:00
|
|
|
ALL_TARGET= bsd
|
1998-10-05 05:41:16 +02:00
|
|
|
.endif
|
2000-05-31 12:14:34 +02:00
|
|
|
|
2001-08-10 15:39:06 +02:00
|
|
|
.if defined(WITH_UNZIP_UNREDUCE)
|
|
|
|
pre-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} unzip)
|
|
|
|
@(cd ${WRKSRC}; \
|
2001-08-10 15:53:32 +02:00
|
|
|
./unzip -o ${_DISTDIR}unreduce_full.zip; \
|
2001-08-10 15:39:06 +02:00
|
|
|
${MV} unreduce_full.c unreduce.c)
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean)
|
|
|
|
.endif
|
|
|
|
|
2000-05-31 12:14:34 +02:00
|
|
|
do-install:
|
|
|
|
.for file in funzip unzip unzipsfx
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
${LN} -sf unzip ${PREFIX}/bin/zipinfo
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${PREFIX}/bin
|
|
|
|
.for file in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${file} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/unzip
|
2001-02-07 19:48:58 +01:00
|
|
|
.for file in README WHERE
|
2000-05-31 12:14:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/unzip
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|