wok annotate libxml2/receipt @ rev 24998

Up rp-pppoe (3.15)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 16 10:11:22 2022 +0000 (2022-05-16)
parents bc2b9d9bed6f
children
rev   line source
pankso@24 1 # SliTaz package receipt.
pankso@24 2
pankso@24 3 PACKAGE="libxml2"
Hans-G?nter@24852 4 VERSION="2.9.12"
pankso@211 5 CATEGORY="system-tools"
Hans-G?nter@21352 6 SHORT_DESC="XML C parser and toolkit."
pankso@24 7 MAINTAINER="pankso@slitaz.org"
pascal@15268 8 LICENSE="MIT"
Hans-G?nter@21352 9 WEB_SITE="http://xmlsoft.org/"
Hans-G?nter@21352 10
pankso@24 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@24 12 WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
pankso@13368 13
pascal@2475 14 DEPENDS="zlib"
Hans-G?nter@21352 15 BUILD_DEPENDS="autoconf automake libtool python-dev zlib-dev"
Hans-G?nter@21352 16
Hans-G?nter@21352 17 HOST_ARCH="i486 arm"
pankso@12817 18
pankso@13368 19 # When cross compiling Python is installed in chroot and is used
pankso@13368 20 # by cross tools, cook dont need to install it in /usr/cross/arm
pankso@15944 21 # Building with LZMA support is buggy and build fails
pankso@13368 22 case "$ARCH" in
pankso@15944 23 arm)
pankso@15944 24 BUILD_DEPENDS=""
pankso@15944 25 ARCH_ARGS="--without-lzma" ;;
pankso@13368 26 esac
pankso@13368 27
pascal@24614 28 # What is the latest version available today?
pascal@24074 29 current_version()
pascal@24074 30 {
pascal@24614 31 wget -O - "https://gitlab.gnome.org/GNOME/libxml2/-/tags/?sort=updated_desc" 2>/dev/null | \
pascal@24614 32 sed '/item-title/!d;s|.*">v*||;s|<.*||;q'
pascal@24074 33 }
pascal@24074 34
pankso@24 35 # Rules to configure and make the package.
pankso@24 36 #
pankso@24 37 # Note: libxml2 can be build using option --with-minimum
pankso@4828 38 # and binaries are splited into libxml2-tools
pankso@24 39 compile_rules()
pankso@24 40 {
Hans-G?nter@23124 41 autoreconf -fi &&
Hans-G?nter@21352 42 ./configure \
Hans-G?nter@21352 43 --prefix=/usr \
Hans-G?nter@21352 44 --infodir=/usr/share/info \
Hans-G?nter@21352 45 --mandir=/usr/share/man \
Hans-G?nter@21352 46 --with-html-dir=/usr/share/doc \
Hans-G?nter@21352 47 --with-threads \
Hans-G?nter@21352 48 --with-history \
pankso@15944 49 $CONFIGURE_ARGS $ARCH_ARGS &&
Hans-G?nter@24852 50 make &&
Hans-G?nter@24852 51 make install DESTDIR=$DESTDIR
pankso@24 52 }
pankso@24 53
pankso@24 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@24 55 genpkg_rules()
pankso@24 56 {
pankso@24 57 mkdir -p $fs/usr/lib
Hans-G?nter@23124 58 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@24 59 }