2021-06-04 15:47:17 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=libxml2
|
2022-04-01 01:45:01 +00:00
|
|
|
version=2.9.13
|
|
|
|
useconfigure=true
|
|
|
|
use_fresh_config_sub=true
|
|
|
|
files="https://download.gnome.org/sources/libxml2/2.9/libxml2-${version}.tar.xz libxml2-${version}.tar.xz 276130602d12fe484ecc03447ee5e759d0465558fbc9d6bd144e3745306ebf0e"
|
2021-06-04 15:47:17 +00:00
|
|
|
auth_type=sha256
|
2021-09-26 22:16:18 +00:00
|
|
|
depends=("libiconv" "xz")
|
2022-04-29 23:13:14 +00:00
|
|
|
configopts=("--with-sysroot=${SERENITY_INSTALL_ROOT}" "--prefix=/usr/local" "--without-python")
|
2021-06-04 15:47:17 +00:00
|
|
|
|
|
|
|
install() {
|
2022-04-29 23:13:14 +00:00
|
|
|
run make DESTDIR="${SERENITY_INSTALL_ROOT}" install
|
2021-06-04 15:47:17 +00:00
|
|
|
|
|
|
|
# Link shared library
|
2021-08-14 09:26:52 +00:00
|
|
|
run ${SERENITY_ARCH}-pc-serenity-gcc -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.so -Wl,-soname,libxml2.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.a -Wl,--no-whole-archive -llzma
|
2021-08-14 09:27:58 +00:00
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.la
|
2021-06-04 15:47:17 +00:00
|
|
|
}
|