summaryrefslogtreecommitdiff
path: root/mod_php/Pkgfile
blob: 38ca5bbec45a2732853a15f448cd7f37d019270f (plain)
    1 # Description: PHP DSO module for apache 
    2 # URL:         https://www.php.net
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  apache libpcre2
    5 
    6 name=mod_php
    7 version=7.4.15
    8 release=1
    9 source=(https://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-external-pcre \
   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/libphp7.so $PKG/usr/lib/apache/libphp7.so
   39 }

Generated by cgit