SUMMARY="Utility for getting info out of DVDs"
DESCRIPTION="lsdvd allows to check the contents of the DVD as well as \
information about particular tracks such as audio and subtitle languages."
HOMEPAGE="https://sourceforge.net/projects/lsdvd"
COPYRIGHT="2002-2014 Chris Phillips, Petter Reinholdtsen, Steve Dibb"
LICENSE="GNU GPL v2"
REVISION="4"
SOURCE_URI="http://downloads.sf.net/lsdvd/lsdvd-$portVersion.tar.gz"
CHECKSUM_SHA256="7d2c5bd964acd266b99a61d9054ea64e01204e8e3e1a107abe41b1274969e488"

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

PROVIDES="
	lsdvd$secondaryArchSuffix = $portVersion
	cmd:lsdvd = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libdvdread$secondaryArchSuffix
	"

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

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

INSTALL()
{
	make install
}
