From bee60cd555c46069c2cd0c3401dd01618b725151 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sat, 8 Oct 2005 21:12:53 +0000 Subject: 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 --- www/php4/Makefile.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'www/php4') 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 -- cgit v1.2.3