summaryrefslogtreecommitdiff
path: root/Ports/libxml2/package.sh
blob: dfc4bed575218fd5ff25c621ebf5d3f3d6a3741d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}