opt/mod_php/Pkgfile

40 lines
1019 B
Plaintext
Raw Normal View History

# Description: PHP DSO module for apache
2020-06-06 13:00:05 +02:00
# URL: https://www.php.net
# Maintainer: Juergen Daubert, jue at crux dot nu
2019-12-08 14:59:58 +01:00
# Depends on: apache libpcre2
name=mod_php
version=7.4.18
release=1
2020-06-06 13:00:05 +02:00
source=(https://php.net/distributions/php-$version.tar.xz)
build () {
cd php-$version
2014-08-19 12:38:47 +02:00
# to be compatible with our other php ports, don't build
# for a threaded MPM (ZTS). Use only the prefork MPM!
sed -i '/APACHE_THREADED_MPM=/d' configure
local APXS
2014-08-19 12:38:47 +02:00
APXS=$(which apxs) || APXS='/usr/bin/apxs'
local PHP_CONFIG="
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--with-zlib \
2020-02-15 14:01:36 +01:00
--with-external-pcre \
--disable-static --disable-debug \
--without-sqlite3 --without-pdo-sqlite \
--without-pear"
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
--with-apxs2=$APXS \
--disable-cli
make
2018-03-30 12:50:47 +02:00
install -D -m 755 libs/libphp7.so $PKG/usr/lib/apache/libphp7.so
}