void-packages/srcpkgs/libxml2/template

32 lines
1,006 B
Text
Raw Normal View History

# Template build file for 'libxml2'.
pkgname=libxml2
2012-08-10 04:00:03 +00:00
version=2.8.0
revision=2
build_style=gnu-configure
2012-08-10 04:00:03 +00:00
configure_args="--disable-static --with-threads --with-history"
subpackages="$pkgname-devel $pkgname-python"
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel python-devel"
short_desc="Library providing XML and HTML support"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-08-10 04:00:03 +00:00
homepage="http://www.xmlsoft.org/"
license="MIT"
distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz"
checksum=f2e2d0e322685193d1affec83b21dc05d599e17a7306d7b90de95bb5b9ac622a
if [ "$XBPS_CROSS_BUILD" ]; then
hostmakedepends="automake gettext-devel"
pre_configure() {
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
autoreconf -fi
}
pre_build() {
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BUILD/\1|g" \
-e "s|/usr/\(lib/python2.7/site-packages\)|$XBPS_CROSS_BASE/\1|g" \
-i python/Makefile
}
fi
2012-08-10 04:00:03 +00:00
post_install() {
vinstall COPYING 644 usr/share/licenses/${pkgname}
}