wok-next view libxml2/receipt @ rev 20523

libnsgif: add missing stuff
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 23 15:16:45 2018 +0200 (2018-03-23)
parents 9610a0d739a2
children 5841522533ec
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libxml2"
4 VERSION="2.9.4"
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/stable/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"
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 # autoreconf -fi
30 ./configure \
31 --disable-static \
32 --with-html-dir=/usr/share/doc \
33 --with-threads \
34 --with-history \
35 $CONFIGURE_ARGS $ARCH_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
39 find $install -name '*.sh' -exec chmod +x \{\} \;
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 libxml2)
45 copy libxml2.so*
46 DEPENDS="liblzma zlib"
47 case "$ARCH" in
48 arm) DEPENDS="zlib" ;;
49 esac
50 ;;
51 libxml2-tools)
52 copy xmllint xmlcatalog
53 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
54 DEPENDS="liblzma libxml2 ncurses readline zlib"
55 ;;
56 libxml2-python)
57 copy python2.7/; find $fs -name '*.la' -delete
58 CAT="development|adapter for the Python"
59 DEPENDS="liblzma libxml2 python zlib libxslt"
60 ;;
61 libxml2-dev)
62 copy @dev *.sh
63 DEPENDS="xz-dev zlib-dev libxml2-tools"
64 ;;
65 esac
66 }