void-packages/srcpkgs/freetype/template
2014-02-19 15:32:32 +01:00

34 lines
964 B
Text

# Template build file 'freetype'.
pkgname=freetype
version=2.5.2
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config which"
makedepends="zlib-devel bzip2-devel libpng-devel"
short_desc="Font rendering engine and library API"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.freetype.org/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=4ff4bd393aa01071ec7b849d035508a505a78f88b2bcf25ff11e58e43c0b9def
do_configure() {
if [ "$CROSS_BUILD" ]; then
export LIBPNG_CFLAGS="$(pkg-config --cflags libpng)"
export LIBPNG_LDFLAGS="$(pkg-config --libs libpng)"
fi
./configure ${configure_args}
}
freetype-devel_package() {
depends="zlib-devel bzip2-devel libpng-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
for f in bin include share; do
vmove usr/${f}
done
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}