summaryrefslogtreecommitdiff
path: root/www/php4
diff options
context:
space:
mode:
authorjlam <jlam>2004-07-30 21:05:41 +0000
committerjlam <jlam>2004-07-30 21:05:41 +0000
commit3d5f4414d5d0e6a5a3f5320af17da17f7d34259d (patch)
tree90f33a51019f85b91b5f29838193d07638327f1c /www/php4
parent854dc1c371d836ece9a9fb75616fb435cf79a60e (diff)
downloadpkgsrc-3d5f4414d5d0e6a5a3f5320af17da17f7d34259d.tar.gz
Convert to use bsd.options.mk. The relevant options variable to set
for each package can be determined by invoking: make show-var VARNAME=PKG_OPTIONS_VAR The old options are still supported unless the variable named in PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
Diffstat (limited to 'www/php4')
-rw-r--r--www/php4/Makefile.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/www/php4/Makefile.php b/www/php4/Makefile.php
index de4a3763e7a..058a92e64c7 100644
--- a/www/php4/Makefile.php
+++ b/www/php4/Makefile.php
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.15 2004/07/14 08:03:16 jdolecek Exp $
+# $NetBSD: Makefile.php,v 1.16 2004/07/30 21:05:43 jlam Exp $
.include "../../www/php4/Makefile.common"
@@ -42,8 +42,21 @@ CONFIGURE_ARGS+= ${PHP4_CONFIGURE_ARGS}
CONFIGURE_ENV+= ac_cv_lib_pam_pam_start=no
CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
-BUILD_DEFS+= USE_SSL
-.if defined(USE_SSL) && !empty(USE_SSL:M[Yy][Ee][Ss])
-PHP4_CONFIGURE_ARGS+= --with-openssl
-.include "../../security/openssl/buildlink3.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[^-]*$//}
+
+# Global and legacy options
+.if defined(USE_SSL)
+. if !defined(${PKG_OPTIONS_VAR})
+. if defined(USE_SSL) && !empty(USE_SSL:M[Yy][Ee][Ss])
+${PKG_OPTIONS_VAR}+= ssl
+. endif
+. endif
+.endif
+
+PKG_SUPPORTED_OPTIONS+= ssl
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-openssl
.endif