wok-next view libxml2/receipt @ rev 20663

Fix web site for the Shimmer Project themes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 22:58:32 2018 +0300 (2018-05-10)
parents 0e7893ac206d
children e7a485521d6a
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 fix libtool &&
37 make &&
38 make DESTDIR=$DESTDIR install || return 1
40 find $install -name '*.sh' -exec chmod +x \{\} \;
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 libxml2)
46 copy libxml2.so*
47 DEPENDS="liblzma zlib"
48 case "$ARCH" in
49 arm) DEPENDS="zlib" ;;
50 esac
51 ;;
52 libxml2-tools)
53 copy xmllint xmlcatalog
54 CAT="system-tools|xmllint tester and xmlcatalog parser utility"
55 DEPENDS="liblzma libxml2 ncurses readline zlib"
56 ;;
57 libxml2-python)
58 copy python2.7/; find $fs -name '*.la' -delete
59 CAT="development|adapter for the Python"
60 DEPENDS="liblzma libxml2 python zlib libxslt"
61 ;;
62 libxml2-dev)
63 copy @dev *.sh
64 DEPENDS="xz-dev zlib-dev libxml2-tools"
65 ;;
66 esac
67 }