# Template build file for 'libXft'.
pkgname=libXft
version=2.3.0
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="xproto libXrender-devel freetype-devel fontconfig-devel"
short_desc="Library for configuring and customizing font access"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="${XORG_SITE}"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2"
checksum=3426393ad72a5c47006536d474e396c7a21c33131bb28f495578e05a5858b044
long_desc="
 Xft (2.0) provides a client-side font API for X applications. It uses
 Fontconfig to select fonts and the X protocol for rendering them. When
 available, Xft uses the Render extension to accelerate text drawing.
 When Render is not available, Xft uses the core protocol to draw
 client-side glyphs. This provides completely compatible support of
 client-side fonts for all X servers.

 Xft (2.0) hides most of the underlying system details so that developers
 can confidently use its API to access client-side fonts in any X
 environment."

libXft-devel_package() {
	depends="xproto libXrender-devel fontconfig-devel freetype-devel libXft>=${version}"
	short_desc="${short_desc} (development files)"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/lib*.a"
		vmove usr/lib/pkgconfig
		vmove usr/share
	}
}

libXft_package() {
	pkg_install() {
		vmove usr
	}
}
