2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'libxml2'.
|
|
|
|
pkgname=libxml2
|
2013-05-11 08:09:23 +00:00
|
|
|
version=2.9.1
|
2014-01-08 19:55:28 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-08-10 04:00:03 +00:00
|
|
|
configure_args="--disable-static --with-threads --with-history"
|
2013-03-24 09:21:58 +00:00
|
|
|
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel python-devel"
|
2009-03-20 23:27:21 +00:00
|
|
|
short_desc="Library providing XML and HTML support"
|
2008-10-02 07:09:21 +00:00
|
|
|
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"
|
2013-05-11 08:09:23 +00:00
|
|
|
checksum=fd3c64cb66f2c4ea27e934d275904d92cec494a8e8405613780cbc8a71680fdb
|
2013-02-15 10:45:46 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-23 12:32:52 +00:00
|
|
|
hostmakedepends="automake libtool gettext-devel python-devel"
|
2013-02-15 10:45:46 +00:00
|
|
|
pre_configure() {
|
|
|
|
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
pre_build() {
|
2013-05-11 08:09:23 +00:00
|
|
|
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile
|
2013-02-15 10:45:46 +00:00
|
|
|
}
|
|
|
|
fi
|
2009-03-20 07:45:35 +00:00
|
|
|
|
2012-08-10 04:00:03 +00:00
|
|
|
post_install() {
|
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-04-12 11:13:49 +00:00
|
|
|
|
|
|
|
libxml2-devel_package() {
|
2014-01-08 19:55:28 +00:00
|
|
|
depends="zlib-devel libxml2>=${version}_${revision}"
|
2013-05-11 08:09:23 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/bin/xml2-config
|
|
|
|
vmove usr/lib/xml2Conf.sh
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
vmove usr/share/doc/${sourcepkg}-${version}
|
|
|
|
vmove "usr/share/man/man1/xml2-config*"
|
|
|
|
vmove usr/share/man/man3
|
2014-01-08 19:55:28 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 11:13:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libxml2-python_package() {
|
2013-05-11 08:09:23 +00:00
|
|
|
short_desc+=" - python extension"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python*"
|
|
|
|
vmove usr/share/doc/${sourcepkg}-python-${version}
|
|
|
|
}
|
|
|
|
}
|