SUMMARY="Command-line tool to backup DVDs"
DESCRIPTION="dvdbackup is a tool to rip video DVDs from the command line. It \
is small, fast and easy to use."
HOMEPAGE="http://dvdbackup.sourceforge.net/"
COPYRIGHT="2002 Olaf Beck
	2008-2012 Benjamin Drung"
LICENSE="GNU GPL v3"
REVISION="4"
SOURCE_URI="http://downloads.sf.net/dvdbackup/dvdbackup-$portVersion.tar.gz"
CHECKSUM_SHA256="0a37c31cc6f2d3c146ec57064bda8a06cf5f2ec90455366cb250506bab964550"
PATCHES="dvdbackup-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"

PROVIDES="
	dvdbackup$secondaryArchSuffix = $portVersion
	cmd:dvdbackup = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libdvdread$secondaryArchSuffix
	lib:libiconv$secondaryArchSuffix
	lib:libintl$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libdvdread$secondaryArchSuffix
	devel:libiconv$secondaryArchSuffix
	devel:libintl$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:getconf
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
