Files
haikuports/games-action/btanks/btanks-0.9.8083.recipe
OscarL 390bc8f0bc btanks: fix build, move to $appsDir. (#8699)
Applied some of the Debian patches from:
https://sources.debian.org/src/btanks/0.9.8083-9/debian/patches/

Consistent "SDL / BGLView::UnlockGL()" related crash on close.
Works nicely otherwise.

Closes #7886.
2023-05-21 16:45:32 +02:00

82 lines
2.2 KiB
Bash

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="3"
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
lib:libSDL$secondaryArchSuffix
lib:libSDL_image$secondaryArchSuffix
lib:libsmpeg$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libexpat$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:liblua$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libSDL_image$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"
}