From e9b9242653897094d1323f2af9bd804647f73719 Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 1 Oct 2024 18:37:38 -0300 Subject: [PATCH] ports: libxml --- recipes/libxml | 15 +++++++++++++++ source-recipes/libxml | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 recipes/libxml create mode 100644 source-recipes/libxml diff --git a/recipes/libxml b/recipes/libxml new file mode 100644 index 00000000..4cdf61e4 --- /dev/null +++ b/recipes/libxml @@ -0,0 +1,15 @@ +name=libxml +revision=1 +from_source=libxml +imagedeps="base-devel" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base zlib" + +build() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --without-python --disable-static --with-threads --disable-ipv6 + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/source-recipes/libxml b/source-recipes/libxml new file mode 100644 index 00000000..5e6157bc --- /dev/null +++ b/source-recipes/libxml @@ -0,0 +1,9 @@ +name=libxml +version=2.10.0 +source_method=tarball +tarball_url="https://gitlab.gnome.org/GNOME/libxml2/-/archive/v${version}/libxml2-v${version}.tar.gz" +tarball_sha512="eb0cef809e189eafb948c313bd82dd49a0871f0b664f5891dd891f46579c48a0929e1d2144f4286e0ac858463e6726e4a7d446678a006f0b299e1f83bb20e98b" +hostdeps="autoconf automake pkgconfig libtool" +regenerate() { + autoreconf -fvi +}