diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2004-11-04 18:40:39 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2004-11-04 18:40:39 +0000 |
commit | f7d2170d801ce3c704230ea5a32c33e5793738c8 (patch) | |
tree | d85bdab771b9a9ea4313f98bf27d8c8ad0dc6722 /lang/php | |
parent | 3737967b4679b4ea0508a30d4f2c725f01e4e408 (diff) | |
download | pkgsrc-f7d2170d801ce3c704230ea5a32c33e5793738c8.tar.gz |
export the information about selected version via PKG_PHP_VERSION
and the base name of program as PKG_PHP
Diffstat (limited to 'lang/php')
-rw-r--r-- | lang/php/phpversion.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/php/phpversion.mk b/lang/php/phpversion.mk index 9ff4f5c3d22..be92db48ef8 100644 --- a/lang/php/phpversion.mk +++ b/lang/php/phpversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: phpversion.mk,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $ +# $NetBSD: phpversion.mk,v 1.2 2004/11/04 18:40:39 jdolecek Exp $ # PHP wrapper, for module builds .if !defined(PHPVERSION_MK) @@ -56,6 +56,14 @@ _PHP_VERSION= ${PHP_VERSION_DEFAULT} _PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED} .endif +# export some of internal variables +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} + # # set variables for the version we decided to use: # @@ -65,7 +73,7 @@ PHPPKGSRCDIR= ../../www/php4 PHPPKGSRCDIR= ../../lang/php5 .else # force an error -PKG_SKIP_REASON+= "PHP${_PHP_VERSION} is not a valid package" +PKG_SKIP_REASON+= "${PKG_PHP} is not a valid package" .endif .endif # PHPVERSION_MK |