wok-next annotate libxml2/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents 9610a0d739a2
children 5841522533ec
rev   line source
al@19735 1 # SliTaz package receipt v2.
pankso@24 2
pankso@24 3 PACKAGE="libxml2"
al@19590 4 VERSION="2.9.4"
pankso@211 5 CATEGORY="system-tools"
al@19735 6 SHORT_DESC="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/"
al@20443 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libxml2.html"
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@20443 15 BUILD_DEPENDS_arm=" "
al@19752 16 BUILD_DEPENDS="zlib-dev xz-dev python-dev ncurses-dev readline-dev"
al@19590 17 SPLIT="libxml2-tools libxml2-python libxml2-dev"
pankso@12817 18
pankso@24 19 # Note: libxml2 can be build using option --with-minimum
pankso@4828 20 # and binaries are splited into libxml2-tools
al@20443 21 compile_rules() {
al@20443 22 # When cross compiling Python is installed in chroot and is used
al@20443 23 # by cross tools, cook don't need to install it in /usr/cross/arm
al@20443 24 # Building with LZMA support is buggy and build fails
al@20443 25 case "$ARCH" in
al@20443 26 arm) ARCH_ARGS="--without-lzma" ;;
al@20443 27 esac
al@20443 28
al@20443 29 # autoreconf -fi
pankso@24 30 ./configure \
al@19590 31 --disable-static \
slaxemulator@13174 32 --with-html-dir=/usr/share/doc \
slaxemulator@13174 33 --with-threads \
slaxemulator@13174 34 --with-history \
pankso@15944 35 $CONFIGURE_ARGS $ARCH_ARGS &&
slaxemulator@13174 36 make &&
al@19590 37 make DESTDIR=$DESTDIR install
al@19590 38
al@19590 39 find $install -name '*.sh' -exec chmod +x \{\} \;
pankso@24 40 }
pankso@24 41
al@20443 42 genpkg_rules() {
al@19735 43 case $PACKAGE in
al@19735 44 libxml2)
al@19735 45 copy libxml2.so*
al@20443 46 DEPENDS="liblzma zlib"
al@19735 47 case "$ARCH" in
al@19735 48 arm) DEPENDS="zlib" ;;
al@19735 49 esac
al@19735 50 ;;
al@19735 51 libxml2-tools)
al@19735 52 copy xmllint xmlcatalog
al@19735 53 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
al@20443 54 DEPENDS="liblzma libxml2 ncurses readline zlib"
al@19735 55 ;;
al@19735 56 libxml2-python)
al@19735 57 copy python2.7/; find $fs -name '*.la' -delete
al@19735 58 CAT="development|adapter for the Python"
al@20443 59 DEPENDS="liblzma libxml2 python zlib libxslt"
al@19735 60 ;;
al@19735 61 libxml2-dev)
al@19735 62 copy @dev *.sh
al@20443 63 DEPENDS="xz-dev zlib-dev libxml2-tools"
al@19735 64 ;;
al@19735 65 esac
pankso@24 66 }