void-packages/srcpkgs/libxml2/template

56 lines
1.5 KiB
Bash
Raw Normal View History

# Template build file for 'libxml2'.
pkgname=libxml2
2014-10-18 16:20:12 +00:00
version=2.9.2
revision=4
build_style=gnu-configure
2012-08-10 04:00:03 +00:00
configure_args="--disable-static --with-threads --with-history"
2014-10-18 16:20:12 +00:00
hostmakedepends="automake libtool gettext-devel pkg-config python-devel"
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel python-devel"
short_desc="Library providing XML and HTML support"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-08-10 04:00:03 +00:00
homepage="http://www.xmlsoft.org/"
license="MIT"
distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz"
2014-10-18 16:20:12 +00:00
checksum=5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
2014-10-18 16:20:12 +00:00
LDFLAGS="-lz -llzma -lpthread"
2014-10-18 16:20:12 +00:00
pre_configure() {
autoreconf -fi
sed '/PROGRAMS =/s,$(noinst_PROGRAMS),,' -i Makefile.in
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile
fi
}
2012-08-10 04:00:03 +00:00
post_install() {
2014-10-18 16:20:12 +00:00
vlicense COPYING
2012-08-10 04:00:03 +00:00
}
libxml2-devel_package() {
2014-10-18 16:20:12 +00:00
depends="zlib-devel liblzma-devel libxml2>=${version}_${revision}"
2013-05-11 08:09:23 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin/xml2-config
vmove usr/lib/xml2Conf.sh
vmove usr/lib/pkgconfig
2014-10-18 16:20:12 +00:00
vmove usr/lib/cmake
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
vmove "usr/lib/*.so"
}
}
libxml2-python_package() {
lib32disabled=yes
2013-05-11 08:09:23 +00:00
short_desc+=" - python extension"
pkg_install() {
vmove "usr/lib/python*"
vmove usr/share/doc/${sourcepkg}-python-${version}
}
}