mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
cdd6d68b2a
All of these patches did the same thing, which is already in upstream config.sub. With this change, we need only add `use_fresh_config_sub=true` to the package.sh file. Note that this is not done automatically in case the port has a modified config.sub file.
19 lines
794 B
Bash
Executable File
19 lines
794 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=libxml2
|
|
useconfigure="true"
|
|
use_fresh_config_sub="true"
|
|
version="2.9.12"
|
|
files="ftp://xmlsoft.org/libxml2/libxml2-${version}.tar.gz libxml2-${version}.tar.gz c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92"
|
|
auth_type=sha256
|
|
depends=("libiconv" "xz")
|
|
configopts=("--prefix=${SERENITY_INSTALL_ROOT}/usr/local" "--without-python")
|
|
|
|
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 -llzma
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.la
|
|
}
|