pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/php4 make it possible to switch the IPv6 support o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6af9d8feefb2
branches:  trunk
changeset: 500466:6af9d8feefb2
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sat Oct 08 21:12:53 2005 +0000

description:
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:

 www/php4/Makefile.php |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r d7ee08552518 -r 6af9d8feefb2 www/php4/Makefile.php
--- a/www/php4/Makefile.php     Sat Oct 08 21:11:55 2005 +0000
+++ b/www/php4/Makefile.php     Sat Oct 08 21:12:53 2005 +0000
@@ -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_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



Home | Main Index | Thread Index | Old Index