summaryrefslogtreecommitdiff
path: root/lang/php
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php')
-rw-r--r--lang/php/phpversion.mk27
1 files changed, 19 insertions, 8 deletions
diff --git a/lang/php/phpversion.mk b/lang/php/phpversion.mk
index 7cf20a78410..f3a1a5449bf 100644
--- a/lang/php/phpversion.mk
+++ b/lang/php/phpversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: phpversion.mk,v 1.193 2017/10/27 08:47:49 taca Exp $
+# $NetBSD: phpversion.mk,v 1.194 2017/11/15 08:56:12 jdolecek Exp $
#
# This file selects a PHP version, based on the user's preferences and
# the installed packages. It does not add a dependency on the PHP
@@ -10,7 +10,7 @@
# The PHP version to choose when more than one is acceptable to
# the package.
#
-# Possible: 56 70 71
+# Possible: 56 70 71 72
# Default: 56
#
# === Infrastructure variables ===
@@ -27,13 +27,13 @@
# PHP_VERSIONS_ACCEPTED
# The PHP versions that are accepted by the package.
#
-# Possible: 56 70 71
+# Possible: 56 70 71 72
# Default: 56
#
# PHP_VERSIONS_INCOMPATIBLE
# The PHP versions that are not supported by the package.
#
-# Possible: 56 70 71
+# Possible: 56 70 71 72
# Default: (empty)
#
# PHP_CHECK_INSTALLED
@@ -48,7 +48,7 @@
# PKG_PHP_VERSION
# The selected PHP version.
#
-# Possible: 56 70 71
+# Possible: 56 70 71 72
# Default: ${PHP_VERSION_DEFAULT}
#
# PHP_BASE_VERS
@@ -72,7 +72,7 @@
# PHP_PKG_PREFIX
# The prefix that is prepended to the package name.
#
-# Example: php56 php70 php71
+# Example: php56 php70 php71 php72
#
# PHP_EXTENSION_DIR
# Relative path to ${PREFIX} for PHP's extensions. It is derived from
@@ -90,11 +90,13 @@ PHPVERSION_MK= defined
PHP56_VERSION= 5.6.32
PHP70_VERSION= 7.0.25
PHP71_VERSION= 7.1.11
+PHP72_VERSION= 7.2.0RC6
# Define initial release of major version.
PHP56_RELDATE= 20140828
PHP70_RELDATE= 20151203
PHP71_RELDATE= 20160303
+PHP72_RELDATE= 20170718
_VARGROUPS+= php
_USER_VARS.php= PHP_VERSION_DEFAULT
@@ -105,7 +107,7 @@ _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \
.include "../../mk/bsd.prefs.mk"
PHP_VERSION_DEFAULT?= 56
-PHP_VERSIONS_ACCEPTED?= 56 70 71
+PHP_VERSIONS_ACCEPTED?= 56 70 71 72
.for pv in ${PHP_VERSIONS_ACCEPTED}
. if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv})
_PHP_VERSIONS_ACCEPTED+= ${pv}
@@ -118,7 +120,10 @@ _PHP_VERSION_${pv}_OK= yes
.endfor
# check what is installed
-.if exists(${LOCALBASE}/lib/php/${PHP71_RELDATE})
+.if exists(${LOCALBASE}/lib/php/${PHP72_RELDATE})
+_PHP_VERSION_72_INSTALLED= yes
+_PHP_INSTALLED= yes
+.elif exists(${LOCALBASE}/lib/php/${PHP71_RELDATE})
_PHP_VERSION_71_INSTALLED= yes
_PHP_INSTALLED= yes
.elif exists(${LOCALBASE}/lib/php/${PHP70_RELDATE})
@@ -213,6 +218,12 @@ PHP_VERSION= ${PHP71_VERSION}
PHP_INITIAL_TEENY= 0
PHP_PKG_PREFIX= php71
PHP_EXTENSION_DIR= lib/php/${PHP71_RELDATE}
+.elif ${_PHP_VERSION} == "72"
+PHPPKGSRCDIR= ../../lang/php72
+PHP_VERSION= ${PHP72_VERSION}
+PHP_INITIAL_TEENY= 0
+PHP_PKG_PREFIX= php72
+PHP_EXTENSION_DIR= lib/php/${PHP72_RELDATE}
.else
# force an error
PKG_FAIL_REASON+= "${PKG_PHP} is not a valid package"