SUMMARY="A tanks arcade game" DESCRIPTION="Battle Tanks is a funny battle on your desk, where you can \ choose one of three vehicles and eliminate your enemy using the whole arsenal \ of weapons. It has original cartoon-like graphics and cool music, it's fun \ and dynamic, it has several network modes for deathmatch and cooperative -- \ what else is needed to have fun with your friends?" HOMEPAGE="http://btanks.sourceforge.net" COPYRIGHT="2006-2009 Battle Tanks team 2007-2008 Netive Media Group 2005-2007 Vladimir Menshakov" LICENSE="GNU GPL v2" REVISION="4" SOURCE_URI="http://downloads.sourceforge.net/project/btanks/btanks-source/btanks-$portVersion.tar.bz2" CHECKSUM_SHA256="3fd2ce6a2b45f7a60c3b114fa9aff13cb3dd9fbb6a65cdc9798b76c4fa2c4341" PATCHES=" debian/gcc-4.6.patch debian/gcc-4.7.patch debian/python3.patch debian/scons.patch btanks-$portVersion.patchset " ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" btanks$secondaryArchSuffix = $portVersion app:btanks = $portVersion app:bted = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libexpat$secondaryArchSuffix lib:libGLU$secondaryArchSuffix lib:liblua$secondaryArchSuffix >= 5.3 lib:libSDL_1.2$secondaryArchSuffix lib:libSDL_image_1.2$secondaryArchSuffix lib:libsmpeg$secondaryArchSuffix lib:libvorbis$secondaryArchSuffix lib:libz$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libexpat$secondaryArchSuffix devel:libGLU$secondaryArchSuffix devel:liblua$secondaryArchSuffix >= 5.3 devel:libSDL_1.2$secondaryArchSuffix devel:libSDL_image_1.2$secondaryArchSuffix devel:libsmpeg$secondaryArchSuffix devel:libvorbis$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix cmd:scons cmd:zip " BUILD() { scons $jobArgs . \ mode=release \ CXXFLAGS="-Wno-register" \ prefix="$appsDir/btanks" \ lib_dir="$appsDir/btanks/lib" \ plugins_dir="$appsDir/btanks/lib" \ resources_dir="$appsDir/btanks" } INSTALL() { scons install mv $appsDir/btanks/bin/* $appsDir/btanks/ rm -rf $appsDir/btanks/bin addAppDeskbarSymlink $appsDir/btanks/btanks "BTanks" addAppDeskbarSymlink $appsDir/btanks/bted "BTanks Editor" }