diff options
author | jlam <jlam@pkgsrc.org> | 2004-07-30 21:05:41 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-07-30 21:05:41 +0000 |
commit | b460ce1ab51a88c8a15737b9aaf78a949fe6f32e (patch) | |
tree | 90f33a51019f85b91b5f29838193d07638327f1c /www/php4 | |
parent | 85306a83480ca871311e350b3814452b76f3b8a2 (diff) | |
download | pkgsrc-b460ce1ab51a88c8a15737b9aaf78a949fe6f32e.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.php | 23 |
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 |