2021-06-04 01:59:23 +02:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=php
|
|
|
|
useconfigure="true"
|
2021-09-22 23:58:35 +02:00
|
|
|
version="8.0.10"
|
|
|
|
files="https://www.php.net/distributions/php-${version}.tar.xz php-${version}.tar.xz 66dc4d1bc86d9c1bc255b51b79d337ed1a7a035cf71230daabbf9a4ca35795eb"
|
2021-06-04 01:59:23 +02:00
|
|
|
auth_type=sha256
|
2021-07-29 15:01:52 +02:00
|
|
|
depends="libiconv libxml2 openssl readline sqlite zlib"
|
2021-06-04 01:59:23 +02:00
|
|
|
configopts="
|
2021-09-23 00:03:49 +02:00
|
|
|
--disable-cgi
|
2021-06-04 01:59:23 +02:00
|
|
|
--disable-opcache
|
2021-09-23 00:03:49 +02:00
|
|
|
--enable-fpm
|
2021-06-04 01:59:23 +02:00
|
|
|
--prefix=${SERENITY_INSTALL_ROOT}/usr/local
|
2021-06-04 13:01:54 +02:00
|
|
|
--with-iconv=${SERENITY_INSTALL_ROOT}/usr/local
|
2021-06-04 21:39:11 +02:00
|
|
|
--with-openssl
|
2021-07-29 15:01:52 +02:00
|
|
|
--with-readline=${SERENITY_INSTALL_ROOT}/usr/local
|
2021-06-04 20:42:46 +02:00
|
|
|
--with-zlib
|
2021-06-04 21:37:28 +02:00
|
|
|
--without-pcre-jit
|
2021-06-04 01:59:23 +02:00
|
|
|
"
|
2021-08-04 13:18:56 +02: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-04 01:59:23 +02:00
|
|
|
|
2021-07-29 15:01:59 +02:00
|
|
|
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
|
2021-06-04 01:59:23 +02:00
|
|
|
export LIBS="-ldl"
|
2021-06-04 17:48:32 +02:00
|
|
|
export LIBXML_CFLAGS="y"
|
|
|
|
export LIBXML_LIBS="-lxml2"
|
2021-06-04 21:39:11 +02:00
|
|
|
export OPENSSL_CFLAGS="y"
|
|
|
|
export OPENSSL_LIBS="-lssl -lcrypto"
|
2021-06-04 13:01:54 +02:00
|
|
|
export SQLITE_CFLAGS="y"
|
|
|
|
export SQLITE_LIBS="-lsqlite3 -lpthread"
|
2021-06-04 17:48:32 +02:00
|
|
|
export ZLIB_CFLAGS="y"
|
|
|
|
export ZLIB_LIBS="-lz"
|