SUMMARY="The ultimate 256-color painting program"
DESCRIPTION="GrafX2 is a bitmap paint program inspired by the Amiga programs \
Deluxe Paint and Brilliance. Specialized in 256-color drawing, it includes a \
very large number of tools and effects that make it particularly suitable for \
pixel art, game graphics, and generally any detailed graphics painted with a \
mouse."
ARCHITECTURES="x86_gcc2"
HOMEPAGE="http://pulkomandy.tk/projects/GrafX2"
REVISION="1"
COPYRIGHT="1995-1999 Sunset Design
2008-2015 GrafX2 project team"
LICENSE="GNU GPL v2"

SOURCE_URI="svn://pulkomandy.tk/GrafX2/trunk#2119"

PROVIDES="
	grafx2
	cmd:grafx2
"

REQUIRES="
	haiku
	lib:libsdl
	lib:libsdl_image
	lib:libsdl_ttf
	lib:liblua
	lib:libpng
	lib:libjpeg
	lib:libz
	lib:libfreetype
"

BUILD_REQUIRES="
	haiku_devel
	devel:libsdl
	devel:libsdl_image
	devel:libsdl_ttf
	devel:liblua
	devel:libpng
	devel:libjpeg
	devel:libz
	devel:libfreetype
"

BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	cmd:svnversion
"

BUILD()
{
	cd src
	make $jobArgs
}

INSTALL()
{
	cd src
	make install DESTDIR=$prefix prefix=/ datarootdir=/$relativeDataRootDir
}
