2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'libxml2'.
|
|
|
|
pkgname=libxml2
|
2012-08-10 06:00:03 +02:00
|
|
|
version=2.8.0
|
2013-02-15 11:45:46 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-08-10 06:00:03 +02:00
|
|
|
configure_args="--disable-static --with-threads --with-history"
|
|
|
|
subpackages="$pkgname-devel $pkgname-python"
|
2013-03-24 10:21:58 +01:00
|
|
|
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel python-devel"
|
2009-03-21 00:27:21 +01:00
|
|
|
short_desc="Library providing XML and HTML support"
|
2008-10-02 09:09:21 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-08-10 06:00:03 +02:00
|
|
|
homepage="http://www.xmlsoft.org/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz"
|
|
|
|
checksum=f2e2d0e322685193d1affec83b21dc05d599e17a7306d7b90de95bb5b9ac622a
|
2013-02-15 11:45:46 +01:00
|
|
|
|
2013-03-24 10:21:58 +01:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="automake gettext-devel"
|
2013-02-15 11:45:46 +01:00
|
|
|
pre_configure() {
|
|
|
|
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
pre_build() {
|
2013-03-24 10:21:58 +01:00
|
|
|
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" \
|
2013-02-15 11:45:46 +01:00
|
|
|
-i python/Makefile
|
|
|
|
}
|
|
|
|
fi
|
2009-03-20 08:45:35 +01:00
|
|
|
|
2012-08-10 06:00:03 +02:00
|
|
|
post_install() {
|
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|