mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
SUMMARY="The Legend of Edgar is a platform game"
|
|
DESCRIPTION="Edgar must battle his way across the world, solving puzzles and \
|
|
defeating powerful enemies to achieve his quest. When Edgar's father fails \
|
|
to return home after venturing out one dark and stormy night, Edgar fears the \
|
|
worst: he has been captured by the evil sorceror who lives in a fortress \
|
|
beyond the forbidden swamp. Donning his armour, Edgar sets off to rescue him, \
|
|
but his quest will not be easy..."
|
|
HOMEPAGE="http://www.parallelrealities.co.uk/p/legend-of-edgar.html"
|
|
COPYRIGHT="2009-2017 Parallel Realities"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/riksweeney/edgar/releases/download/$portVersion/edgar-$portVersion-1.tar.gz"
|
|
CHECKSUM_SHA256="5703e7244f1ff0020985ac7f73530525ce88360444609cd45fd519d3f7c5fee8"
|
|
SOURCE_DIR="edgar-$portVersion"
|
|
ADDITIONAL_FILES="edgar.rdef.in"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
PROVIDES="
|
|
edgar = $portVersion
|
|
app:edgar = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libintl
|
|
lib:libpng16
|
|
lib:libSDL
|
|
lib:libSDL_image
|
|
lib:libSDL_mixer
|
|
lib:libSDL_ttf
|
|
lib:libz
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libintl
|
|
devel:libpng
|
|
devel:libSDL
|
|
devel:libSDL_image
|
|
devel:libSDL_mixer
|
|
devel:libSDL_ttf
|
|
devel:libz
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make PREFIX=$appsDir/Edgar $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
installDir=$appsDir/Edgar/
|
|
mkdir -p "$installDir"
|
|
make install PREFIX="$installDir"
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
$portDir/additional-files/edgar.rdef.in > edgar.rdef
|
|
|
|
addResourcesToBinaries edgar.rdef \
|
|
$appsDir/Edgar/games/edgar
|
|
|
|
ln -sr $appsDir/Edgar/games/edgar $appsDir/Edgar/Edgar
|
|
|
|
addAppDeskbarSymlink $appsDir/Edgar/Edgar
|
|
}
|