2008-05-07 20:29:16 +02:00
|
|
|
# Description: PHP DSO module for apache
|
2006-02-23 16:26:10 +01:00
|
|
|
# URL: http://www.php.net
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2013-02-25 13:11:34 +01:00
|
|
|
# Depends on: xz apache libxml2
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=mod_php
|
2013-07-11 11:27:48 +02:00
|
|
|
version=5.4.17
|
2008-12-05 11:37:26 +01:00
|
|
|
release=1
|
2008-05-07 20:29:16 +02:00
|
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
2008-05-07 20:29:16 +02:00
|
|
|
|
2012-04-26 16:52:30 +02:00
|
|
|
local APXS
|
|
|
|
APXS=$(which apxs) || APXS='/usr/sbin/apxs'
|
|
|
|
|
2008-05-07 20:29:16 +02:00
|
|
|
local PHP_CONFIG="
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-config-file-path=/etc/php \
|
|
|
|
--with-config-file-scan-dir=/etc/php/conf.d \
|
2008-07-09 09:59:59 +02:00
|
|
|
--with-zlib \
|
2008-12-05 11:52:29 +01:00
|
|
|
--with-pcre-regex=/usr \
|
2013-02-25 13:11:34 +01:00
|
|
|
--disable-static --disable-debug \
|
|
|
|
--without-sqlite3 --without-pdo-sqlite \
|
|
|
|
--without-pear"
|
2008-05-07 20:29:16 +02:00
|
|
|
|
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
|
|
./configure \
|
|
|
|
$PHP_CONFIG \
|
2012-04-26 16:52:30 +02:00
|
|
|
--with-apxs2=$APXS \
|
2008-05-07 20:29:16 +02:00
|
|
|
--disable-cli
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
2008-05-07 20:29:16 +02:00
|
|
|
install -D -m 755 libs/libphp5.so $PKG/usr/lib/apache/libphp5.so
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|