summaryrefslogtreecommitdiff
path: root/archivers/php-zip
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2018-02-03 11:19:09 +0000
committerjdolecek <jdolecek@pkgsrc.org>2018-02-03 11:19:09 +0000
commitbc87fbfd313e8121392d0cc0dc4b2d1c54c7958d (patch)
tree80728d31cc4aab723e1983a3e084d9320d2340a9 /archivers/php-zip
parent220fcdce570ad5bb1d8354c8f9b115714f115bbf (diff)
downloadpkgsrc-bc87fbfd313e8121392d0cc0dc4b2d1c54c7958d.tar.gz
Switch archivers/php-zip to using pkgsrc libzip
The module has bundled version 1.1.2, but the configure script warns when using the bundled one, and it's of course better to not duplicate it. Noticed this on recent PHP 7.1.14/7.2.2 releases which had fixes for zip extension when used with libzip >= 1.3.1. XXX May need backport of the fix for 7.0 and 5.6 which did not get the fix, or can just switch over to using the PECL module directly
Diffstat (limited to 'archivers/php-zip')
-rw-r--r--archivers/php-zip/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/archivers/php-zip/Makefile b/archivers/php-zip/Makefile
index d9cfb114366..2656136409c 100644
--- a/archivers/php-zip/Makefile
+++ b/archivers/php-zip/Makefile
@@ -1,15 +1,19 @@
-# $NetBSD: Makefile,v 1.16 2012/09/11 19:46:59 asau Exp $
+# $NetBSD: Makefile,v 1.17 2018/02/03 11:19:09 jdolecek Exp $
MODNAME= zip
CATEGORIES+= archivers
COMMENT= PHP extension for ZIP archive handling
+PKGREVISION= 1
CONFLICTS= php-zip-[0-9]*
CONFIGURE_ARGS+= --enable-zip
CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_PREFIX.zlib}
+CONFIGURE_ARGS+= --with-libzip=${BUILDLINK_PREFIX.libzip}
+
USE_PHP_EXT_PATCHES= yes
.include "../../lang/php/ext.mk"
.include "../../devel/zlib/buildlink3.mk"
+.include "../../archivers/libzip/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"