mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
84 lines
2.8 KiB
Bash
84 lines
2.8 KiB
Bash
SUMMARY="Racing game set in prehistoric times"
|
|
DESCRIPTION="In Cro-Mag Rally you are a speed-hungry caveman named Brog who races through \
|
|
the Stone, Bronze, and Iron Ages in primitive vehicles such as the Geode Cruiser, Bone Buggy, \
|
|
Logmobile, Trojan Horse, and many others. Brog has at his disposal an arsenal of primitive \
|
|
weaponry ranging from Bone Bombs to Chinese Bottle Rockets and Heat Seeking Homing Pigeons. \
|
|
In addition to single-player racing where one player races against the computer, there are \
|
|
also several different multi-player modes including Tag, Capture the Flag, and Survival. \
|
|
Up to four players can play on a single computer in split-screen mode"
|
|
HOMEPAGE="https://github.com/jorio/CroMagRally"
|
|
COPYRIGHT="2000 Pangea Software, Inc."
|
|
LICENSE="CC-BY-NC-SA-4.0"
|
|
REVISION="1"
|
|
SOURCE_URI_1="https://github.com/jorio/CroMagRally/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256_1="961a36ed217f170898954d8c28e8834b5617675e741e611490e792b028ea677c"
|
|
SOURCE_DIR_1="CroMagRally-$portVersion"
|
|
PATCHES="cro_mag_rally-$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="cro_mag_rally-$portVersion-source2.patchset"
|
|
ADDITIONAL_FILES="cro_mag_rally.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
cro_mag_rally$secondaryArchSuffix = $portVersion
|
|
app:CroMagRally = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libSDL2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -rf extern/Pomme
|
|
ln -s $sourceDir2 $sourceDir/extern/Pomme
|
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
# create app folder and move data there
|
|
mkdir -p $appsDir/CroMagRally
|
|
cp -ra Data $appsDir/CroMagRally
|
|
cp -a build/CroMagRally $appsDir/CroMagRally
|
|
# put docs in right place
|
|
mkdir -p $docDir
|
|
cp -a docs/* $docDir
|
|
|
|
local APP_SIGNATURE="application/x-vnd.cromagrally"
|
|
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/cro_mag_rally.rdef.in > $sourceDir/cro_mag_rally.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/cro_mag_rally.rdef $appsDir/CroMagRally/CroMagRally
|
|
|
|
addAppDeskbarSymlink $appsDir/CroMagRally/CroMagRally
|
|
}
|