ladybird/Ports/php/package.sh

49 lines
1.2 KiB
Bash
Raw Normal View History

2021-06-04 02:59:23 +03:00
#!/usr/bin/env -S bash ../.port_include.sh
2022-06-03 21:27:29 +03:00
port='php'
useconfigure='true'
version='8.2.10'
2023-07-10 14:10:29 +03:00
files=(
"https://www.php.net/distributions/php-${version}.tar.xz#561dc4acd5386e47f25be76f2c8df6ae854756469159248313bcf276e282fbb3"
2023-07-10 14:10:29 +03:00
)
2022-11-24 13:30:20 +03:00
depends=(
2023-11-03 14:02:06 +03:00
'curl'
2022-11-24 13:30:20 +03:00
'libiconv'
'libxml2'
'openssl'
'readline'
'sqlite'
'zlib'
)
configopts=(
2022-11-24 13:30:20 +03:00
'--disable-cgi'
'--disable-opcache'
'--enable-fpm'
"--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
2023-11-03 14:02:06 +03:00
'--with-curl'
"--with-iconv=${SERENITY_INSTALL_ROOT}/usr/local"
2022-11-24 13:30:20 +03:00
'--with-openssl'
"--with-readline=${SERENITY_INSTALL_ROOT}/usr/local"
2022-11-24 13:30:20 +03:00
'--with-zlib'
'--without-pcre-jit'
)
2022-11-24 13:30:20 +03:00
launcher_name='PHP'
launcher_category='D&evelopment'
2022-11-24 13:30:20 +03:00
launcher_command='/usr/local/bin/php -a'
launcher_run_in_terminal='true'
icon_file='win32/build/php.ico'
2021-06-04 02:59:23 +03:00
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibCrypt -I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
2022-06-03 21:27:29 +03: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 23:48:04 +03:00
2022-06-03 21:27:29 +03:00
pre_configure() {
2022-03-29 23:48:04 +03:00
run ./buildconf --force
}