| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: phpversion.mk,v 1.209 2018/03/02 02:13:44 taca Exp $ | | 1 | # $NetBSD: phpversion.mk,v 1.210 2018/03/29 16:19:38 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: 56 70 71 72 | | 13 | # Possible: 56 70 71 72 |
14 | # Default: 71 | | 14 | # Default: 71 |
| @@ -18,27 +18,27 @@ | | | @@ -18,27 +18,27 @@ |
18 | # PHP_VERSION_REQD | | 18 | # PHP_VERSION_REQD |
19 | # PHP version to use. This variable should not be set in | | 19 | # PHP version to use. This variable should not be set in |
20 | # packages. Normally it is used by bulk build tools. | | 20 | # packages. Normally it is used by bulk build tools. |
21 | # | | 21 | # |
22 | # Possible: ${PHP_VERSIONS_ACCEPTED} | | 22 | # Possible: ${PHP_VERSIONS_ACCEPTED} |
23 | # Default: ${PHP_VERSION_DEFAULT} | | 23 | # Default: ${PHP_VERSION_DEFAULT} |
24 | # | | 24 | # |
25 | # === Package-settable variables === | | 25 | # === Package-settable variables === |
26 | # | | 26 | # |
27 | # PHP_VERSIONS_ACCEPTED | | 27 | # PHP_VERSIONS_ACCEPTED |
28 | # The PHP versions that are accepted by the package. | | 28 | # The PHP versions that are accepted by the package. |
29 | # | | 29 | # |
30 | # Possible: 56 70 71 72 | | 30 | # Possible: 56 70 71 72 |
31 | # Default: 56 | | 31 | # Default: 71 |
32 | # | | 32 | # |
33 | # PHP_VERSIONS_INCOMPATIBLE | | 33 | # PHP_VERSIONS_INCOMPATIBLE |
34 | # The PHP versions that are not supported by the package. | | 34 | # The PHP versions that are not supported by the package. |
35 | # | | 35 | # |
36 | # Possible: 56 70 71 72 | | 36 | # Possible: 56 70 71 72 |
37 | # Default: (empty) | | 37 | # Default: (empty) |
38 | # | | 38 | # |
39 | # PHP_CHECK_INSTALLED | | 39 | # PHP_CHECK_INSTALLED |
40 | # Check installed version of PHP. Should be used by lang/php56, | | 40 | # Check installed version of PHP. Should be used by lang/php56, |
41 | # lang/php70, or lang/php71 only. | | 41 | # lang/php70, or lang/php71 only. |
42 | # | | 42 | # |
43 | # Possible: Yes No | | 43 | # Possible: Yes No |
44 | # Default: Yes | | 44 | # Default: Yes |
| @@ -48,27 +48,27 @@ | | | @@ -48,27 +48,27 @@ |
48 | # PKG_PHP_VERSION | | 48 | # PKG_PHP_VERSION |
49 | # The selected PHP version. | | 49 | # The selected PHP version. |
50 | # | | 50 | # |
51 | # Possible: 56 70 71 72 | | 51 | # Possible: 56 70 71 72 |
52 | # Default: ${PHP_VERSION_DEFAULT} | | 52 | # Default: ${PHP_VERSION_DEFAULT} |
53 | # | | 53 | # |
54 | # PHP_BASE_VERS | | 54 | # PHP_BASE_VERS |
55 | # The selected PHP's full version depends on PKG_PHP_VERSION | | 55 | # The selected PHP's full version depends on PKG_PHP_VERSION |
56 | # | | 56 | # |
57 | # PKG_PHP_MAJOR_VERS | | 57 | # PKG_PHP_MAJOR_VERS |
58 | # The selected PHP's major version. | | 58 | # The selected PHP's major version. |
59 | # | | 59 | # |
60 | # Possible: 5 7 | | 60 | # Possible: 5 7 |
61 | # Default: 5 | | 61 | # Default: 7 |
62 | # | | 62 | # |
63 | # PKG_PHP | | 63 | # PKG_PHP |
64 | # The same as ${PKG_PHP_VERSION}, prefixed with "php-". | | 64 | # The same as ${PKG_PHP_VERSION}, prefixed with "php-". |
65 | # | | 65 | # |
66 | # PHPPKGSRCDIR | | 66 | # PHPPKGSRCDIR |
67 | # The directory of the PHP implementation, relative to the | | 67 | # The directory of the PHP implementation, relative to the |
68 | # package directory. | | 68 | # package directory. |
69 | # | | 69 | # |
70 | # Example: ../../lang/php56 | | 70 | # Example: ../../lang/php56 |
71 | # | | 71 | # |
72 | # PHP_PKG_PREFIX | | 72 | # PHP_PKG_PREFIX |
73 | # The prefix that is prepended to the package name. | | 73 | # The prefix that is prepended to the package name. |
74 | # | | 74 | # |
| @@ -79,27 +79,27 @@ | | | @@ -79,27 +79,27 @@ |
79 | # initial release of major version. | | 79 | # initial release of major version. |
80 | # | | 80 | # |
81 | # Example: lib/php/20140828 | | 81 | # Example: lib/php/20140828 |
82 | # | | 82 | # |
83 | # Keywords: php | | 83 | # Keywords: php |
84 | # | | 84 | # |
85 | | | 85 | |
86 | .if !defined(PHPVERSION_MK) | | 86 | .if !defined(PHPVERSION_MK) |
87 | PHPVERSION_MK= defined | | 87 | PHPVERSION_MK= defined |
88 | | | 88 | |
89 | # Define each PHP's version. | | 89 | # Define each PHP's version. |
90 | PHP56_VERSION= 5.6.34 | | 90 | PHP56_VERSION= 5.6.34 |
91 | PHP70_VERSION= 7.0.28 | | 91 | PHP70_VERSION= 7.0.28 |
92 | PHP71_VERSION= 7.1.15 | | 92 | PHP71_VERSION= 7.1.16 |
93 | PHP72_VERSION= 7.2.3 | | 93 | PHP72_VERSION= 7.2.3 |
94 | | | 94 | |
95 | # Define initial release of major version. | | 95 | # Define initial release of major version. |
96 | PHP56_RELDATE= 20140828 | | 96 | PHP56_RELDATE= 20140828 |
97 | PHP70_RELDATE= 20151203 | | 97 | PHP70_RELDATE= 20151203 |
98 | PHP71_RELDATE= 20160303 | | 98 | PHP71_RELDATE= 20160303 |
99 | PHP72_RELDATE= 20170718 | | 99 | PHP72_RELDATE= 20170718 |
100 | | | 100 | |
101 | _VARGROUPS+= php | | 101 | _VARGROUPS+= php |
102 | _USER_VARS.php= PHP_VERSION_DEFAULT | | 102 | _USER_VARS.php= PHP_VERSION_DEFAULT |
103 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD | | 103 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD |
104 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ | | 104 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ |
105 | PKG_PHP_MAJOR_VERS | | 105 | PKG_PHP_MAJOR_VERS |