SUMMARY="Console type RPG"
DESCRIPTION="The well-known KQ console-style RPG"
HOMEPAGE="http://kqlives.sourceforge.net/"
COPYRIGHT="JoshBolduc 2002
	Allegro Community 2006-2009"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="http://sourceforge.net/projects/kqlives/files/KQ/20091214/kq-$portVersion.tar.gz"
CHECKSUM_SHA256="a8742d0a8781bd3626aef17ae382525b0abb4ab194004c9acf9f136b7be2b6fd"
SOURCE_DIR="kq-$portVersion"
PATCHES="kqlives-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	kqlives = $portVersion
	cmd:kq
	cmd:mapdiff
	cmd:mapdraw
	cmd:mapdump
	"
REQUIRES="
	haiku
	lib:libaldmb_0.9.3
	lib:liballeg
	lib:libdumb_0.9.3
	lib:libintl
	lib:liblua >= 5.1
	"

BUILD_REQUIRES="
	haiku_devel
	devel:liballeg
	devel:libdumb
	devel:liblua >= 5.1
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autopoint
	cmd:autoreconf
	cmd:awk
	cmd:find
	cmd:gcc
	cmd:luac
	cmd:make
	cmd:pkg_config
	"

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

INSTALL()
{
	make install
}
