SUMMARY="A modern open-source, cross-platform toolkit for graphical applications"
DESCRIPTION="Cross-platform GUI toolkit.  Agar provides a base framework and \
a collection of GUI widgets from which GUI applications can be built.  Agar \
can be styled and themed using a CSS-style engine."
HOMEPAGE="http://libagar.org/index.html.en"
COPYRIGHT="2002-2016 Hypertrition, Inc."
LICENSE="BSD (2-clause)"
REVISION="2"
SOURCE_URI="http://stable.hypertriton.com/agar/agar-$portVersion.tar.gz"
CHECKSUM_SHA256="82342ded342c578141984befe9318f3d376176e5f427ae3278f8985f26663c00"

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

PROVIDES="
	agar$secondaryArchSuffix = $portVersion
	cmd:agar$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libfreetype$secondaryArchSuffix
	lib:libGL$secondaryArchSuffix
	lib:libjpeg$secondaryArchSuffix
	lib:liblua$secondaryArchSuffix
	lib:libpng16$secondaryArchSuffix
	lib:libsdl$secondaryArchSuffix
	lib:libsndfile$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libfontconfig$secondaryArchSuffix
	devel:libfreetype$secondaryArchSuffix
	devel:libGL$secondaryArchSuffix
	devel:libjpeg$secondaryArchSuffix
	devel:libpng16$secondaryArchSuffix
	devel:libsdl$secondaryArchSuffix
	devel:libsndfile$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:libtool$secondaryArchSuffix
	cmd:make
	cmd:perl
	"

BUILD()
{
	./configure --prefix=$prefix
	make depend all $jobArgs
}

INSTALL()
{
	make install
}
