SUMMARY="Drawing program designed for young children"
DESCRIPTION="
tuxpaint - Drawing program designed for young children.
"
HOMEPAGE="http://www.tuxpaint.org/" 
#SRC_URI="cvs://:pserver:anonymous@tuxpaint.cvs.sourceforge.net:/cvsroot/tuxpaint/tuxpaint"
SRC_URI="http://ports-space.haiku-files.org/source/tuxpaint-snapshot-2013-11-06.zip"
CHECKSUM_MD5="5de3581c15b73e88a1925bf37e172519"
COPYRIGHT="2002-2010 Bill Kendrick and others"
LICENSE="GNU GPL v2"
REVISION="1"

ARCHITECTURES="x86 x86_gcc2 ?x86_64"

PROVIDES="
	tuxpaint = $portVersion
	"

REQUIRES="
	haiku
	lib:libpaper
	lib:libsdl
	lib:libintl
	lib:libSDL_ttf
	lib:libSDL_image
	lib:libSDL_mixer
	lib:libfribidi
	lib:freetype
	lib:gettext
	lib:libpng
	lib:libiconv
	lib:libz
	"

BUILD_REQUIRES="
	devel:libsdl
	devel:libintl
	devel:libpaper
	devel:libSDL_ttf
	devel:libSDL_image
	devel:libSDL_mixer
	devel:libfribidi
#	devel:freetype
#	devel:gettext
	devel:libpng
	devel:libz
	devel:libiconv
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:make
	cmd:gcc
	cmd:gperf
	cmd:pkg_config
	cmd:ld
	"

USER_SETTINGS_FILES="
	settings/TuxPaint directory
	"

SOURCE_DIR="tuxpaint"

BUILD()
{
	make $jobArgs FRIBIDI_LIB=-lfribidi
}

INSTALL()
{
	tuxpaintDir=$appsDir/TuxPaint
	mkdir -p $tuxpaintDir
	
	cp tuxpaint $tuxpaintDir/TuxPaint

#	make install

	#TODO Get TuxPaint put where we want it and create the settings folder, etc.
}
