freebsd-ports/archivers/unzip/Makefile

71 lines
1.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: unzip
# Date created: 17 October 1994
# Whom: jmz
#
1999-08-25 06:25:23 +02:00
# $FreeBSD$
#
PORTNAME= unzip
2005-03-01 06:09:30 +01:00
PORTVERSION= 5.52
PORTREVISION= 3
2003-10-26 22:58:50 +01:00
CATEGORIES?= archivers
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
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKEFILE= unix/Makefile
2003-10-26 22:58:50 +01:00
MAKE_ENV= LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
PLIST_FILES= bin/unzip bin/funzip bin/unzipsfx bin/zipgrep bin/zipinfo
PORTDOCS= README WHERE
MAN1= funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1
CFLAGS+= -D_FILE_OFFSET_BITS=64
1997-04-27 17:58:17 +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"
.endif
.ifdef USE_UNZIP
.error You have `USE_UNZIP' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
2003-10-26 22:58:50 +01:00
ALL_TARGET= freebsd
.else
2003-10-26 22:58:50 +01:00
ALL_TARGET= bsd
.endif
.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; \
${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
2006-08-23 08:34:55 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
2006-08-23 08:34:55 +02:00
${LN} -sf unzip ${PREFIX}/bin/zipinfo
${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${PREFIX}/bin
.for f in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN1PREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>