| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: phpversion.mk,v 1.20 2012/07/25 10:50:12 taca Exp $ | | 1 | # $NetBSD: phpversion.mk,v 1.21 2012/08/17 15:37:30 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: 53 | | 14 | # Default: 53 |
| @@ -63,28 +63,28 @@ | | | @@ -63,28 +63,28 @@ |
63 | # | | 63 | # |
64 | | | 64 | |
65 | .if !defined(PHPVERSION_MK) | | 65 | .if !defined(PHPVERSION_MK) |
66 | PHPVERSION_MK= defined | | 66 | PHPVERSION_MK= defined |
67 | | | 67 | |
68 | _VARGROUPS+= php | | 68 | _VARGROUPS+= php |
69 | _USER_VARS.php= PHP_VERSION_DEFAULT | | 69 | _USER_VARS.php= PHP_VERSION_DEFAULT |
70 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD | | 70 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD |
71 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ | | 71 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ |
72 | PKG_PHP_MAJOR_VERS | | 72 | PKG_PHP_MAJOR_VERS |
73 | | | 73 | |
74 | .include "../../mk/bsd.prefs.mk" | | 74 | .include "../../mk/bsd.prefs.mk" |
75 | | | 75 | |
76 | PHP53_VERSION= 5.3.15 | | 76 | PHP53_VERSION= 5.3.16 |
77 | PHP54_VERSION= 5.4.5 | | 77 | PHP54_VERSION= 5.4.6 |
78 | | | 78 | |
79 | PHP_VERSION_DEFAULT?= 53 | | 79 | PHP_VERSION_DEFAULT?= 53 |
80 | PHP_VERSIONS_ACCEPTED?= 53 54 | | 80 | PHP_VERSIONS_ACCEPTED?= 53 54 |
81 | | | 81 | |
82 | # transform the list into individual variables | | 82 | # transform the list into individual variables |
83 | .for pv in ${PHP_VERSIONS_ACCEPTED} | | 83 | .for pv in ${PHP_VERSIONS_ACCEPTED} |
84 | _PHP_VERSION_${pv}_OK= yes | | 84 | _PHP_VERSION_${pv}_OK= yes |
85 | .endfor | | 85 | .endfor |
86 | | | 86 | |
87 | # check what is installed | | 87 | # check what is installed |
88 | .if exists(${LOCALBASE}/lib/php/20120301) | | 88 | .if exists(${LOCALBASE}/lib/php/20120301) |
89 | _PHP_VERSION_54_INSTALLED= yes | | 89 | _PHP_VERSION_54_INSTALLED= yes |
90 | _PHP_INSTALLED= yes | | 90 | _PHP_INSTALLED= yes |