SUMMARY="NScripter-like interpreter with proportional font and Unicode support"
DESCRIPTION="Ponscripter is an NScripter-style novel-game interpreter with an \
emphasis on supporting games in Western languages. The goal is to provide an \
easy porting target for translation projects."
HOMEPAGE="http://unclemion.com/onscripter/"
LICENSE="GNU GPL v2"
COPYRIGHT="2001-2011 Ogapee
	2006-2011 insani, Haeleth, Sonozaki et al"
REVISION="5"
SOURCE_URI="http://getdeb.megaglest.org/ubuntu/pool/games/p/ponscripter/ponscripter_$portVersion.orig.tar.bz2"
CHECKSUM_SHA256="592a7cea2b89646c145eee095a66ef1c2b8a64c3d169b6b2b46da0829618ed3e"
SOURCE_DIR="ponscripter-$portVersion-src"
PATCHES="ponscripter-$portVersion.patchset"

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


PROVIDES="
	ponscripter$secondaryArchSuffix = $portVersion
	cmd:ponscr = $portVersion
	"
REQUIRES="
	haiku${secondaryArchSuffix}
	lib:libbz2$secondaryArchSuffix
	lib:libfreetype$secondaryArchSuffix
	lib:libogg$secondaryArchSuffix
	lib:libSDL_1.2$secondaryArchSuffix
	lib:libSDL_image_1.2$secondaryArchSuffix
	lib:libSDL_mixer_1.2$secondaryArchSuffix
	lib:libsmpeg$secondaryArchSuffix
	lib:libvorbis$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libbz2$secondaryArchSuffix
	devel:libfreetype$secondaryArchSuffix
	devel:libogg$secondaryArchSuffix
	devel:libSDL$secondaryArchSuffix
	devel:libSDL_image$secondaryArchSuffix
	devel:libSDL_mixer$secondaryArchSuffix
	devel:libsmpeg$secondaryArchSuffix
	devel:libvorbis$secondaryArchSuffix
	devel:libz$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	"

BUILD()
{

	runConfigure ./configure --no-werror

	#CFLAGS="-Wno-unused-but-set-variable"
	make
}

INSTALL()
{
    make install-bin
}
