diff options
Diffstat (limited to 'archivers/minizip/Makefile')
-rw-r--r-- | archivers/minizip/Makefile | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/archivers/minizip/Makefile b/archivers/minizip/Makefile index 17f3d48819a0..399e437abbea 100644 --- a/archivers/minizip/Makefile +++ b/archivers/minizip/Makefile @@ -3,24 +3,25 @@ PORTNAME= minizip PORTVERSION= 1.2.8 +PORTREVISION= 1 CATEGORIES= archivers -MASTER_SITES= https://github.com/madler/zlib/archive/ \ - LOCAL/mandree/${PORTNAME} -DISTNAME= v${PORTVERSION} -DIST_SUBDIR= ${PORTNAME} +MASTER_SITES= SF/libpng/zlib/${PORTVERSION} +DISTNAME= zlib-${PORTVERSION} MAINTAINER= coder@tuxfamily.org -COMMENT= Minizip and miniunz programs from Zlib contributions +COMMENT= Zip library and programs from Zlib distribution LICENSE= ZLIB -USES= zip -PLIST_FILES= bin/minizip bin/miniunz \ - man/man1/miniunzip.1.gz man/man1/minizip.1.gz -MAKE_ARGS= CFLAGS="${CPPFLAGS} ${CFLAGS} -include sys/stat.h -include stdint.h" +USES= libtool pathfix tar:xz +PATHFIX_MAKEFILEIN= Makefile.am +USE_AUTOTOOLS= libtoolize aclocal autoconf automake +AUTOMAKE_ARGS= -a -c -f +CONFIGURE_ARGS= --enable-demos +INSTALL_TARGET= install-strip WRKSRC= ${WRKDIR}/zlib-${PORTVERSION}/contrib/minizip -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> # work around missing typedef in 8.X's libz configuration .if ${OSVERSION} < 900000 @@ -28,16 +29,20 @@ CPPFLAGS+= -Dz_crc_t=uint32_t .endif post-patch: - ${REINPLACE_CMD} -e 's/#ifdef unix \|\| __APPLE__/#ifdef unix/' ${WRKSRC}/mini???.c + @${REINPLACE_CMD} 's/#ifdef unix || __APPLE__/#ifdef unix/' ${WRKSRC}/mini???.c -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${WRKSRC}/miniunz ${STAGEDIR}${PREFIX}/bin/ +post-install: ${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1 regression-test: - ${RM} -f ${WRKDIR}/test.zip && (cd ${WRKSRC} && ./${PORTNAME} ${WRKDIR}/test.zip *) - ${RM} -rf ${WRKDIR}/regression-test && ${MKDIR} ${WRKDIR}/regression-test - ${WRKSRC}/miniunz ${WRKDIR}/test.zip -d ${WRKDIR}/regression-test - diff -ur >/dev/null ${WRKSRC} ${WRKDIR}/regression-test - -.include <bsd.port.post.mk> + ${RM} -rf ${WRKDIR}/regression-test1 + ${MKDIR} ${WRKDIR}/regression-test1 + ${MV} ${WRKSRC}/*.[cho] ${WRKDIR}/regression-test1 + ${RM} -f ${WRKDIR}/test.zip + (cd ${WRKDIR}/regression-test1 && ${WRKSRC}/minizip ${WRKDIR}/test.zip *) + ${RM} -rf ${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> |