blob: 265cd7334d39004e2c67ff3d476d2344b2d731ca (
plain)
1 # Description: PHP DSO module for apache
2 # URL: http://www.php.net
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: xz apache libxml2
5
6 name=mod_php
7 version=5.5.22
8 release=1
9 source=(http://php.net/distributions/php-$version.tar.xz)
10
11 build () {
12 cd php-$version
13
14 # to be compatible with our other php ports, don't build
15 # for a threaded MPM (ZTS). Use only the prefork MPM!
16 sed -i '/APACHE_THREADED_MPM=/d' configure
17
18 local APXS
19 APXS=$(which apxs) || APXS='/usr/bin/apxs'
20
21 local PHP_CONFIG="
22 --prefix=/usr \
23 --with-config-file-path=/etc/php \
24 --with-config-file-scan-dir=/etc/php/conf.d \
25 --with-zlib \
26 --with-pcre-regex=/usr \
27 --disable-static --disable-debug \
28 --without-sqlite3 --without-pdo-sqlite \
29 --without-pear"
30
31 EXTENSION_DIR=/usr/lib/php/extensions \
32 ./configure \
33 $PHP_CONFIG \
34 --with-apxs2=$APXS \
35 --disable-cli
36
37 make
38 install -D -m 755 libs/libphp5.so $PKG/usr/lib/apache/libphp5.so
39 }
|