ladybird/Ports/libxml2/package.sh

18 lines
808 B
Bash
Raw Normal View History

2021-06-04 15:47:17 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
port=libxml2
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
depends=("libiconv" "xz")
configopts=("--with-sysroot=${SERENITY_INSTALL_ROOT}" "--prefix=/usr/local" "--without-python")
2021-06-04 15:47:17 +00:00
install() {
run make DESTDIR="${SERENITY_INSTALL_ROOT}" install
2021-06-04 15:47:17 +00:00
# Link shared library
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
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.la
2021-06-04 15:47:17 +00:00
}