void-packages/srcpkgs/freetype/template
2013-11-25 14:33:59 +01:00

40 lines
1,007 B
Text

# Template build file 'freetype'.
pkgname=freetype
version=2.5.1
revision=1
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=d715faa92b37980280c857ce9d356fff4361c5a7bd9b5c3f867fc24f598d8f45
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 ${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
}
}
freetype_package() {
pkg_install() {
vmove all
}
}