DESCRIPTION="
A portable, utilizing OpenGL and SDL, argument(command-line)-driven \
multi-system emulator
"
HOMEPAGE="http://mednafen.sourceforge.net/"
SOURCE_URI="http://sourceforge.net/projects/mednafen/files/Mednafen/0.9.26-WIP/mednafen-0.9.26-wip.tar.bz2/download"
CHECKSUM_MD5="cf4eadb057e91c59b181d07bc12245f0"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port builds only with gcc4. Use 'setgcc gcc4' before building."
DEPEND="media-libs/libsdl >= 1.2.15,
	dev-libs/libcdio >= 0.82,
	media-libs/libsndfile >= 1.0.21"

BUILD()
{
	cd mednafen
	./configure --prefix=`finddir B_COMMON_DIRECTORY`
	make
}

INSTALL()
{
	cd mednafen
	make install
}

TEST()
{
	cd mednafen
	make check
}

LICENSE="GNU GPL v2"
COPYRIGHT="2005-2012 Mednafen Team"
