wok annotate libxml2/receipt @ rev 24133

Up tazinst (115)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 15:17:56 2021 +0000 (2021-10-23)
parents 1394632bbfa7
children bc2b9d9bed6f
rev   line source
pankso@24 1 # SliTaz package receipt.
pankso@24 2
pankso@24 3 PACKAGE="libxml2"
Hans-G?nter@23124 4 VERSION="2.9.10"
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@24074 28 current_version()
pascal@24074 29 {
pascal@24074 30 wget -O - $WEB_SITE/news.html 2>/dev/null | \
pascal@24074 31 sed '/<h3>v/!d;s|.*<h3>v||;s|:.*||;q'
pascal@24074 32 }
pascal@24074 33
pankso@24 34 # Rules to configure and make the package.
pankso@24 35 #
pankso@24 36 # Note: libxml2 can be build using option --with-minimum
pankso@4828 37 # and binaries are splited into libxml2-tools
pankso@24 38 compile_rules()
pankso@24 39 {
Hans-G?nter@23124 40 autoreconf -fi &&
Hans-G?nter@21352 41 ./configure \
Hans-G?nter@21352 42 --prefix=/usr \
Hans-G?nter@21352 43 --infodir=/usr/share/info \
Hans-G?nter@21352 44 --mandir=/usr/share/man \
Hans-G?nter@21352 45 --with-html-dir=/usr/share/doc \
Hans-G?nter@21352 46 --with-threads \
Hans-G?nter@21352 47 --with-history \
pankso@15944 48 $CONFIGURE_ARGS $ARCH_ARGS &&
Hans-G?nter@21352 49 make -j 1 &&
pascal@15270 50 make DESTDIR=$DESTDIR install 2>&1 | grep -v "can't stat './..html':"
pankso@24 51 }
pankso@24 52
pankso@24 53 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@24 54 genpkg_rules()
pankso@24 55 {
pankso@24 56 mkdir -p $fs/usr/lib
Hans-G?nter@23124 57 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@24 58 }