mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-28 02:20:05 +00:00
85 lines
2.0 KiB
Plaintext
85 lines
2.0 KiB
Plaintext
# description : PHP interpreter, extension modules and support stuff
|
|
# homepage : https://www.php.net
|
|
# depends : tidy oniguruma openssl bzip2 krb5 enchant pcre2 libxml2 curl db gdbm libpng argon2 libzip
|
|
|
|
name=php
|
|
version=8.2.10
|
|
release=1
|
|
source=https://php.net/distributions/php-$version.tar.xz
|
|
|
|
bsdtar() { tar $@; }
|
|
|
|
build() {
|
|
cd php-$version
|
|
|
|
PHP_CONFIG="
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--with-config-file-path=/etc/php \
|
|
--with-config-file-scan-dir=/etc/php/conf.d \
|
|
--with-zlib \
|
|
--with-external-pcre \
|
|
--disable-static --disable-debug \
|
|
"
|
|
|
|
PHP_SHARED="
|
|
--enable-bcmath=shared \
|
|
--enable-calendar=shared \
|
|
--enable-dba=shared \
|
|
--enable-exif=shared \
|
|
--enable-ftp=shared \
|
|
--enable-gd=shared \
|
|
--enable-intl=shared \
|
|
--enable-mbstring \
|
|
--enable-pcntl \
|
|
--enable-shmop=shared \
|
|
--enable-soap=shared \
|
|
--enable-sockets=shared \
|
|
--enable-sysvmsg=shared \
|
|
--enable-sysvsem=shared \
|
|
--enable-sysvshm=shared \
|
|
--with-bz2=shared \
|
|
--with-curl=shared \
|
|
--with-db4=/usr \
|
|
--with-enchant=shared \
|
|
--with-external-pcre \
|
|
--with-ffi=shared \
|
|
--with-gdbm \
|
|
--with-gettext=shared \
|
|
--with-gmp=shared \
|
|
--with-iconv=shared \
|
|
--with-mhash \
|
|
--with-mysql-sock=/run/mysqld/mysqld.sock \
|
|
--with-mysqli=shared,mysqlnd \
|
|
--with-openssl \
|
|
--with-password-argon2 \
|
|
--with-pdo-mysql=shared,mysqlnd \
|
|
--with-pdo-sqlite=shared \
|
|
--with-readline \
|
|
--with-openssl \
|
|
--with-sqlite3=shared \
|
|
--with-tidy=shared \
|
|
--with-xsl=shared \
|
|
--with-zip=shared \
|
|
--with-zlib \
|
|
"
|
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
./configure \
|
|
$PHP_CONFIG \
|
|
$PHP_SHARED \
|
|
--enable-cli \
|
|
--disable-cgi \
|
|
--with-readline
|
|
|
|
make
|
|
make INSTALL_ROOT=$PKG install
|
|
ln -sf phar.phar $PKG/usr/bin/phar
|
|
|
|
sed -i '/^extension_dir/s|=.*$|= "/usr/lib/php/extensions"|' php.ini-*
|
|
install -d $PKG/etc/php/conf.d
|
|
install -m 644 php.ini-* $PKG/etc/php
|
|
|
|
}
|