pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php export the information about selected version...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c661c75bdcbb
branches: trunk
changeset: 482887:c661c75bdcbb
user: jdolecek <jdolecek%pkgsrc.org@localhost>
date: Thu Nov 04 18:40:39 2004 +0000
description:
export the information about selected version via PKG_PHP_VERSION
and the base name of program as PKG_PHP
diffstat:
lang/php/phpversion.mk | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r fceb998565ef -r c661c75bdcbb lang/php/phpversion.mk
--- a/lang/php/phpversion.mk Thu Nov 04 18:38:55 2004 +0000
+++ b/lang/php/phpversion.mk Thu Nov 04 18:40:39 2004 +0000
@@ -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_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= ../../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
Home |
Main Index |
Thread Index |
Old Index