Files
haikuports/games-action/bugdom/bugdom-1.3.4.recipe
2025-04-23 00:04:40 +10:00

91 lines
2.6 KiB
Bash

SUMMARY="Vintage 3D bug-themed action/adventure game"
DESCRIPTION="This is Pangea Software's Bugdom updated to run on modern operating systems. \
Bugdom is an incredibly diverse 3D action/adventure game which is suitable for all ages. \
It features over 23 different bugs and enemies, 10 huge exciting levels, the ability to swim, \
jump, ride bugs, swing on ropes, and go into bee hives and ant hills, along with an incredible \
CD-quality soundtrack!"
HOMEPAGE="https://pangeasoft.net/bug"
COPYRIGHT="1999 Pangea Software, Inc.
1999 Toucan Studio, Inc.
1999 Mike Beckett
2020 Iliyas Jorio"
LICENSE="CC-BY-NC-SA-4.0"
REVISION="1"
SOURCE_URI="https://github.com/jorio/Bugdom/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="7ec27f7e438588b56da9797310b83bcf7bb31cc3343b0df8644ee1e4216710a8"
SOURCE_DIR="Bugdom-$portVersion"
PATCHES="bugdom-$portVersion.patchset"
srcGitRev2="ef94150e2dcec522e3099f4d03a4e8f2639f7232"
SOURCE_URI_2="https://github.com/jorio/Pomme/archive/$srcGitRev2.tar.gz"
CHECKSUM_SHA256_2="69faf616449c0737e238367883e36230f15d13c261e18d6e4d4c69e2edd0b002"
SOURCE_FILENAME_2="Pomme-$srcGitRev2.tar.gz"
SOURCE_DIR_2="Pomme-$srcGitRev2"
PATCHES_2="bugdom-$portVersion-source2.patchset"
ADDITIONAL_FILES="bugdom.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
bugdom$secondaryArchSuffix = $portVersion
app:Bugdom = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libsdl2_2.0$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgl$secondaryArchSuffix
devel:libsdl2_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
# submodule
rm -rf extern/Pomme
ln -s $sourceDir2 extern/Pomme
# building
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON
cd build
make $jobArgs
}
INSTALL()
{
# create app folder and move data there
mkdir -p $appsDir/Bugdom
cp -ra Data $appsDir/Bugdom
cp -a build/Bugdom $appsDir/Bugdom
# put docs in right place
mkdir -p $docDir
cp -a docs/* $docDir
local APP_SIGNATURE="application/x-vnd.bugdom"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/bugdom.rdef.in > $sourceDir/bugdom.rdef
addResourcesToBinaries $sourceDir/bugdom.rdef $appsDir/Bugdom/Bugdom
addAppDeskbarSymlink $appsDir/Bugdom/Bugdom
}