wok-current view libxml2/receipt @ rev 25267
Update some deps using gcc83-lib-base
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 17 08:24:48 2022 +0000 (2022-07-17) |
parents | bc2b9d9bed6f |
children | 3ad63c8fc2f9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libxml2"
4 VERSION="2.9.12"
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.gz"
12 WGET_URL="ftp://xmlsoft.org/libxml2/$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 autoreconf -fi &&
42 ./configure \
43 --prefix=/usr \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 --with-html-dir=/usr/share/doc \
47 --with-threads \
48 --with-history \
49 $CONFIGURE_ARGS $ARCH_ARGS &&
50 make &&
51 make install DESTDIR=$DESTDIR
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/lib
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 }