wok-next view libxml2/receipt @ rev 20905

Update packages from ISO and LFS backages (all but toolchain)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 07 00:30:45 2018 +0300 (2018-08-07)
parents 5841522533ec
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libxml2"
4 VERSION="2.9.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="XML C parser and toolkit"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://xmlsoft.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
15 BUILD_DEPENDS_arm=" "
16 BUILD_DEPENDS="zlib-dev xz-dev python-dev ncurses-dev readline-dev"
17 SPLIT="libxml2-tools libxml2-python libxml2-dev libxml2-min:min"
19 # Note: libxml2 can be build using option --with-minimum
20 # and binaries are splited into libxml2-tools
21 compile_rules() {
22 # When cross compiling Python is installed in chroot and is used
23 # by cross tools, cook don't need to install it in /usr/cross/arm
24 # Building with LZMA support is buggy and build fails
25 case "$ARCH" in
26 arm) ARCH_ARGS="--without-lzma" ;;
27 esac
29 case $SET in
30 min) SET_ARGS='--with-minimum';;
31 esac
33 # autoreconf -fi
34 ./configure \
35 --disable-static \
36 --with-html-dir=/usr/share/doc \
37 --with-threads \
38 --with-history \
39 $CONFIGURE_ARGS $ARCH_ARGS $SET_ARGS &&
40 fix libtool &&
41 make &&
42 make DESTDIR=$DESTDIR install || return 1
44 find $install -name '*.sh' -exec chmod +x \{\} \;
45 }
47 genpkg_rules() {
48 case $PACKAGE in
49 libxml2)
50 copy libxml2.so*
51 DEPENDS="liblzma zlib"
52 case "$ARCH" in
53 arm) DEPENDS="zlib" ;;
54 esac
55 ;;
56 libxml2-tools)
57 copy xmllint xmlcatalog
58 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
59 DEPENDS="libxml2 readline"
60 ;;
61 libxml2-python)
62 copy python2.7/; find $fs -name '*.la' -delete
63 CAT="development|adapter for the Python"
64 DEPENDS="libxml2 python" # libxslt
65 ;;
66 libxml2-dev)
67 copy @dev *.sh
68 DEPENDS="xz-dev zlib-dev libxml2-tools"
69 ;;
70 libxml2-min)
71 copy libxml2.so*
72 CAT="system-tools|minimally sized library"
73 DEPENDS="liblzma"
74 ;;
75 esac
76 }