mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
acf346ef19
Approved by: portmgr (blanket)
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# Created by: lbartoletti <lbartoletti@FreeBSD.org>
|
|
|
|
PORTNAME= minizip
|
|
PORTVERSION= 1.2.11
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SF/libpng/zlib/${PORTVERSION}
|
|
DISTNAME= zlib-${PORTVERSION}
|
|
|
|
MAINTAINER= lbartoletti@FreeBSD.org
|
|
COMMENT= Zip library and programs from Zlib distribution
|
|
|
|
LICENSE= ZLIB
|
|
|
|
USES= autoreconf cpe libtool pathfix tar:xz
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-demos
|
|
INSTALL_TARGET= install-strip
|
|
WRKSRC= ${WRKDIR}/zlib-${PORTVERSION}/contrib/minizip
|
|
CPE_VENDOR= minizip_project
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's/#ifdef unix || __APPLE__/#ifdef unix/' ${WRKSRC}/mini???.c
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
do-test:
|
|
${RM} -r ${WRKDIR}/regression-test1
|
|
${MKDIR} ${WRKDIR}/regression-test1
|
|
${MV} ${WRKSRC}/*.[cho] ${WRKDIR}/regression-test1
|
|
${RM} ${WRKDIR}/test.zip
|
|
(cd ${WRKDIR}/regression-test1 && ${WRKSRC}/minizip ${WRKDIR}/test.zip *)
|
|
${RM} -r ${WRKDIR}/regression-test2
|
|
${MKDIR} ${WRKDIR}/regression-test2
|
|
${WRKSRC}/miniunzip ${WRKDIR}/test.zip -d ${WRKDIR}/regression-test2
|
|
${DIFF} -ur ${WRKDIR}/regression-test1 ${WRKDIR}/regression-test2 > /dev/null
|
|
|
|
.include <bsd.port.mk>
|