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'
|
2023-09-02 01:00:54 +03:00
|
|
|
version='8.2.10'
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-09-02 01:00:54 +03:00
|
|
|
"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'
|
|
|
|
)
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=(
|
2022-11-24 13:30:20 +03:00
|
|
|
'--disable-cgi'
|
|
|
|
'--disable-opcache'
|
|
|
|
'--enable-fpm'
|
2021-09-27 01:16:18 +03:00
|
|
|
"--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
2023-11-03 14:02:06 +03:00
|
|
|
'--with-curl'
|
2021-09-27 01:16:18 +03:00
|
|
|
"--with-iconv=${SERENITY_INSTALL_ROOT}/usr/local"
|
2022-11-24 13:30:20 +03:00
|
|
|
'--with-openssl'
|
2021-09-27 01:16:18 +03:00
|
|
|
"--with-readline=${SERENITY_INSTALL_ROOT}/usr/local"
|
2022-11-24 13:30:20 +03:00
|
|
|
'--with-zlib'
|
|
|
|
'--without-pcre-jit'
|
2021-09-27 01:16:18 +03:00
|
|
|
)
|
2022-11-24 13:30:20 +03:00
|
|
|
launcher_name='PHP'
|
2024-01-03 22:40:21 +03:00
|
|
|
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
|
|
|
|
2022-11-24 13:25:52 +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
|
2022-01-08 02:12:42 +03:00
|
|
|
}
|