wok-next annotate libxml2/receipt @ rev 20990

Remove mate116 stash
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 02 22:23:34 2018 +0300 (2018-10-02)
parents 5841522533ec
children d5aab818505e
rev   line source
al@19735 1 # SliTaz package receipt v2.
pankso@24 2
pankso@24 3 PACKAGE="libxml2"
al@20905 4 VERSION="2.9.8"
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@20905 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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@20905 17 SPLIT="libxml2-tools libxml2-python libxml2-dev libxml2-min:min"
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@20905 29 case $SET in
al@20905 30 min) SET_ARGS='--with-minimum';;
al@20905 31 esac
al@20905 32
al@20443 33 # autoreconf -fi
pankso@24 34 ./configure \
al@19590 35 --disable-static \
slaxemulator@13174 36 --with-html-dir=/usr/share/doc \
slaxemulator@13174 37 --with-threads \
slaxemulator@13174 38 --with-history \
al@20905 39 $CONFIGURE_ARGS $ARCH_ARGS $SET_ARGS &&
al@20595 40 fix libtool &&
slaxemulator@13174 41 make &&
al@20595 42 make DESTDIR=$DESTDIR install || return 1
al@19590 43
al@19590 44 find $install -name '*.sh' -exec chmod +x \{\} \;
pankso@24 45 }
pankso@24 46
al@20443 47 genpkg_rules() {
al@19735 48 case $PACKAGE in
al@19735 49 libxml2)
al@19735 50 copy libxml2.so*
al@20443 51 DEPENDS="liblzma zlib"
al@19735 52 case "$ARCH" in
al@19735 53 arm) DEPENDS="zlib" ;;
al@19735 54 esac
al@19735 55 ;;
al@19735 56 libxml2-tools)
al@19735 57 copy xmllint xmlcatalog
al@19735 58 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
al@20905 59 DEPENDS="libxml2 readline"
al@19735 60 ;;
al@19735 61 libxml2-python)
al@19735 62 copy python2.7/; find $fs -name '*.la' -delete
al@19735 63 CAT="development|adapter for the Python"
al@20905 64 DEPENDS="libxml2 python" # libxslt
al@19735 65 ;;
al@19735 66 libxml2-dev)
al@19735 67 copy @dev *.sh
al@20443 68 DEPENDS="xz-dev zlib-dev libxml2-tools"
al@19735 69 ;;
al@20905 70 libxml2-min)
al@20905 71 copy libxml2.so*
al@20905 72 CAT="system-tools|minimally sized library"
al@20905 73 DEPENDS="liblzma"
al@20905 74 ;;
al@19735 75 esac
pankso@24 76 }