wok-next view libxml2/receipt @ rev 19590

Synchronize my host updates with the wok-next...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 21 11:59:37 2017 +0200 (2017-01-21)
parents f6332424127f
children 4550df96633d
line source
1 # SliTaz package receipt.
3 PACKAGE="libxml2"
4 VERSION="2.9.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Libxml2 is the XML C parser and toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://xmlsoft.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
15 DEPENDS="zlib liblzma"
16 BUILD_DEPENDS="zlib-dev liblzma-dev python-dev ncurses-dev readline-dev"
17 # autoconf automake libtool
18 SPLIT="libxml2-tools libxml2-python libxml2-dev"
20 # When cross compiling Python is installed in chroot and is used
21 # by cross tools, cook dont need to install it in /usr/cross/arm
22 # Building with LZMA support is buggy and build fails
23 case "$ARCH" in
24 arm)
25 BUILD_DEPENDS=""
26 DEPENDS="zlib"
27 ARCH_ARGS="--without-lzma" ;;
28 esac
30 # Rules to configure and make the package.
31 #
32 # Note: libxml2 can be build using option --with-minimum
33 # and binaries are splited into libxml2-tools
34 compile_rules()
35 {
36 # autoreconf -fi
37 ./configure \
38 --disable-static \
39 --with-html-dir=/usr/share/doc \
40 --with-threads \
41 --with-history \
42 $CONFIGURE_ARGS $ARCH_ARGS &&
43 make &&
44 make DESTDIR=$DESTDIR install
46 find $install -name '*.sh' -exec chmod +x \{\} \;
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cook_copy_files libxml2.so*
53 }