c80849c13c
PERMIT_* cleanup
40 lines
992 B
Makefile
40 lines
992 B
Makefile
# $OpenBSD: Makefile,v 1.44 2013/03/10 22:28:05 espie Exp $
|
|
|
|
COMMENT= extract, list & test files in a ZIP archive
|
|
|
|
VERSION= 6.0
|
|
DISTNAME= unzip${VERSION:S/.//}
|
|
PKGNAME= unzip-${VERSION}
|
|
REVISION= 0
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=infozip/} \
|
|
http://mirror.switch.ch/ftp/mirror/infozip/src/ \
|
|
ftp://ftp.info-zip.org/pub/infozip/src/
|
|
|
|
HOMEPAGE= http://www.ctan.org/tex-archive/tools/zip/info-zip/UnZip.html
|
|
|
|
# Conditional
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
WANTLIB= c
|
|
|
|
MAKE_FLAGS= CC="${CC}" LD="${CC}" CF='-I. $$(LOC)' \
|
|
LOC="${CFLAGS} -DUSE_UNSHRINK -DNO_LCHMOD -DNO_LCHOWN"
|
|
FAKE_FLAGS= prefix="${WRKINST}${PREFIX}"
|
|
USE_GROFF = Yes
|
|
|
|
MAKE_FILE= unix/Makefile
|
|
|
|
ALL_TARGET= bsd
|
|
|
|
DOCS= COPYING.OLD LICENSE README WHERE
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unzip
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/unzip
|
|
|
|
do-test:
|
|
cd ${WRKBUILD} && ./unzip -x -a -o testmake.zip
|
|
cmp -s ${WRKBUILD}/notes files/notes
|
|
|
|
.include <bsd.port.mk>
|