void-packages/srcpkgs/fontconfig/template
Juan RP ca5716e389 fontconfig: fix pkgconfig file in cross builds.
Do not propagate sysroot paths to Cflags.
2014-12-20 09:27:48 +01:00

33 lines
1 KiB
Text

# Template build file for 'fontconfig'.
pkgname=fontconfig
version=2.11.1
revision=3
build_style=gnu-configure
configure_args="--disable-static --enable-docs --with-cache-dir=/var/cache/$pkgname"
hostmakedepends="pkg-config"
makedepends="expat-devel zlib-devel freetype-devel"
conf_files="/etc/fonts/fonts.conf"
short_desc="Library for configuring and customizing font access"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.fontconfig.org"
license="MIT"
distfiles="http://www.freedesktop.org/software/fontconfig/release/$pkgname-$version.tar.bz2"
checksum=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99
post_install() {
if [ "$CROSS_BUILD" ]; then
sed -i 's,\(Cflags: -I${includedir}\).*,\1,g' ${DESTDIR}/usr/lib/pkgconfig/fontconfig.pc
fi
}
fontconfig-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/share/doc
}
}