Ports/php: Update php to version 8.1.6

This commit is contained in:
EWouters 2022-06-03 20:27:29 +02:00 committed by Linus Groh
parent e26d0a9c9f
commit a9e9b55380
2 changed files with 17 additions and 30 deletions

View file

@ -175,7 +175,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`pcre`](pcre/) | Perl-compatible Regular Expressions (PCRE) | 8.45 | https://www.pcre.org/ |
| [`pcre2`](pcre2/) | Perl-compatible Regular Expressions (PCRE2) | 10.40 | https://www.pcre.org/ |
| [`pfetch`](pfetch/) | pfetch | a906ff8 | https://github.com/dylanaraps/pfetch/ |
| [`php`](php/) | PHP | 8.1.4 | https://www.php.net/ |
| [`php`](php/) | PHP | 8.1.6 | https://www.php.net/ |
| [`pkgconf`](pkgconf/) | pkgconf | 1.8.0 | https://github.com/pkgconf/pkgconf |
| [`powdertoy`](powdertoy/) | The Powder Toy | 96.2.350 | https://powdertoy.co.uk/ |
| [`printf`](printf/) | printf (OpenBSD) | 6.6 | https://github.com/ibara/libpuffy |

View file

@ -1,9 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=php
useconfigure="true"
version="8.1.4"
files="https://www.php.net/distributions/php-${version}.tar.xz php-${version}.tar.xz 05a8c0ac30008154fb38a305560543fc172ba79fb957084a99b8d3b10d5bdb4b"
auth_type=sha256
port='php'
useconfigure='true'
version='8.1.6'
files="https://www.php.net/distributions/php-${version}.tar.xz php-${version}.tar.xz da38d65bb0d5dd56f711cd478204f2b62a74a2c2b0d2d523a78d6eb865b2364c"
auth_type='sha256'
depends=("libiconv" "libxml2" "openssl" "readline" "sqlite" "zlib")
configopts=(
"--disable-cgi"
@ -22,30 +22,17 @@ launcher_command="/usr/local/bin/php -a"
launcher_run_in_terminal="true"
icon_file="win32/build/php.ico"
pre_configure() {
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
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"
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
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'
pre_configure() {
run ./buildconf --force
}
post_configure() {
unset ZLIB_LIBS
unset ZLIB_CFLAGS
unset SQLITE_LIBS
unset SQLITE_CFLAGS
unset OPENSSL_LIBS
unset OPENSSL_CFLAGS
unset LIBXML_LIBS
unset LIBS
unset LIBXML_CFLAGS
unset CFLAGS
}