mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
86 lines
2.6 KiB
Bash
86 lines
2.6 KiB
Bash
SUMMARY="A Dune II game engine"
|
|
DESCRIPTION="Dune Legacy is an effort by a handful of developers to revitalize \
|
|
the first-ever real-time strategy game. \
|
|
It tries to be as similar as possible to the original gameplay but to integrate \
|
|
user interface features most modern realtime-strategy games have like selecting \
|
|
multiple units.
|
|
|
|
In order to be used, Dune Legacy expects the Dune II data to be in: \
|
|
'/boot/home/config/settings/dunelegacy/data'"
|
|
HOMEPAGE="https://dunelegacy.com/"
|
|
COPYRIGHT="2016-2025 Dune Legacy"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
srcGitRev=ddcdfd49c775250b9e748a65aeda299f8bd1927f
|
|
SOURCE_URI="https://github.com/Peppersawce/dunelegacyfork-2022/archive/$srcGitRev.zip"
|
|
CHECKSUM_SHA256="7093f01586728a8cb11e3ea2d9fbcee625d5654e174bbc10f380129b945cbefd"
|
|
SOURCE_DIR="dunelegacyfork-2022-$srcGitRev/"
|
|
ADDITIONAL_FILES="dunelegacy.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
dunelegacy$secondaryArchSuffix = $portVersion
|
|
cmd:dunelegacy = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libexecinfo$secondaryArchSuffix
|
|
lib:libminiupnpc$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
|
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libexecinfo$secondaryArchSuffix
|
|
devel:libminiupnpc$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
|
devel:libSDL2_ttf_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_EXE_LINKER_FLAGS="-lbsd -lnetwork -lSDL2_mixer -lSDL2_ttf -lexecinfo -lminiupnpc"
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# Pack man file
|
|
mkdir -p $manDir/man6 && cp dunelegacy.6 $manDir/man6/
|
|
|
|
# Generate the rdef
|
|
local MAJOR="`echo "$portVersion" | cut -b1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -b3,4`"
|
|
local MINOR="`echo "$portVersion" | cut -b6`"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
$portDir/additional-files/dunelegacy.rdef.in > dunelegacy.rdef
|
|
|
|
addResourcesToBinaries dunelegacy.rdef $prefix/bin/dunelegacy
|
|
|
|
# Make the app name uppercase then link it back in lowercase for cmd
|
|
mkdir -p $appsDir && mv $prefix/bin/dunelegacy $appsDir/"Dune Legacy"
|
|
ln -s $appsDir/"Dune Legacy" $prefix/bin/dunelegacy
|
|
addAppDeskbarSymlink $appsDir/"Dune Legacy"
|
|
}
|