wok-next view libxml2/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | 4550df96633d |
children | 0e7893ac206d |
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 HOST_ARCH="i486 arm"
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 BUILD_DEPENDS_arm=" "
17 SPLIT="libxml2-tools libxml2-python libxml2-dev"
19 # When cross compiling Python is installed in chroot and is used
20 # by cross tools, cook don't need to install it in /usr/cross/arm
21 # Building with LZMA support is buggy and build fails
22 case "$ARCH" in
23 arm) ARCH_ARGS="--without-lzma" ;;
24 esac
26 # Rules to configure and make the package.
27 #
28 # Note: libxml2 can be build using option --with-minimum
29 # and binaries are splited into libxml2-tools
30 compile_rules()
31 {
32 # autoreconf -fi
33 ./configure \
34 --disable-static \
35 --with-html-dir=/usr/share/doc \
36 --with-threads \
37 --with-history \
38 $CONFIGURE_ARGS $ARCH_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
42 find $install -name '*.sh' -exec chmod +x \{\} \;
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 case $PACKAGE in
49 libxml2)
50 copy libxml2.so*
51 DEPENDS="zlib liblzma"
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 ;;
60 libxml2-python)
61 copy python2.7/; find $fs -name '*.la' -delete
62 CAT="development|adapter for the Python"
63 DEPENDS="python libxml2 libxslt"
64 ;;
65 libxml2-dev)
66 copy @dev *.sh
67 DEPENDS="libxml2-tools pkg-config zlib-dev liblzma-dev"
68 ;;
69 esac
70 }