Files
haikuports/games-arcade/burgerspace/burgerspace-1.9.2.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

67 lines
1.8 KiB
Bash

SUMMARY="A hamburger-smashing video game"
DESCRIPTION="A game in which you are a chef, and must walk over hamburger \
ingredients (buns, meat, and lettuce) to make them fall from floor to floor, \
until they end up on the plates at the bottom of the screen."
HOMEPAGE="https://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html"
COPYRIGHT="2013 Pierre Sarrazin"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://perso.b2b2c.ca/~sarrazip/dev/burgerspace-$portVersion.tar.gz"
CHECKSUM_SHA256="34b0feccf543b11f9f9a182203d67cd453675255fed4b745e4e74c121b211bf2"
SOURCE_DIR="burgerspace-$portVersion"
ADDITIONAL_FILES="burgerspace.rdef"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
burgerspace$secondaryArchSuffix = $portVersion
app:BurgerSpace
cmd:burgerspace_server
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libflatzebra_0.1$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
lib:libSDL_mixer_1.2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libflatzebra_0.1$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libSDL_image$secondaryArchSuffix
devel:libSDL_mixer$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure --omit-dirs binDir \
./configure --bindir=$prefix/bin \
LDFLAGS='-lnetwork'
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
make install
mv $prefix/bin/burgerspace $appsDir/BurgerSpace
addResourcesToBinaries $portDir/additional-files/burgerspace.rdef \
$appsDir/BurgerSpace
addAppDeskbarSymlink $appsDir/BurgerSpace BurgerSpace
# remove obsolete files
rm -rf $dataDir/{applications,pixmaps}
}