|
161 | 161 | <!-- Prepares the PHP sources for the runtime --> |
162 | 162 | <!-- ==================================================================== --> |
163 | 163 | <target name="prepare-source" depends="prepare" description="Prepares the PHP sources for the runtime."> |
164 | | - <!-- prepare PHP sources --> |
| 164 | + <!-- prepare PHP sources --> |
165 | 165 | <antcall target="get-php-src"/> |
166 | 166 | <untar src="/tmp/php-${php.version}.tar.gz" dest="${c-build.dir}" compression="gzip"/> |
167 | 167 | <chmod perm="755"> |
168 | 168 | <fileset dir="${c-build.dir}/php-${php.version}/build"> |
169 | 169 | <include name="**/*"/> |
170 | 170 | </fileset> |
171 | 171 | </chmod> |
| 172 | + |
| 173 | + <!-- recreate symlink --> |
| 174 | + <delete file="${c-build.dir}/php" followsymlinks="false" removenotfollowedsymlinks="true" /> |
| 175 | + <symlink link="${c-build.dir}/php" resource="${c-build.dir}/php-${php.version}"/> |
172 | 176 |
|
173 | | - <!-- |
174 | 177 | <antcall target="get-pthreads-src"/> |
175 | 178 | <untar src="/tmp/pthreads-${pthreads.version}.tgz" dest="/tmp" compression="gzip"/> |
176 | | - <move todir="${c-build.dir}/php-${php.version}/ext/pthreads"> |
| 179 | + <move todir="${c-build.dir}/php/ext/pthreads"> |
177 | 180 | <fileset dir="/tmp/pthreads-${pthreads.version}"/> |
178 | 181 | </move> |
179 | | - --> |
180 | 182 |
|
181 | | - <exec executable="git" dir="${c-build.dir}/php-${php.version}/ext"> |
| 183 | + <!-- pthreads head |
| 184 | + <exec executable="git" dir="${c-build.dir}/php/ext"> |
182 | 185 | <arg line="clone https://github.com/krakjoe/pthreads.git"/> |
183 | 186 | </exec> |
| 187 | + --> |
184 | 188 |
|
185 | | - <exec executable="git" dir="${c-build.dir}/php-${php.version}/ext"> |
| 189 | + <!-- zmq head |
| 190 | + <exec executable="git" dir="${c-build.dir}/php/ext"> |
186 | 191 | <arg line="clone https://github.com/mkoppanen/php-zmq.git zmq"/> |
187 | 192 | </exec> |
| 193 | + --> |
188 | 194 |
|
189 | 195 | <antcall target="get-memcached-src"/> |
190 | 196 | <untar src="/tmp/memcached-${memcached.version}.tgz" dest="/tmp" compression="gzip"/> |
191 | | - <move todir="${c-build.dir}/php-${php.version}/ext/memcached"> |
| 197 | + <move todir="${c-build.dir}/php/ext/memcached"> |
192 | 198 | <fileset dir="/tmp/memcached-${memcached.version}"/> |
193 | 199 | </move> |
194 | 200 |
|
195 | 201 | <antcall target="get-redis-src"/> |
196 | 202 | <untar src="/tmp/redis-${redis.version}.tgz" dest="/tmp" compression="gzip"/> |
197 | | - <move todir="${c-build.dir}/php-${php.version}/ext/redis"> |
| 203 | + <move todir="${c-build.dir}/php/ext/redis"> |
198 | 204 | <fileset dir="/tmp/redis-${redis.version}"/> |
199 | 205 | </move> |
200 | 206 |
|
201 | 207 | <antcall target="get-apcu-src"/> |
202 | 208 | <untar src="/tmp/apcu-${apcu.version}.tgz" dest="/tmp" compression="gzip"/> |
203 | | - <move todir="${c-build.dir}/php-${php.version}/ext/apcu"> |
| 209 | + <move todir="${c-build.dir}/php/ext/apcu"> |
204 | 210 | <fileset dir="/tmp/apcu-${apcu.version}"/> |
205 | 211 | </move> |
206 | 212 |
|
207 | 213 | <antcall target="get-xdebug-src"/> |
208 | 214 | <untar src="/tmp/xdebug-${xdebug.version}.tgz" dest="/tmp" compression="gzip"/> |
209 | | - <move todir="${c-build.dir}/php-${php.version}/ext/xdebug"> |
| 215 | + <move todir="${c-build.dir}/php/ext/xdebug"> |
210 | 216 | <fileset dir="/tmp/xdebug-${xdebug.version}"/> |
211 | 217 | </move> |
212 | 218 | </target> |
|
215 | 221 | <!-- Init the PHP source for the build environment --> |
216 | 222 | <!-- ==================================================================== --> |
217 | 223 | <target name="configure" description="Configures the php runtime environment."> |
218 | | - <delete file="${c-build.dir}/php-${php.version}/aclocal.m4"/> |
219 | | - <delete file="${c-build.dir}/php-${php.version}/configure"/> |
220 | | - <exec dir="${c-build.dir}/php-${php.version}" executable="sh"> |
| 224 | + <delete file="${c-build.dir}/php/aclocal.m4"/> |
| 225 | + <delete file="${c-build.dir}/php/configure"/> |
| 226 | + <exec dir="${c-build.dir}/php" executable="sh"> |
221 | 227 | <arg value="buildconf"/> |
222 | 228 | <arg line="--force"/> |
223 | 229 | </exec> |
224 | 230 | <!-- configure, compile and install PHP binary --> |
225 | | - <exec dir="${c-build.dir}/php-${php.version}" executable="sh"> |
| 231 | + <exec dir="${c-build.dir}/php" executable="sh"> |
226 | 232 | <!-- <env key="CC" value="${php.cc}"/> --> |
227 | 233 | <arg line="configure ${php.configure}"/> |
228 | 234 | </exec> |
|
232 | 238 | <!-- Makes the PHP source for the PHP build runtime --> |
233 | 239 | <!-- ==================================================================== --> |
234 | 240 | <target name="make" description="Compiles the php runtime environment."> |
235 | | - <exec dir="${c-build.dir}/php-${php.version}" executable="make"/> |
| 241 | + <exec dir="${c-build.dir}/php" executable="make"/> |
236 | 242 | </target> |
237 | 243 |
|
238 | 244 | <!-- ==================================================================== --> |
|
259 | 265 | <!-- Runs php tests --> |
260 | 266 | <!-- ==================================================================== --> |
261 | 267 | <target name="run-tests" description="Runs the php tests"> |
262 | | - <exec dir="${c-build.dir}/php-${php.version}" executable="php"> |
263 | | - <env key="TEST_PHP_EXECUTABLE" value="${c-build.dir}/php-${php.version}/sapi/cli/php"/> |
| 268 | + <exec dir="${c-build.dir}/php" executable="php"> |
| 269 | + <env key="TEST_PHP_EXECUTABLE" value="${c-build.dir}/php/sapi/cli/php"/> |
264 | 270 | <arg line="./run-tests.php ${c-php-tests.dir}"/> |
265 | 271 | </exec> |
266 | 272 | </target> |
|
0 commit comments