ladybird/Ports/php/package.sh

46 lines
1.2 KiB
Bash
Raw Normal View History

2021-06-03 23:59:23 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
2022-06-03 18:27:29 +00:00
port='php'
useconfigure='true'
2022-11-24 10:30:01 +00:00
version='8.1.12'
files="https://www.php.net/distributions/php-${version}.tar.xz php-${version}.tar.xz 08243359e2204d842082269eedc15f08d2eca726d0e65b93fb11f4bfc51bbbab"
2022-06-03 18:27:29 +00:00
auth_type='sha256'
2022-11-24 10:30:20 +00:00
depends=(
'libiconv'
'libxml2'
'openssl'
'readline'
'sqlite'
'zlib'
)
configopts=(
2022-11-24 10:30:20 +00:00
'--disable-cgi'
'--disable-opcache'
'--enable-fpm'
"--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"--with-iconv=${SERENITY_INSTALL_ROOT}/usr/local"
2022-11-24 10:30:20 +00:00
'--with-openssl'
"--with-readline=${SERENITY_INSTALL_ROOT}/usr/local"
2022-11-24 10:30:20 +00:00
'--with-zlib'
'--without-pcre-jit'
)
2022-11-24 10:30:20 +00:00
launcher_name='PHP'
launcher_category='Development'
launcher_command='/usr/local/bin/php -a'
launcher_run_in_terminal='true'
icon_file='win32/build/php.ico'
2021-06-03 23:59:23 +00:00
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibCrypt -I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
2022-06-03 18:27:29 +00:00
export LIBS='-ldl'
export LIBXML_CFLAGS='y'
export LIBXML_LIBS='-lxml2'
export OPENSSL_CFLAGS='y'
export OPENSSL_LIBS='-lssl -lcrypto'
export SQLITE_CFLAGS='y'
export SQLITE_LIBS='-lsqlite3 -lpthread'
export ZLIB_CFLAGS='y'
export ZLIB_LIBS='-lz'
2022-03-29 20:48:04 +00:00
2022-06-03 18:27:29 +00:00
pre_configure() {
2022-03-29 20:48:04 +00:00
run ./buildconf --force
}