| @@ -1,257 +1,257 @@ | | | @@ -1,257 +1,257 @@ |
1 | # $NetBSD: phpversion.mk,v 1.241 2018/12/15 17:11:54 taca Exp $ | | 1 | # $NetBSD: phpversion.mk,v 1.242 2019/01/12 14:56:47 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 73 | | 13 | # Possible: 56 70 71 72 73 |
14 | # Default: 71 | | 14 | # Default: 71 |
15 | # | | 15 | # |
16 | # === Infrastructure variables === | | 16 | # === Infrastructure variables === |
17 | # | | 17 | # |
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 73 | | 30 | # Possible: 56 70 71 72 73 |
31 | # Default: 71 | | 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 73 | | 36 | # Possible: 56 70 71 72 73 |
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 |
45 | # | | 45 | # |
46 | # === Variables defined by this file === | | 46 | # === Variables defined by this file === |
47 | # | | 47 | # |
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 73 | | 51 | # Possible: 56 70 71 72 73 |
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: 7 | | 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/php71 | | 70 | # Example: ../../lang/php71 |
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 | # |
75 | # Example: php56 php70 php71 php72 php73 | | 75 | # Example: php56 php70 php71 php72 php73 |
76 | # | | 76 | # |
77 | # PHP_EXTENSION_DIR | | 77 | # PHP_EXTENSION_DIR |
78 | # Relative path to ${PREFIX} for PHP's extensions. It is derived from | | 78 | # Relative path to ${PREFIX} for PHP's extensions. It is derived from |
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.39 | | 90 | PHP56_VERSION= 5.6.39 |
91 | PHP70_VERSION= 7.0.33 | | 91 | PHP70_VERSION= 7.0.33 |
92 | PHP71_VERSION= 7.1.25 | | 92 | PHP71_VERSION= 7.1.26 |
93 | PHP72_VERSION= 7.2.13 | | 93 | PHP72_VERSION= 7.2.13 |
94 | PHP73_VERSION= 7.3.0 | | 94 | PHP73_VERSION= 7.3.0 |
95 | | | 95 | |
96 | # Define initial release of major version. | | 96 | # Define initial release of major version. |
97 | PHP56_RELDATE= 20140828 | | 97 | PHP56_RELDATE= 20140828 |
98 | PHP70_RELDATE= 20151203 | | 98 | PHP70_RELDATE= 20151203 |
99 | PHP71_RELDATE= 20160303 | | 99 | PHP71_RELDATE= 20160303 |
100 | PHP72_RELDATE= 20170718 | | 100 | PHP72_RELDATE= 20170718 |
101 | PHP73_RELDATE= 20181200 | | 101 | PHP73_RELDATE= 20181200 |
102 | | | 102 | |
103 | _VARGROUPS+= php | | 103 | _VARGROUPS+= php |
104 | _USER_VARS.php= PHP_VERSION_DEFAULT | | 104 | _USER_VARS.php= PHP_VERSION_DEFAULT |
105 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD | | 105 | _PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD |
106 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ | | 106 | _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ |
107 | PKG_PHP_MAJOR_VERS | | 107 | PKG_PHP_MAJOR_VERS |
108 | | | 108 | |
109 | .include "../../mk/bsd.prefs.mk" | | 109 | .include "../../mk/bsd.prefs.mk" |
110 | | | 110 | |
111 | PHP_VERSION_DEFAULT?= 71 | | 111 | PHP_VERSION_DEFAULT?= 71 |
112 | PHP_VERSIONS_ACCEPTED?= 56 70 71 72 73 | | 112 | PHP_VERSIONS_ACCEPTED?= 56 70 71 72 73 |
113 | .for pv in ${PHP_VERSIONS_ACCEPTED} | | 113 | .for pv in ${PHP_VERSIONS_ACCEPTED} |
114 | . if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv}) | | 114 | . if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv}) |
115 | _PHP_VERSIONS_ACCEPTED+= ${pv} | | 115 | _PHP_VERSIONS_ACCEPTED+= ${pv} |
116 | . endif | | 116 | . endif |
117 | .endfor | | 117 | .endfor |
118 | | | 118 | |
119 | # transform the list into individual variables | | 119 | # transform the list into individual variables |
120 | .for pv in ${_PHP_VERSIONS_ACCEPTED} | | 120 | .for pv in ${_PHP_VERSIONS_ACCEPTED} |
121 | _PHP_VERSION_${pv}_OK= yes | | 121 | _PHP_VERSION_${pv}_OK= yes |
122 | .endfor | | 122 | .endfor |
123 | | | 123 | |
124 | # check what is installed | | 124 | # check what is installed |
125 | .if exists(${LOCALBASE}/lib/php/${PHP73_RELDATE}) | | 125 | .if exists(${LOCALBASE}/lib/php/${PHP73_RELDATE}) |
126 | _PHP_VERSION_73_INSTALLED= yes | | 126 | _PHP_VERSION_73_INSTALLED= yes |
127 | _PHP_INSTALLED= yes | | 127 | _PHP_INSTALLED= yes |
128 | .elif exists(${LOCALBASE}/lib/php/${PHP72_RELDATE}) | | 128 | .elif exists(${LOCALBASE}/lib/php/${PHP72_RELDATE}) |
129 | _PHP_VERSION_72_INSTALLED= yes | | 129 | _PHP_VERSION_72_INSTALLED= yes |
130 | _PHP_INSTALLED= yes | | 130 | _PHP_INSTALLED= yes |
131 | .elif exists(${LOCALBASE}/lib/php/${PHP71_RELDATE}) | | 131 | .elif exists(${LOCALBASE}/lib/php/${PHP71_RELDATE}) |
132 | _PHP_VERSION_71_INSTALLED= yes | | 132 | _PHP_VERSION_71_INSTALLED= yes |
133 | _PHP_INSTALLED= yes | | 133 | _PHP_INSTALLED= yes |
134 | .elif exists(${LOCALBASE}/lib/php/${PHP70_RELDATE}) | | 134 | .elif exists(${LOCALBASE}/lib/php/${PHP70_RELDATE}) |
135 | _PHP_VERSION_70_INSTALLED= yes | | 135 | _PHP_VERSION_70_INSTALLED= yes |
136 | _PHP_INSTALLED= yes | | 136 | _PHP_INSTALLED= yes |
137 | .elif exists(${LOCALBASE}/lib/php/${PHP56_RELDATE}) | | 137 | .elif exists(${LOCALBASE}/lib/php/${PHP56_RELDATE}) |
138 | _PHP_VERSION_56_INSTALLED= yes | | 138 | _PHP_VERSION_56_INSTALLED= yes |
139 | _PHP_INSTALLED= yes | | 139 | _PHP_INSTALLED= yes |
140 | .endif | | 140 | .endif |
141 | | | 141 | |
142 | # if a version is explicitely required, take it | | 142 | # if a version is explicitely required, take it |
143 | .if defined(PHP_VERSION_REQD) | | 143 | .if defined(PHP_VERSION_REQD) |
144 | _PHP_VERSION= ${PHP_VERSION_REQD} | | 144 | _PHP_VERSION= ${PHP_VERSION_REQD} |
145 | .endif | | 145 | .endif |
146 | # if the default is already installed, it is first choice | | 146 | # if the default is already installed, it is first choice |
147 | .if !defined(_PHP_VERSION) | | 147 | .if !defined(_PHP_VERSION) |
148 | .if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK) | | 148 | .if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK) |
149 | .if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_INSTALLED) | | 149 | .if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_INSTALLED) |
150 | _PHP_VERSION= ${PHP_VERSION_DEFAULT} | | 150 | _PHP_VERSION= ${PHP_VERSION_DEFAULT} |
151 | .endif | | 151 | .endif |
152 | .endif | | 152 | .endif |
153 | .endif | | 153 | .endif |
154 | # prefer an already installed version, in order of "accepted" | | 154 | # prefer an already installed version, in order of "accepted" |
155 | .if !defined(_PHP_VERSION) | | 155 | .if !defined(_PHP_VERSION) |
156 | .for pv in ${_PHP_VERSIONS_ACCEPTED} | | 156 | .for pv in ${_PHP_VERSIONS_ACCEPTED} |
157 | .if defined(_PHP_VERSION_${pv}_INSTALLED) | | 157 | .if defined(_PHP_VERSION_${pv}_INSTALLED) |
158 | _PHP_VERSION?= ${pv} | | 158 | _PHP_VERSION?= ${pv} |
159 | .else | | 159 | .else |
160 | # keep information as last resort - see below | | 160 | # keep information as last resort - see below |
161 | _PHP_VERSION_FIRSTACCEPTED?= ${pv} | | 161 | _PHP_VERSION_FIRSTACCEPTED?= ${pv} |
162 | .endif | | 162 | .endif |
163 | .endfor | | 163 | .endfor |
164 | .endif | | 164 | .endif |
165 | # if the default is OK for the addon pkg, take this | | 165 | # if the default is OK for the addon pkg, take this |
166 | .if !defined(_PHP_VERSION) | | 166 | .if !defined(_PHP_VERSION) |
167 | .if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK) | | 167 | .if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK) |
168 | _PHP_VERSION= ${PHP_VERSION_DEFAULT} | | 168 | _PHP_VERSION= ${PHP_VERSION_DEFAULT} |
169 | .endif | | 169 | .endif |
170 | .endif | | 170 | .endif |
171 | # take the first one accepted by the package | | 171 | # take the first one accepted by the package |
172 | .if !defined(_PHP_VERSION) | | 172 | .if !defined(_PHP_VERSION) |
173 | _PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED} | | 173 | _PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED} |
174 | .endif | | 174 | .endif |
175 | | | 175 | |
176 | # | | 176 | # |
177 | # Variable assignment for multi-PHP packages | | 177 | # Variable assignment for multi-PHP packages |
178 | MULTI+= PHP_VERSION_REQD=${_PHP_VERSION} | | 178 | MULTI+= PHP_VERSION_REQD=${_PHP_VERSION} |
179 | | | 179 | |
180 | # export some of internal variables | | 180 | # export some of internal variables |
181 | PKG_PHP_VERSION:= ${_PHP_VERSION:C/\.[0-9]//} | | 181 | PKG_PHP_VERSION:= ${_PHP_VERSION:C/\.[0-9]//} |
182 | PKG_PHP:= PHP${_PHP_VERSION:C/([0-9])([0-9])/\1.\2/} | | 182 | PKG_PHP:= PHP${_PHP_VERSION:C/([0-9])([0-9])/\1.\2/} |
183 | | | 183 | |
184 | # Major version | | 184 | # Major version |
185 | PKG_PHP_MAJOR_VERS:= ${_PHP_VERSION:C/^([0-9]).*/\1/} | | 185 | PKG_PHP_MAJOR_VERS:= ${_PHP_VERSION:C/^([0-9]).*/\1/} |
186 | | | 186 | |
187 | PHP_CHECK_INSTALLED?= Yes | | 187 | PHP_CHECK_INSTALLED?= Yes |
188 | | | 188 | |
189 | # if installed PHP isn't compatible with required PHP, bail out | | 189 | # if installed PHP isn't compatible with required PHP, bail out |
190 | .if empty(PHP_CHECK_INSTALLED:M[nN][oO]) | | 190 | .if empty(PHP_CHECK_INSTALLED:M[nN][oO]) |
191 | .if defined(_PHP_INSTALLED) && !defined(_PHP_VERSION_${_PHP_VERSION}_INSTALLED) | | 191 | .if defined(_PHP_INSTALLED) && !defined(_PHP_VERSION_${_PHP_VERSION}_INSTALLED) |
192 | PKG_FAIL_REASON+= "Package accepts ${PKG_PHP}, but different version is installed" | | 192 | PKG_FAIL_REASON+= "Package accepts ${PKG_PHP}, but different version is installed" |
193 | .endif | | 193 | .endif |
194 | .endif | | 194 | .endif |
195 | | | 195 | |
196 | MESSAGE_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \ | | 196 | MESSAGE_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \ |
197 | PKG_PHP=${PKG_PHP} | | 197 | PKG_PHP=${PKG_PHP} |
198 | PLIST_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \ | | 198 | PLIST_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \ |
199 | PKG_PHP_MAJOR_VERS=${PKG_PHP_MAJOR_VERS} \ | | 199 | PKG_PHP_MAJOR_VERS=${PKG_PHP_MAJOR_VERS} \ |
200 | PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} | | 200 | PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} |
201 | | | 201 | |
202 | # force the selected PHP version for recursive builds | | 202 | # force the selected PHP version for recursive builds |
203 | PHP_VERSION_REQD:= ${PKG_PHP_VERSION} | | 203 | PHP_VERSION_REQD:= ${PKG_PHP_VERSION} |
204 | | | 204 | |
205 | # | | 205 | # |
206 | # set variables for the version we decided to use: | | 206 | # set variables for the version we decided to use: |
207 | # | | 207 | # |
208 | .if ${_PHP_VERSION} == "56" | | 208 | .if ${_PHP_VERSION} == "56" |
209 | PHPPKGSRCDIR= ../../lang/php56 | | 209 | PHPPKGSRCDIR= ../../lang/php56 |
210 | PHP_VERSION= ${PHP56_VERSION} | | 210 | PHP_VERSION= ${PHP56_VERSION} |
211 | PHP_INITIAL_TEENY= 3 | | 211 | PHP_INITIAL_TEENY= 3 |
212 | PHP_PKG_PREFIX= php56 | | 212 | PHP_PKG_PREFIX= php56 |
213 | PHP_EXTENSION_DIR= lib/php/${PHP56_RELDATE} | | 213 | PHP_EXTENSION_DIR= lib/php/${PHP56_RELDATE} |
214 | .elif ${_PHP_VERSION} == "70" | | 214 | .elif ${_PHP_VERSION} == "70" |
215 | PHPPKGSRCDIR= ../../lang/php70 | | 215 | PHPPKGSRCDIR= ../../lang/php70 |
216 | PHP_VERSION= ${PHP70_VERSION} | | 216 | PHP_VERSION= ${PHP70_VERSION} |
217 | PHP_INITIAL_TEENY= 0 | | 217 | PHP_INITIAL_TEENY= 0 |
218 | PHP_PKG_PREFIX= php70 | | 218 | PHP_PKG_PREFIX= php70 |
219 | PHP_EXTENSION_DIR= lib/php/${PHP70_RELDATE} | | 219 | PHP_EXTENSION_DIR= lib/php/${PHP70_RELDATE} |
220 | .elif ${_PHP_VERSION} == "71" | | 220 | .elif ${_PHP_VERSION} == "71" |
221 | PHPPKGSRCDIR= ../../lang/php71 | | 221 | PHPPKGSRCDIR= ../../lang/php71 |
222 | PHP_VERSION= ${PHP71_VERSION} | | 222 | PHP_VERSION= ${PHP71_VERSION} |
223 | PHP_INITIAL_TEENY= 0 | | 223 | PHP_INITIAL_TEENY= 0 |
224 | PHP_PKG_PREFIX= php71 | | 224 | PHP_PKG_PREFIX= php71 |
225 | PHP_EXTENSION_DIR= lib/php/${PHP71_RELDATE} | | 225 | PHP_EXTENSION_DIR= lib/php/${PHP71_RELDATE} |
226 | .elif ${_PHP_VERSION} == "72" | | 226 | .elif ${_PHP_VERSION} == "72" |
227 | PHPPKGSRCDIR= ../../lang/php72 | | 227 | PHPPKGSRCDIR= ../../lang/php72 |
228 | PHP_VERSION= ${PHP72_VERSION} | | 228 | PHP_VERSION= ${PHP72_VERSION} |
229 | PHP_INITIAL_TEENY= 0 | | 229 | PHP_INITIAL_TEENY= 0 |
230 | PHP_PKG_PREFIX= php72 | | 230 | PHP_PKG_PREFIX= php72 |
231 | PHP_EXTENSION_DIR= lib/php/${PHP72_RELDATE} | | 231 | PHP_EXTENSION_DIR= lib/php/${PHP72_RELDATE} |
232 | .elif ${_PHP_VERSION} == "73" | | 232 | .elif ${_PHP_VERSION} == "73" |
233 | PHPPKGSRCDIR= ../../lang/php73 | | 233 | PHPPKGSRCDIR= ../../lang/php73 |
234 | PHP_VERSION= ${PHP73_VERSION} | | 234 | PHP_VERSION= ${PHP73_VERSION} |
235 | PHP_INITIAL_TEENY= 0 | | 235 | PHP_INITIAL_TEENY= 0 |
236 | PHP_PKG_PREFIX= php73 | | 236 | PHP_PKG_PREFIX= php73 |
237 | PHP_EXTENSION_DIR= lib/php/${PHP73_RELDATE} | | 237 | PHP_EXTENSION_DIR= lib/php/${PHP73_RELDATE} |
238 | .else | | 238 | .else |
239 | # force an error | | 239 | # force an error |
240 | PKG_FAIL_REASON+= "${PKG_PHP} is not a valid package" | | 240 | PKG_FAIL_REASON+= "${PKG_PHP} is not a valid package" |
241 | .endif | | 241 | .endif |
242 | | | 242 | |
243 | _PHP_VER_MAJOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/} | | 243 | _PHP_VER_MAJOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/} |
244 | _PHP_VER_MINOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/} | | 244 | _PHP_VER_MINOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/} |
245 | | | 245 | |
246 | PHP_BASE_VERS= ${_PHP_VER_MAJOR}.${_PHP_VER_MINOR}.${PHP_INITIAL_TEENY} | | 246 | PHP_BASE_VERS= ${_PHP_VER_MAJOR}.${_PHP_VER_MINOR}.${PHP_INITIAL_TEENY} |
247 | | | 247 | |
248 | # | | 248 | # |
249 | # check installed version aginst required: | | 249 | # check installed version aginst required: |
250 | # | | 250 | # |
251 | .if !empty(PHP_CHECK_INSTALLED:M[nN][oO]) | | 251 | .if !empty(PHP_CHECK_INSTALLED:M[nN][oO]) |
252 | .if defined(_PHP_VERSION_INSTALLED) && ${_PHP_VERSION} != ${_PHP_VERSION_INSTALLED} | | 252 | .if defined(_PHP_VERSION_INSTALLED) && ${_PHP_VERSION} != ${_PHP_VERSION_INSTALLED} |
253 | PKG_FAIL_REASON+= "${PKGBASE} requires ${PKG_PHP}, but php-${_PHP_VERSION_INSTALLED} is already installed." | | 253 | PKG_FAIL_REASON+= "${PKGBASE} requires ${PKG_PHP}, but php-${_PHP_VERSION_INSTALLED} is already installed." |
254 | .endif | | 254 | .endif |
255 | .endif | | 255 | .endif |
256 | | | 256 | |
257 | .endif # PHPVERSION_MK | | 257 | .endif # PHPVERSION_MK |