2009-03-19 03:01:31 +01:00
|
|
|
# Template build file 'freetype'.
|
2009-02-09 14:25:13 +01:00
|
|
|
pkgname=freetype
|
2013-06-20 17:58:58 +02:00
|
|
|
version=2.5.0.1
|
2013-05-11 18:55:36 +02:00
|
|
|
revision=1
|
2010-12-17 15:12:46 +01:00
|
|
|
patch_args="-Np1"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-06-20 17:58:58 +02:00
|
|
|
hostmakedepends="pkg-config which"
|
2013-06-20 20:01:15 +02:00
|
|
|
makedepends="zlib-devel bzip2-devel libpng-devel"
|
2008-10-01 17:07:54 +02:00
|
|
|
short_desc="Font rendering engine and library API"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-09 18:11:15 +02:00
|
|
|
homepage="http://www.freetype.org/"
|
|
|
|
license="GPL-2"
|
2012-06-15 23:04:12 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
2013-06-20 17:58:58 +02:00
|
|
|
checksum=57bce5b37989577aa8b4a588426839f6bf39bcc3869748cb18f6827df251f4e5
|
2013-04-12 11:16:02 +02:00
|
|
|
|
2013-06-20 18:00:34 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX needs libpng-config
|
|
|
|
hostmakedepends+=" libpng-devel"
|
2013-06-20 20:01:15 +02:00
|
|
|
pre_build() {
|
|
|
|
sed -e 's,-L/usr/lib,,g' -i builds/unix/unix-cc.mk
|
|
|
|
}
|
2013-06-20 18:00:34 +02:00
|
|
|
fi
|
|
|
|
|
2013-04-12 11:16:02 +02:00
|
|
|
freetype-devel_package() {
|
|
|
|
depends="zlib-devel bzip2-devel freetype>=$version"
|
2013-05-11 18:55:36 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 11:16:02 +02:00
|
|
|
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() {
|
2013-06-20 17:58:58 +02:00
|
|
|
vmove all
|
2013-04-12 11:16:02 +02:00
|
|
|
}
|
|
|
|
}
|