wok-next annotate libxml2/receipt @ rev 19590

Synchronize my host updates with the wok-next...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 21 11:59:37 2017 +0200 (2017-01-21)
parents f6332424127f
children 4550df96633d
rev   line source
pankso@24 1 # SliTaz package receipt.
pankso@24 2
pankso@24 3 PACKAGE="libxml2"
al@19590 4 VERSION="2.9.4"
pankso@211 5 CATEGORY="system-tools"
pankso@24 6 SHORT_DESC="Libxml2 is the XML C parser and toolkit."
pankso@24 7 MAINTAINER="pankso@slitaz.org"
pascal@15268 8 LICENSE="MIT"
pankso@24 9 WEB_SITE="http://xmlsoft.org/"
pankso@13368 10 HOST_ARCH="i486 arm"
pankso@13368 11
al@19590 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19590 13 WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
al@19590 14
al@19590 15 DEPENDS="zlib liblzma"
al@19590 16 BUILD_DEPENDS="zlib-dev liblzma-dev python-dev ncurses-dev readline-dev"
al@19590 17 # autoconf automake libtool
al@19590 18 SPLIT="libxml2-tools libxml2-python libxml2-dev"
pankso@12817 19
pankso@13368 20 # When cross compiling Python is installed in chroot and is used
pankso@13368 21 # by cross tools, cook dont need to install it in /usr/cross/arm
pankso@15944 22 # Building with LZMA support is buggy and build fails
pankso@13368 23 case "$ARCH" in
pankso@15944 24 arm)
al@19590 25 BUILD_DEPENDS=""
al@19590 26 DEPENDS="zlib"
pankso@15944 27 ARCH_ARGS="--without-lzma" ;;
pankso@13368 28 esac
pankso@13368 29
pankso@24 30 # Rules to configure and make the package.
pankso@24 31 #
pankso@24 32 # Note: libxml2 can be build using option --with-minimum
pankso@4828 33 # and binaries are splited into libxml2-tools
pankso@24 34 compile_rules()
pankso@24 35 {
al@19590 36 # autoreconf -fi
pankso@24 37 ./configure \
al@19590 38 --disable-static \
slaxemulator@13174 39 --with-html-dir=/usr/share/doc \
slaxemulator@13174 40 --with-threads \
slaxemulator@13174 41 --with-history \
pankso@15944 42 $CONFIGURE_ARGS $ARCH_ARGS &&
slaxemulator@13174 43 make &&
al@19590 44 make DESTDIR=$DESTDIR install
al@19590 45
al@19590 46 find $install -name '*.sh' -exec chmod +x \{\} \;
pankso@24 47 }
pankso@24 48
pankso@24 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@24 50 genpkg_rules()
pankso@24 51 {
al@19590 52 cook_copy_files libxml2.so*
pankso@24 53 }