void-packages/srcpkgs/xerces-c/template
Jürgen Buchmüller d5765d13e1 xerces-c: fix cross
2017-09-01 14:31:04 +02:00

56 lines
1.4 KiB
Bash

# Template file for 'xerces-c'
pkgname=xerces-c
version=3.2.0
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libcurl-devel icu-devel"
depends="lib${pkgname}>=${version}_${revision}"
short_desc="Validating XML parser written in portable C++"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="Apache-2.0"
homepage="http://xerces.apache.org/xerces-c/"
distfiles="http://archive.apache.org/dist/xerces/c/3/sources/${pkgname}-${version}.tar.bz2"
checksum=9f3327b63fd7eef3de45025449d5d948ab46f066a475706d2e34f94e91617b34
case "$XBPS_TARGET_MACHINE" in
i686*) export CCACHE_DISABLE=yes
esac
pre_configure() {
autoreconf -fi
}
pre_build() {
# Copy samples before build: avoid binaries in -doc package
mkdir -p _docs
cp -a samples/ _docs/
}
libxerces-c_package() {
short_desc+=" - shared library"
pkg_install() {
vmove usr/lib/libxerces-c-${version%.*}.so
}
}
libxerces-c-devel_package() {
short_desc+=" - development files"
depends="lib${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/libxerces-c.so
}
}
xerces-c-doc_package() {
short_desc+=" - documentation"
noarch=yes
pkg_install() {
vdoc "CREDITS"
vcopy "${wrksrc}/doc" "/usr/share/doc/${pkgname}"
vcopy "${wrksrc}/_docs/samples" "/usr/share/doc/${pkgname}"
}
}