1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:47:45 +00:00

Ports: Add libxml2

This commit is contained in:
Jelle Raaijmakers 2021-06-04 17:47:17 +02:00 committed by Andreas Kling
parent 60298121d8
commit 93e605e415
4 changed files with 41 additions and 0 deletions

16
Ports/libxml2/package.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=libxml2
useconfigure="true"
version="2.9.12"
files="ftp://xmlsoft.org/libxml2/libxml2-${version}.tar.gz libxml2-${version}.tar.gz c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92"
auth_type=sha256
depends="libiconv"
configopts="--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
install() {
# Leave out DESTDIR - otherwise the prefix breaks
run make install
# 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
}