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
|
2005-03-01 06:09:30 +01:00
|
|
|
PORTVERSION= 5.52
|
2007-02-08 19:35:00 +01:00
|
|
|
PORTREVISION= 3
|
2003-10-26 22:58:50 +01:00
|
|
|
CATEGORIES?= archivers
|
2006-07-28 16:42:54 +02:00
|
|
|
MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/ ${MASTER_SITE_TEX_CTAN}
|
|
|
|
MASTER_SITE_SUBDIR= tools/zip/info-zip/src
|
2005-03-01 06:09:30 +01:00
|
|
|
DISTNAME= ${PORTNAME}552
|
1996-05-04 14:30:48 +02:00
|
|
|
|
2003-10-26 22:58:50 +01:00
|
|
|
MAINTAINER?= ache@FreeBSD.org
|
|
|
|
COMMENT?= List, test and extract compressed files in a ZIP archive
|
1995-04-15 06:45:25 +02:00
|
|
|
|
2000-05-31 12:14:34 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAKEFILE= unix/Makefile
|
2003-10-26 22:58:50 +01:00
|
|
|
MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
|
2006-08-12 15:11:23 +02:00
|
|
|
PLIST_FILES= bin/unzip bin/funzip bin/unzipsfx bin/zipgrep bin/zipinfo
|
|
|
|
PORTDOCS= README WHERE
|
2000-05-31 12:14:34 +02:00
|
|
|
MAN1= funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1
|
2007-02-08 19:35:00 +01:00
|
|
|
CFLAGS+= -D_FILE_OFFSET_BITS=64
|
1997-04-27 17:58:17 +02:00
|
|
|
|
2001-08-10 15:39:06 +02:00
|
|
|
.if defined(WITH_UNZIP_UNREDUCE)
|
2004-12-06 12:52:33 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} unreduce_full.zip
|
2005-03-01 06:09:30 +01:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}552.tar.gz
|
2003-10-26 22:58:50 +01:00
|
|
|
MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK -DUSE_SMITH_CODE"
|
2001-08-10 15:39:06 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-14 15:32:06 +02:00
|
|
|
.ifdef USE_UNZIP
|
|
|
|
.error You have `USE_UNZIP' variable defined either in environment or in make(1) arguments. Please undefine and try again.
|
|
|
|
.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"
|
2003-10-26 22:58:50 +01:00
|
|
|
ALL_TARGET= freebsd
|
1998-10-05 05:41:16 +02:00
|
|
|
.else
|
2003-10-26 22:58:50 +01: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
|
2006-08-23 08:34:55 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
|
2000-05-31 12:14:34 +02:00
|
|
|
.endfor
|
2006-08-23 08:34:55 +02:00
|
|
|
${LN} -sf unzip ${PREFIX}/bin/zipinfo
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${PREFIX}/bin
|
2004-01-16 02:30:59 +01:00
|
|
|
.for f in ${MAN1}
|
2006-08-12 15:11:23 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN1PREFIX}/man/man1
|
2000-05-31 12:14:34 +02:00
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2006-08-12 15:11:23 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2000-05-31 12:14:34 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|