wok-next annotate libxml2/receipt @ rev 20663

Fix web site for the Shimmer Project themes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 22:58:32 2018 +0300 (2018-05-10)
parents 0e7893ac206d
children e7a485521d6a
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 &&
al@20595 36 fix libtool &&
slaxemulator@13174 37 make &&
al@20595 38 make DESTDIR=$DESTDIR install || return 1
al@19590 39
al@19590 40 find $install -name '*.sh' -exec chmod +x \{\} \;
pankso@24 41 }
pankso@24 42
al@20443 43 genpkg_rules() {
al@19735 44 case $PACKAGE in
al@19735 45 libxml2)
al@19735 46 copy libxml2.so*
al@20443 47 DEPENDS="liblzma zlib"
al@19735 48 case "$ARCH" in
al@19735 49 arm) DEPENDS="zlib" ;;
al@19735 50 esac
al@19735 51 ;;
al@19735 52 libxml2-tools)
al@19735 53 copy xmllint xmlcatalog
al@19735 54 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
al@20443 55 DEPENDS="liblzma libxml2 ncurses readline zlib"
al@19735 56 ;;
al@19735 57 libxml2-python)
al@19735 58 copy python2.7/; find $fs -name '*.la' -delete
al@19735 59 CAT="development|adapter for the Python"
al@20443 60 DEPENDS="liblzma libxml2 python zlib libxslt"
al@19735 61 ;;
al@19735 62 libxml2-dev)
al@19735 63 copy @dev *.sh
al@20443 64 DEPENDS="xz-dev zlib-dev libxml2-tools"
al@19735 65 ;;
al@19735 66 esac
pankso@24 67 }