blob: 69e589e9d15c1727f519220ddc1f1dcb5dafbc3d (
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: apache libxml2
5
6 name=mod_php
7 version=5.4.5
8 release=1
9 source=(http://www.php.net/distributions/php-$version.tar.bz2)
10
11 build () {
12 cd php-$version
13
14 local APXS
15 APXS=$(which apxs) || APXS='/usr/sbin/apxs'
16
17 local PHP_CONFIG="
18 --prefix=/usr \
19 --with-config-file-path=/etc/php \
20 --with-config-file-scan-dir=/etc/php/conf.d \
21 --with-zlib \
22 --with-pcre-regex=/usr \
23 --disable-static --disable-debug --without-pear"
24
25 EXTENSION_DIR=/usr/lib/php/extensions \
26 ./configure \
27 $PHP_CONFIG \
28 --with-apxs2=$APXS \
29 --disable-cli
30
31 make
32 install -D -m 755 libs/libphp5.so $PKG/usr/lib/apache/libphp5.so
33 }
|