# Template build file for 'libass.
pkgname=libass
version=0.10.1
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
makedepends="enca-devel fontconfig-devel fribidi-devel harfbuzz-devel>=0.9.5"
short_desc="A portable library for SSA/ASS subtitles rendering"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xorg.freedesktop.org/"
license="MIT"
distfiles="http://libass.googlecode.com/files/${pkgname}-${version}.tar.xz"
checksum=fbf287ac6d0dbdf015783b7354280ad8371c106326ad3f77a99471bc5aa18210

post_install() {
	vinstall COPYING 644 usr/share/licenses/${pkgname}
}

libass-devel_package() {
	depends="fontconfig-devel enca-devel fribidi-devel
		libass-${version}_${revision}"
	short_desc="${short_desc} - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
