diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2005-10-08 21:12:53 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2005-10-08 21:12:53 +0000 |
commit | bee60cd555c46069c2cd0c3401dd01618b725151 (patch) | |
tree | 927be714d7cc984cb0f9560e183e40a5000c9471 /www/php4 | |
parent | edb536c795c1e114cc93d2b8ce529eb607fb0eb6 (diff) | |
download | pkgsrc-bee60cd555c46069c2cd0c3401dd01618b725151.tar.gz |
make it possible to switch the IPv6 support on/off via a package option,
similarily how this is done in lang/php5/Makefile.php; default depends
in USE_INET6 setting, i.e. enabled iff OS supports it
Diffstat (limited to 'www/php4')
-rw-r--r-- | www/php4/Makefile.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/www/php4/Makefile.php b/www/php4/Makefile.php index 0f5aae9d4d7..6cb642abd6e 100644 --- a/www/php4/Makefile.php +++ b/www/php4/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.25 2005/10/08 20:34:26 jdolecek Exp $ +# $NetBSD: Makefile.php,v 1.26 2005/10/08 21:12:53 jdolecek Exp $ .include "../../www/php4/Makefile.common" @@ -6,6 +6,8 @@ DISTINFO_FILE= ${.CURDIR}/../../www/php4/distinfo PATCHDIR= ${.CURDIR}/../../www/php4/patches +BUILD_DEFS= USE_INET6 + USE_LIBTOOL= YES GNU_CONFIGURE= YES @@ -41,6 +43,13 @@ CONFIGURE_ARGS+= ${PHP4_CONFIGURE_ARGS} CONFIGURE_ENV+= ac_cv_lib_pam_pam_start=no CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}" -PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[^-]*$//} +PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[^-]*$//} +PKG_SUPPORTED_OPTIONS+= inet6 .include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif |