2008-05-07 19:41:47 +02:00
|
|
|
# Description: PHP interpreter, extension modules and support stuff
|
|
|
|
# URL: http://www.php.net
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2017-10-31 16:33:48 +01:00
|
|
|
# Depends on: libpcre libxml2 curl db gdbm
|
2008-05-07 19:41:47 +02:00
|
|
|
|
|
|
|
name=php
|
2018-06-02 13:00:38 +02:00
|
|
|
version=7.2.6
|
2008-12-05 11:35:30 +01:00
|
|
|
release=1
|
2014-09-19 13:27:01 +02:00
|
|
|
source=(http://php.net/distributions/php-$version.tar.xz)
|
2008-05-07 19:41:47 +02:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
|
|
|
|
|
|
|
local PHP_CONFIG="
|
2018-03-30 12:49:11 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2008-05-07 19:41:47 +02:00
|
|
|
--with-config-file-path=/etc/php \
|
|
|
|
--with-config-file-scan-dir=/etc/php/conf.d \
|
2008-07-09 09:59:27 +02:00
|
|
|
--with-zlib \
|
2008-12-05 11:52:01 +01:00
|
|
|
--with-pcre-regex=/usr \
|
2013-02-25 13:00:36 +01:00
|
|
|
--disable-static --disable-debug \
|
|
|
|
--without-sqlite3 --without-pdo-sqlite \
|
|
|
|
--without-pear"
|
2008-05-07 19:41:47 +02:00
|
|
|
|
|
|
|
local PHP_SHARED="
|
|
|
|
--enable-dba=shared --with-gdbm --with-db4 \
|
|
|
|
--with-bz2=shared \
|
|
|
|
--with-curl=shared \
|
|
|
|
--with-openssl=shared \
|
2013-02-25 13:00:36 +01:00
|
|
|
--enable-zip=shared \
|
|
|
|
--enable-mbstring=shared"
|
2008-05-07 19:41:47 +02:00
|
|
|
|
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
|
|
./configure \
|
|
|
|
$PHP_CONFIG \
|
|
|
|
$PHP_SHARED \
|
|
|
|
--enable-cli \
|
|
|
|
--disable-cgi \
|
|
|
|
--with-readline
|
|
|
|
|
|
|
|
make
|
|
|
|
make -j1 INSTALL_ROOT=$PKG install
|
|
|
|
rm $PKG/usr/lib/php/extensions/*.a
|
2014-12-19 09:01:08 +01:00
|
|
|
ln -sf phar.phar $PKG/usr/bin/phar
|
2008-05-07 19:41:47 +02:00
|
|
|
|
2008-06-23 17:50:52 +02:00
|
|
|
sed -i '/^extension_dir/s|=.*$|= "/usr/lib/php/extensions"|' php.ini-*
|
2008-05-07 19:41:47 +02:00
|
|
|
install -d $PKG/etc/php/conf.d
|
|
|
|
install -m 644 php.ini-* $PKG/etc/php
|
2013-02-25 13:00:36 +01:00
|
|
|
|
|
|
|
# order matters !
|
|
|
|
printf 'extension=%s\n' {zip,bz2,curl,openssl,dba,mbstring}.so \
|
|
|
|
> $PKG/etc/php/conf.d/extensions.ini
|
2008-05-07 19:41:47 +02:00
|
|
|
}
|