summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-04 17:48:32 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-04 19:10:58 +0200
commit18a5ac1e66a88eabe9725caeab6dbbe6246e37db (patch)
treea4232bd92d1eb46eb86cca9b877eea357fcb57c6 /Ports
parent93e605e415c0956ffcbcbc685191c0bb56e7249a (diff)
downloadserenity-18a5ac1e66a88eabe9725caeab6dbbe6246e37db.zip
Ports: Enable PHP XML extensions
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/php/package.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/Ports/php/package.sh b/Ports/php/package.sh
index c4ab945fc6..03d765d663 100755
--- a/Ports/php/package.sh
+++ b/Ports/php/package.sh
@@ -4,20 +4,19 @@ useconfigure="true"
version="8.0.6"
files="https://www.php.net/distributions/php-${version}.tar.xz php-${version}.tar.xz e9871d3b6c391fe9e89f86f6334852dcc10eeaaa8d5565beb8436e7f0cf30e20"
auth_type=sha256
-depends="libiconv sqlite"
+depends="libiconv libxml2 sqlite zlib"
configopts="
- --disable-dom
--disable-opcache
--disable-phar
- --disable-simplexml
- --disable-xml
- --disable-xmlreader
- --disable-xmlwriter
--prefix=${SERENITY_INSTALL_ROOT}/usr/local
--with-iconv=${SERENITY_INSTALL_ROOT}/usr/local
- --without-libxml
"
+export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2/"
export LIBS="-ldl"
+export LIBXML_CFLAGS="y"
+export LIBXML_LIBS="-lxml2"
export SQLITE_CFLAGS="y"
export SQLITE_LIBS="-lsqlite3 -lpthread"
+export ZLIB_CFLAGS="y"
+export ZLIB_LIBS="-lz"