| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: phpversion.mk,v 1.32 2013/04/12 17:01:46 taca Exp $ | | 1 | # $NetBSD: phpversion.mk,v 1.33 2013/06/03 15:23:14 taca 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: 53 54 | | 13 | # Possible: 53 54 |
14 | # Default: 54 | | 14 | # Default: 54 |
| @@ -65,28 +65,28 @@ | | | @@ -65,28 +65,28 @@ |
65 | # | | 65 | # |
66 | | | 66 | |
67 | .if !defined(PHPVERSION_MK) | | 67 | .if !defined(PHPVERSION_MK) |
68 | PHPVERSION_MK= defined | | 68 | PHPVERSION_MK= defined |
69 | | | 69 | |
70 | _VARGROUPS+= php | | 70 | _VARGROUPS+= php |
71 | _USER_VARS.php= PHP_VERSION_DEFAULT | | 71 | _USER_VARS.php= PHP_VERSION_DEFAULT |
72 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD | | 72 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD |
73 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ | | 73 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ |
74 | PKG_PHP_MAJOR_VERS | | 74 | PKG_PHP_MAJOR_VERS |
75 | | | 75 | |
76 | .include "../../mk/bsd.prefs.mk" | | 76 | .include "../../mk/bsd.prefs.mk" |
77 | | | 77 | |
78 | PHP53_VERSION= 5.3.24 | | 78 | PHP53_VERSION= 5.3.25 |
79 | PHP54_VERSION= 5.4.14 | | 79 | PHP54_VERSION= 5.4.15 |
80 | | | 80 | |
81 | PHP_VERSION_DEFAULT?= 54 | | 81 | PHP_VERSION_DEFAULT?= 54 |
82 | PHP_VERSIONS_ACCEPTED?= 54 53 | | 82 | PHP_VERSIONS_ACCEPTED?= 54 53 |
83 | | | 83 | |
84 | # transform the list into individual variables | | 84 | # transform the list into individual variables |
85 | .for pv in ${PHP_VERSIONS_ACCEPTED} | | 85 | .for pv in ${PHP_VERSIONS_ACCEPTED} |
86 | _PHP_VERSION_${pv}_OK= yes | | 86 | _PHP_VERSION_${pv}_OK= yes |
87 | .endfor | | 87 | .endfor |
88 | | | 88 | |
89 | # check what is installed | | 89 | # check what is installed |
90 | .if exists(${LOCALBASE}/lib/php/20120301) | | 90 | .if exists(${LOCALBASE}/lib/php/20120301) |
91 | _PHP_VERSION_54_INSTALLED= yes | | 91 | _PHP_VERSION_54_INSTALLED= yes |
92 | _PHP_INSTALLED= yes | | 92 | _PHP_INSTALLED= yes |