mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
88 lines
2.7 KiB
Bash
88 lines
2.7 KiB
Bash
SUMMARY="Vintage top-down shooter game"
|
|
DESCRIPTION="This is Pangea Software's Mighty Mike updated to run on modern systems. Set in a toy \
|
|
store, this top-down action game is a staple of 90's Macintosh games. It was initially published \
|
|
in 1995 under the name Power Pete.
|
|
Gameplay and graphics wise, this update aims to be as faithful to the original as possible. It \
|
|
does bring a few enhancements, such as widescreen mode, framerate cap removal (with movement \
|
|
interpolation) and twin-stick gamepad controls."
|
|
HOMEPAGE="https://pangeasoft.net/mightymike"
|
|
COPYRIGHT="1995-2000 Pangea Software, Inc.
|
|
2021 Iliyas Jorio"
|
|
LICENSE="CC-BY-NC-SA-4.0"
|
|
REVISION="1"
|
|
|
|
SOURCE_URI="https://github.com/jorio/MightyMike/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="10b1cfc90e601b0bd875fd959127f1eaf1ffbc0ad54aa03db5f86197e6b2c8b9"
|
|
SOURCE_DIR="MightyMike-$portVersion"
|
|
PATCHES="mightymike-$portVersion.patchset"
|
|
srcGitRev2="0581b241624d16c453e0afab57a379b443229260"
|
|
SOURCE_URI_2="https://github.com/jorio/Pomme/archive/$srcGitRev2.tar.gz"
|
|
CHECKSUM_SHA256_2="5e74b0061908665e7a9c710d83969aa0234b78766b05eacfa86cc3c1c0d1f666"
|
|
SOURCE_FILENAME_2="Pomme-$srcGitRev2.tar.gz"
|
|
SOURCE_DIR_2="Pomme-$srcGitRev2"
|
|
PATCHES_2="mightymike-$portVersion-source2.patchset"
|
|
ADDITIONAL_FILES="mightymike.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
mightymike$secondaryArchSuffix = $portVersion
|
|
app:MightyMike = $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
|
|
cd build
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
# create app folder and move data there
|
|
mkdir -p $appsDir/MightyMike
|
|
cp -ra Data $appsDir/MightyMike
|
|
cp -a build/MightyMike $appsDir/MightyMike
|
|
# put docs in right place
|
|
mkdir -p $docDir
|
|
cp -a docs/* $docDir
|
|
|
|
local APP_SIGNATURE="application/x-vnd.mightymike"
|
|
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/mightymike.rdef.in > $sourceDir/mightymike.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/mightymike.rdef $appsDir/MightyMike/MightyMike
|
|
|
|
addAppDeskbarSymlink $appsDir/MightyMike/MightyMike "Mighty Mike"
|
|
}
|