wok-current view libxml2/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (8 weeks ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libxml2"
4 VERSION="2.9.14"
5 CATEGORY="system-tools"
6 SHORT_DESC="XML C parser and toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://xmlsoft.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNOME_MIRROR/libxml2/${VERSION%.*}/$TARBALL"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="autoconf automake libtool python-dev zlib-dev"
17 HOST_ARCH="i486 arm"
19 # When cross compiling Python is installed in chroot and is used
20 # by cross tools, cook dont need to install it in /usr/cross/arm
21 # Building with LZMA support is buggy and build fails
22 case "$ARCH" in
23 arm)
24 BUILD_DEPENDS=""
25 ARCH_ARGS="--without-lzma" ;;
26 esac
28 # What is the latest version available today?
29 current_version()
30 {
31 wget -O - "https://gitlab.gnome.org/GNOME/libxml2/-/tags/?sort=updated_desc" 2>/dev/null | \
32 sed '/item-title/!d;s|.*">v*||;s|<.*||;q'
33 }
35 # Rules to configure and make the package.
36 #
37 # Note: libxml2 can be build using option --with-minimum
38 # and binaries are splited into libxml2-tools
39 compile_rules()
40 {
41 # CVE-2024-25062
42 patch -p1 < $stuff/CVE-2024-25062.patch
44 autoreconf -fi &&
45 ./configure \
46 --prefix=/usr \
47 --infodir=/usr/share/info \
48 --mandir=/usr/share/man \
49 --with-html-dir=/usr/share/doc \
50 --with-threads \
51 --with-history \
52 $CONFIGURE_ARGS $ARCH_ARGS &&
53 make &&
54 make install DESTDIR=$DESTDIR
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib
61 cp -a $install/usr/lib/*.so* $fs/usr/lib
62 }