diff options
author | jdolecek <jdolecek> | 2005-10-08 21:12:53 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2005-10-08 21:12:53 +0000 |
commit | 00259276c1e535b74c429a968a08ba9b68ddcb92 (patch) | |
tree | 927be714d7cc984cb0f9560e183e40a5000c9471 /www/php4/Makefile.php | |
parent | 63944d06736fbf9df0ea9c3e8d0cabf5a071391e (diff) | |
download | pkgsrc-00259276c1e535b74c429a968a08ba9b68ddcb92.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/Makefile.php')
-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 |