| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: phpversion.mk,v 1.144 2016/07/24 02:20:16 taca Exp $ | | 1 | # $NetBSD: phpversion.mk,v 1.145 2016/07/31 15:39:27 jdolecek Exp $ |
2 | # | | 2 | # |
3 | # This file selects a PHP version, based on the user's preferences and | | 3 | # This file selects a PHP version, based on the user's preferences and |
4 | # the installed packages. It does not add a dependency on the PHP | | 4 | # the installed packages. It does not add a dependency on the PHP |
5 | # package. | | 5 | # package. |
6 | # | | 6 | # |
7 | # === User-settable variables === | | 7 | # === User-settable variables === |
8 | # | | 8 | # |
9 | # PHP_VERSION_DEFAULT | | 9 | # PHP_VERSION_DEFAULT |
10 | # The PHP version to choose when more than one is acceptable to | | 10 | # The PHP version to choose when more than one is acceptable to |
11 | # the package. | | 11 | # the package. |
12 | # | | 12 | # |
13 | # Possible: 55 56 70 | | 13 | # Possible: 55 56 70 |
14 | # Default: 55 | | 14 | # Default: 55 |
| @@ -88,27 +88,27 @@ PHP70_VERSION= 7.0.9 | | | @@ -88,27 +88,27 @@ PHP70_VERSION= 7.0.9 |
88 | # Define initial release of major version. | | 88 | # Define initial release of major version. |
89 | PHP55_RELDATE= 20130620 | | 89 | PHP55_RELDATE= 20130620 |
90 | PHP56_RELDATE= 20140828 | | 90 | PHP56_RELDATE= 20140828 |
91 | PHP70_RELDATE= 20151203 | | 91 | PHP70_RELDATE= 20151203 |
92 | | | 92 | |
93 | _VARGROUPS+= php | | 93 | _VARGROUPS+= php |
94 | _USER_VARS.php= PHP_VERSION_DEFAULT | | 94 | _USER_VARS.php= PHP_VERSION_DEFAULT |
95 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD | | 95 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD |
96 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ | | 96 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ |
97 | PKG_PHP_MAJOR_VERS | | 97 | PKG_PHP_MAJOR_VERS |
98 | | | 98 | |
99 | .include "../../mk/bsd.prefs.mk" | | 99 | .include "../../mk/bsd.prefs.mk" |
100 | | | 100 | |
101 | PHP_VERSION_DEFAULT?= 55 | | 101 | PHP_VERSION_DEFAULT?= 56 |
102 | PHP_VERSIONS_ACCEPTED?= 55 56 70 | | 102 | PHP_VERSIONS_ACCEPTED?= 55 56 70 |
103 | | | 103 | |
104 | # transform the list into individual variables | | 104 | # transform the list into individual variables |
105 | .for pv in ${PHP_VERSIONS_ACCEPTED} | | 105 | .for pv in ${PHP_VERSIONS_ACCEPTED} |
106 | _PHP_VERSION_${pv}_OK= yes | | 106 | _PHP_VERSION_${pv}_OK= yes |
107 | .endfor | | 107 | .endfor |
108 | | | 108 | |
109 | # check what is installed | | 109 | # check what is installed |
110 | .if exists(${LOCALBASE}/lib/php/20151203) | | 110 | .if exists(${LOCALBASE}/lib/php/20151203) |
111 | _PHP_VERSION_70_INSTALLED= yes | | 111 | _PHP_VERSION_70_INSTALLED= yes |
112 | _PHP_INSTALLED= yes | | 112 | _PHP_INSTALLED= yes |
113 | .elif exists(${LOCALBASE}/lib/php/20140828) | | 113 | .elif exists(${LOCALBASE}/lib/php/20140828) |
114 | _PHP_VERSION_56_INSTALLED= yes | | 114 | _PHP_VERSION_56_INSTALLED= yes |