summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorcube <cube>2004-04-19 13:09:16 +0000
committercube <cube>2004-04-19 13:09:16 +0000
commit54c1f13e2806431b93a7bdd5b0afbbe75cf1cd8c (patch)
tree3365f5186034afe728535457ead24076ad153470 /www
parentebdfb44753f06c3785a96173aa74701f9173a79f (diff)
downloadpkgsrc-54c1f13e2806431b93a7bdd5b0afbbe75cf1cd8c.tar.gz
Introduce USE_SSL build parameter, that pulls in OpenSSL and compiles
support for SSL/TLS connections with PHP. It is necessary to compile SSL support in PHP to be able to use TLS-enabled sockets. The openssl PHP module does not include that functionality.
Diffstat (limited to 'www')
-rw-r--r--www/php4/Makefile.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/php4/Makefile.php b/www/php4/Makefile.php
index 0bf4054e23d..909ea2d3c3f 100644
--- a/www/php4/Makefile.php
+++ b/www/php4/Makefile.php
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.10 2003/11/08 06:58:10 jdolecek Exp $
+# $NetBSD: Makefile.php,v 1.11 2004/04/19 13:09:16 cube Exp $
.include "../../www/php4/Makefile.common"
@@ -38,3 +38,9 @@ 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])
+PHP5_CONFIGURE_ARGS+= --with-openssl
+.include "../../security/openssl/buildlink2.mk"
+.endif