void-packages/srcpkgs/freetype/template
2013-06-20 20:01:15 +02:00

40 lines
957 B
Text

# Template build file 'freetype'.
pkgname=freetype
version=2.5.0.1
revision=1
patch_args="-Np1"
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=57bce5b37989577aa8b4a588426839f6bf39bcc3869748cb18f6827df251f4e5
if [ "$CROSS_BUILD" ]; then
# XXX needs libpng-config
hostmakedepends+=" libpng-devel"
pre_build() {
sed -e 's,-L/usr/lib,,g' -i builds/unix/unix-cc.mk
}
fi
freetype-devel_package() {
depends="zlib-devel bzip2-devel freetype>=$version"
short_desc+=" - development files"
pkg_install() {
for f in bin include share; do
vmove usr/${f}
done
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}
freetype_package() {
pkg_install() {
vmove all
}
}