summaryrefslogtreecommitdiff
path: root/lang/php
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2005-05-09 19:24:46 +0000
committerjdolecek <jdolecek@pkgsrc.org>2005-05-09 19:24:46 +0000
commit0d0d9c7d8873ab5ee4d37d7495c70eeb05f30d47 (patch)
tree1a74b882c82e6ec04c58c998b9151c978781ffc4 /lang/php
parente3ca77435e37aa10f0f64467bb9ef551cbfe100c (diff)
downloadpkgsrc-0d0d9c7d8873ab5ee4d37d7495c70eeb05f30d47.tar.gz
once PHP version is selected, set PHP_VERSION_REQD appropriately, so that
the selected version is forced for any sub-builds; this should fix the bulk build problems for php5-extensions use := to avoid variable recursion
Diffstat (limited to 'lang/php')
-rw-r--r--lang/php/phpversion.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/php/phpversion.mk b/lang/php/phpversion.mk
index be92db48ef8..db6a7207bdc 100644
--- a/lang/php/phpversion.mk
+++ b/lang/php/phpversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: phpversion.mk,v 1.2 2004/11/04 18:40:39 jdolecek Exp $
+# $NetBSD: phpversion.mk,v 1.3 2005/05/09 19:24:46 jdolecek Exp $
# PHP wrapper, for module builds
.if !defined(PHPVERSION_MK)
@@ -57,13 +57,16 @@ _PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED}
.endif
# export some of internal variables
-PKG_PHP_VERSION= ${_PHP_VERSION}
-PKG_PHP= PHP${_PHP_VERSION}
+PKG_PHP_VERSION:= ${_PHP_VERSION}
+PKG_PHP:= PHP${_PHP_VERSION}
MESSAGE_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \
PKG_PHP=${PKG_PHP}
PLIST_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION}
+# force the selected PHP version for recursive builds
+PHP_VERSION_REQD:= ${PKG_PHP_VERSION}
+
#
# set variables for the version we decided to use:
#