2009-03-19 02:01:31 +00:00
|
|
|
# Template build file 'freetype'.
|
2009-02-09 13:25:13 +00:00
|
|
|
pkgname=freetype
|
2013-12-09 09:04:21 +00:00
|
|
|
version=2.5.2
|
2013-05-11 16:55:36 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-06-20 15:58:58 +00:00
|
|
|
hostmakedepends="pkg-config which"
|
2013-06-20 18:01:15 +00:00
|
|
|
makedepends="zlib-devel bzip2-devel libpng-devel"
|
2008-10-01 15:07:54 +00:00
|
|
|
short_desc="Font rendering engine and library API"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-09 16:11:15 +00:00
|
|
|
homepage="http://www.freetype.org/"
|
|
|
|
license="GPL-2"
|
2012-06-15 21:04:12 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
2013-12-09 09:04:21 +00:00
|
|
|
checksum=4ff4bd393aa01071ec7b849d035508a505a78f88b2bcf25ff11e58e43c0b9def
|
2013-04-12 09:16:02 +00:00
|
|
|
|
2013-11-25 13:33:59 +00:00
|
|
|
do_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
export LIBPNG_CFLAGS="$(pkg-config --cflags libpng)"
|
|
|
|
export LIBPNG_LDFLAGS="$(pkg-config --libs libpng)"
|
|
|
|
fi
|
|
|
|
./configure ${configure_args}
|
|
|
|
}
|
2013-06-20 16:00:34 +00:00
|
|
|
|
2013-04-12 09:16:02 +00:00
|
|
|
freetype-devel_package() {
|
2013-11-25 13:33:59 +00:00
|
|
|
depends="zlib-devel bzip2-devel ${sourcepkg}>=${version}_${revision}"
|
2013-05-11 16:55:36 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:16:02 +00:00
|
|
|
pkg_install() {
|
|
|
|
for f in bin include share; do
|
|
|
|
vmove usr/${f}
|
|
|
|
done
|
|
|
|
vmove "usr/lib/*.a"
|
2013-11-25 13:33:59 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 09:16:02 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|