# Description: DVD authoring tools.
# URL: http://dvdauthor.sourceforge.net/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: freetype fribidi libdvdnav libxml2
# Optional: imagemagick

name=dvdauthor
version=0.7.2
release=1
source=(https://sourceforge.net/projects/$name/files/$name-$version.tar.gz
	dvdauthor-freetype_pkgconfig.patch
	dvdauthor-0.7.2-imagemagick7.patch)

build() {
	cd $name

	patch -p1 -i $SRC/dvdauthor-freetype_pkgconfig.patch

	prt-get isinst imagemagick && patch -p1 -i $SRC/dvdauthor-0.7.2-imagemagick7.patch

	autoreconf -vi

	./configure --prefix=/usr

	make
	make DESTDIR=$PKG install
}
