# Template build file for 'harfbuzz'.
pkgname=harfbuzz
version=0.9.16
revision=1
build_style=gnu-configure
# XXX graphite2 support
hostmakedepends="pkg-config"
makedepends="glib-devel icu-devel freetype-devel cairo-devel"
short_desc="OpenType text shaping engine"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.pango.org/"
license="LGPL-2.1"
distfiles="http://www.freedesktop.org/software/harfbuzz/release/${pkgname}-${version}.tar.bz2"
checksum=6da7e032f705d8a5c91487cd296628d64975672a5b0c1704829cf2285072c92b

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" glib-devel"
fi

libharfbuzz_package() {
	short_desc="OpenType text shaping engine -- runtime library"
	pkg_install() {
		vmove "usr/lib/*.so*"
	}
}

harfbuzz-devel_package() {
	depends="libharfbuzz-${version}_${revision}"
	short_desc="OpenType text shaping engine -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

harfbuzz_package() {
	pkg_install() {
		vmove all
	}
}
