diff options
author | ale <ale@FreeBSD.org> | 2010-08-26 19:26:40 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2010-08-26 19:26:40 +0800 |
commit | 11686ae0ccaeea7174c2dbf043eadaa11a82752d (patch) | |
tree | 20d6605c3e4d424e1e0fd05ba815a64c3e28a546 | |
parent | 2fef6a875e951d20f8854453aa8e6ee6b806152b (diff) | |
download | freebsd-ports-gnome-11686ae0ccaeea7174c2dbf043eadaa11a82752d.tar.gz freebsd-ports-gnome-11686ae0ccaeea7174c2dbf043eadaa11a82752d.tar.zst freebsd-ports-gnome-11686ae0ccaeea7174c2dbf043eadaa11a82752d.zip |
Avoid including zlib extension if not requested.
-rw-r--r-- | lang/php5/files/patch-ext_zlib_config0.m4 | 11 | ||||
-rw-r--r-- | lang/php53/files/patch-ext_zlib_config0.m4 | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lang/php5/files/patch-ext_zlib_config0.m4 b/lang/php5/files/patch-ext_zlib_config0.m4 new file mode 100644 index 000000000000..249c85b498d3 --- /dev/null +++ b/lang/php5/files/patch-ext_zlib_config0.m4 @@ -0,0 +1,11 @@ +--- ext/zlib/config0.m4.orig 2010-08-26 13:19:52.000000000 +0200 ++++ ext/zlib/config0.m4 2010-08-26 13:20:11.000000000 +0200 +@@ -8,7 +8,7 @@ + PHP_ARG_WITH(zlib-dir,if the location of ZLIB install directory is defined, + [ --with-zlib-dir=<DIR> Define the location of zlib install directory], no, no) + +-if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then ++if test "$PHP_ZLIB" != "no"; then + PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared) + PHP_SUBST(ZLIB_SHARED_LIBADD) + diff --git a/lang/php53/files/patch-ext_zlib_config0.m4 b/lang/php53/files/patch-ext_zlib_config0.m4 new file mode 100644 index 000000000000..249c85b498d3 --- /dev/null +++ b/lang/php53/files/patch-ext_zlib_config0.m4 @@ -0,0 +1,11 @@ +--- ext/zlib/config0.m4.orig 2010-08-26 13:19:52.000000000 +0200 ++++ ext/zlib/config0.m4 2010-08-26 13:20:11.000000000 +0200 +@@ -8,7 +8,7 @@ + PHP_ARG_WITH(zlib-dir,if the location of ZLIB install directory is defined, + [ --with-zlib-dir=<DIR> Define the location of zlib install directory], no, no) + +-if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then ++if test "$PHP_ZLIB" != "no"; then + PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared) + PHP_SUBST(ZLIB_SHARED_LIBADD) + |