wok-next annotate libxml2/receipt @ rev 18699
Up firefox-official* (43.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Dec 16 02:02:53 2015 +0200 (2015-12-16) |
parents | 0bd0738f4d00 |
children | 4eab61ea2c5a |
rev | line source |
---|---|
pankso@24 | 1 # SliTaz package receipt. |
pankso@24 | 2 |
pankso@24 | 3 PACKAGE="libxml2" |
slaxemulator@13174 | 4 VERSION="2.8.0" |
pankso@211 | 5 CATEGORY="system-tools" |
pankso@24 | 6 SHORT_DESC="Libxml2 is the XML C parser and toolkit." |
pankso@24 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15268 | 8 LICENSE="MIT" |
pankso@24 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@24 | 10 WEB_SITE="http://xmlsoft.org/" |
pankso@24 | 11 WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL" |
pankso@13368 | 12 HOST_ARCH="i486 arm" |
pankso@13368 | 13 |
pascal@2475 | 14 DEPENDS="zlib" |
pascal@15627 | 15 BUILD_DEPENDS="zlib-dev python-dev autoconf automake libtool" |
pankso@12817 | 16 |
pankso@13368 | 17 # When cross compiling Python is installed in chroot and is used |
pankso@13368 | 18 # by cross tools, cook dont need to install it in /usr/cross/arm |
pankso@15944 | 19 # Building with LZMA support is buggy and build fails |
pankso@13368 | 20 case "$ARCH" in |
pankso@15944 | 21 arm) |
pankso@15944 | 22 BUILD_DEPENDS="" |
pankso@15944 | 23 ARCH_ARGS="--without-lzma" ;; |
pankso@13368 | 24 esac |
pankso@13368 | 25 |
pankso@24 | 26 # Rules to configure and make the package. |
pankso@24 | 27 # |
pankso@24 | 28 # Note: libxml2 can be build using option --with-minimum |
pankso@4828 | 29 # and binaries are splited into libxml2-tools |
pankso@24 | 30 compile_rules() |
pankso@24 | 31 { |
slaxemulator@13174 | 32 autoreconf -fi |
pankso@24 | 33 ./configure \ |
slaxemulator@13174 | 34 --prefix=/usr \ |
slaxemulator@13174 | 35 --infodir=/usr/share/info \ |
slaxemulator@13174 | 36 --mandir=/usr/share/man \ |
slaxemulator@13174 | 37 --with-html-dir=/usr/share/doc \ |
slaxemulator@13174 | 38 --with-threads \ |
slaxemulator@13174 | 39 --with-history \ |
pankso@15944 | 40 $CONFIGURE_ARGS $ARCH_ARGS && |
slaxemulator@13174 | 41 make && |
pascal@15270 | 42 make DESTDIR=$DESTDIR install 2>&1 | grep -v "can't stat './..html':" |
pankso@24 | 43 } |
pankso@24 | 44 |
pankso@24 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@24 | 46 genpkg_rules() |
pankso@24 | 47 { |
pankso@24 | 48 mkdir -p $fs/usr/lib |
pankso@12817 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@24 | 50 } |