opt/mod_php/Pkgfile

34 lines
805 B
Plaintext
Raw Normal View History

# 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
2010-03-01 18:03:05 +01:00
# Depends on: apache libxml2
2006-02-23 16:26:10 +01:00
name=mod_php
2012-06-16 09:05:20 +02:00
version=5.3.14
2008-12-05 11:37:26 +01:00
release=1
source=(http://www.php.net/distributions/php-$version.tar.bz2)
2006-02-23 16:26:10 +01:00
build () {
cd php-$version
2012-04-26 16:52:30 +02:00
local APXS
APXS=$(which apxs) || APXS='/usr/sbin/apxs'
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 \
2008-05-07 21:03:08 +02:00
--disable-static --disable-debug --without-pear"
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
2012-04-26 16:52:30 +02:00
--with-apxs2=$APXS \
--disable-cli
2006-02-23 16:26:10 +01:00
make
install -D -m 755 libs/libphp5.so $PKG/usr/lib/apache/libphp5.so
2006-02-23 16:26:10 +01:00
}