wok-next view libxml2/receipt @ rev 21036

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 06 14:32:27 2018 +0200 (2018-11-06)
parents e7a485521d6a
children 7c5d038be95b
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="devel@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="zlib-dev xz-dev python-dev ncurses-dev readline-dev"
16 SPLIT="$PACKAGE-tools $PACKAGE-python $PACKAGE-dev $PACKAGE-min:min"
18 # Note: libxml2 can be build using option --with-minimum
19 # and binaries are splited into libxml2-tools
20 compile_rules() {
21 case $SET in
22 min) SET_ARGS='--with-minimum';;
23 esac
25 # autoreconf -fi
26 ./configure \
27 --disable-static \
28 --with-html-dir=/usr/share/doc \
29 --with-threads \
30 --with-history \
31 $CONFIGURE_ARGS $SET_ARGS &&
32 fix libtool &&
33 make &&
34 make DESTDIR=$install install || return 1
36 find $install -name '*.sh' -exec chmod +x \{\} \;
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 libxml2)
42 copy libxml2.so*
43 DEPENDS="liblzma zlib"
44 ;;
45 libxml2-tools)
46 copy xmllint xmlcatalog
47 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
48 DEPENDS="libxml2 readline"
49 ;;
50 libxml2-python)
51 copy python2.7/; find $fs -name '*.la' -delete
52 CAT="development|adapter for the Python"
53 DEPENDS="libxml2 python" # libxslt
54 ;;
55 libxml2-dev)
56 copy @dev *.sh
57 DEPENDS="xz-dev zlib-dev libxml2-tools"
58 ;;
59 libxml2-min)
60 copy libxml2.so*
61 CAT="system-tools|minimally sized library"
62 DEPENDS="liblzma"
63 ;;
64 esac
65 }