summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-11-04 18:38:55 +0000
committerjdolecek <jdolecek>2004-11-04 18:38:55 +0000
commit867846f5fca7f68cfd29f1b59bb181e1d5687df8 (patch)
tree934b5eeeb55fb19013d2c8bd65dbba63096f7634 /lang/php5
parentc279e6ab24b6cbafe9c730afdb317798b08e02d4 (diff)
downloadpkgsrc-867846f5fca7f68cfd29f1b59bb181e1d5687df8.tar.gz
put items only pertinent to interpreter build to new file Makefile.php
(similar to PHP4 package), and also update to use PKG_OPTIONS this fixes environment pollution for extension modules, particularily CONFIGURE_ARGS
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile4
-rw-r--r--lang/php5/Makefile.common42
-rw-r--r--lang/php5/Makefile.php55
3 files changed, 60 insertions, 41 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index 24ddd15c397..5038d4e45b0 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/11/02 21:03:03 jdolecek Exp $
+# $NetBSD: Makefile,v 1.4 2004/11/04 18:38:55 jdolecek Exp $
#
PKGNAME= php-${PHP_BASE_VERS}
@@ -14,7 +14,7 @@ USE_BUILDLINK3= YES
USE_GNU_TOOLS+= make
LIBTOOL_OVERRIDE= # empty
-.include "Makefile.common"
+.include "Makefile.php"
CGIDIR= ${PREFIX}/libexec/cgi-bin
EGDIR= ${PREFIX}/share/examples/php
diff --git a/lang/php5/Makefile.common b/lang/php5/Makefile.common
index d12be5427da..67e059f8243 100644
--- a/lang/php5/Makefile.common
+++ b/lang/php5/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2004/11/02 21:03:03 jdolecek Exp $
+# $NetBSD: Makefile.common,v 1.4 2004/11/04 18:38:55 jdolecek Exp $
#
DISTNAME?= php-${PHP_BASE_VERS}
@@ -14,45 +14,9 @@ HOMEPAGE?= http://www.php.net/
PHP_BASE_VERS= 5.0.2
-BUILD_DEFS= USE_INET6
-
-USE_LIBTOOL= YES
-GNU_CONFIGURE= YES
-
-CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
-
PHP_EXTENSION_DIR= lib/php/20040412
PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
-.include "../../mk/bsd.prefs.mk"
-
-CONFIGURE_ARGS+= --with-config-file-path=${PREFIX}/etc/
-CONFIGURE_ARGS+= --with-regex=system
-
-CONFIGURE_ARGS+= --without-mysql
-CONFIGURE_ARGS+= --without-sqlite
-CONFIGURE_ARGS+= --without-iconv
+PKG_SYSCONFVAR?= php
-CONFIGURE_ARGS+= --enable-discard-path
-CONFIGURE_ARGS+= --enable-force-cgi-redirect
-CONFIGURE_ARGS+= --enable-memory-limit
-CONFIGURE_ARGS+= --enable-track-vars
-
-CONFIGURE_ARGS+= --disable-posix
-CONFIGURE_ARGS+= --disable-dom
-
-.if defined(USE_INET6) && ${USE_INET6} == "NO"
-CONFIGURE_ARGS+= --disable-ipv6
-.else
-CONFIGURE_ARGS+= --enable-ipv6
-.endif
-
-CONFIGURE_ARGS+= --enable-xml
-CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
-.include "../../textproc/libxml2/buildlink3.mk"
-
-BUILD_DEFS+= USE_SSL
-.if defined(USE_SSL) && !empty(USE_SSL:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --with-openssl
-.include "../../security/openssl/buildlink3.mk"
-.endif
+.include "../../mk/bsd.prefs.mk"
diff --git a/lang/php5/Makefile.php b/lang/php5/Makefile.php
new file mode 100644
index 00000000000..a6ed23f419c
--- /dev/null
+++ b/lang/php5/Makefile.php
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile.php,v 1.1 2004/11/04 18:38:55 jdolecek Exp $
+#
+
+.include "../../lang/php5/Makefile.common"
+
+BUILD_DEFS= USE_INET6
+
+USE_LIBTOOL= YES
+GNU_CONFIGURE= YES
+
+CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
+
+PHP_EXTENSION_DIR= lib/php/20040412
+PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+= --with-config-file-path=${PREFIX}/etc/
+CONFIGURE_ARGS+= --with-regex=system
+
+CONFIGURE_ARGS+= --without-mysql
+CONFIGURE_ARGS+= --without-sqlite
+CONFIGURE_ARGS+= --without-iconv
+
+CONFIGURE_ARGS+= --enable-discard-path
+CONFIGURE_ARGS+= --enable-force-cgi-redirect
+CONFIGURE_ARGS+= --enable-memory-limit
+CONFIGURE_ARGS+= --enable-track-vars
+
+CONFIGURE_ARGS+= --disable-posix
+CONFIGURE_ARGS+= --disable-dom
+
+.if defined(USE_INET6) && ${USE_INET6} == "NO"
+CONFIGURE_ARGS+= --disable-ipv6
+.else
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+CONFIGURE_ARGS+= --enable-xml
+CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
+.include "../../textproc/libxml2/buildlink3.mk"
+
+# Global and legacy options
+.if defined(USE_SSL) && !empty(USE_SSL:M[Yy][Ee][Ss])
+PKG_DEFAULT_OPTIONS+= ssl
+.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[^-]*$//}
+PKG_SUPPORTED_OPTIONS+= ssl
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-openssl
+.endif