mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Gish: add recipe for 1.2 version (#3268)
This commit is contained in:
35
games-arcade/gish/additional-files/gish.rdef.in
Normal file
35
games-arcade/gish/additional-files/gish.rdef.in
Normal file
@@ -0,0 +1,35 @@
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = 0,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "Gish",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon array {
|
||||
$"6E636966060401810201160340DD6F4049E0BFD9AC4068F6481199482A140080"
|
||||
$"9F011E3D050001E8EB1FF00201060235A4C4B19C193265D8366B994862B74AFF"
|
||||
$"1700E8E8E8FFE4E80002010602360ED032941AB2734B35E9424AB5DE4ADEA200"
|
||||
$"E8E8E8FFE4E800070003BF50CAD9BF50CAD9C59FCAD95E58CA20CB2ACE41C53E"
|
||||
$"C669C549C991C5E8C669C5490206BFFDBA53BA3FBA534FBA53C90AC1AAC720BD"
|
||||
$"02CCBACAA5C3A8CADDC93DCA73C2C4CAEEC093CB0FC195CB04BD6ACB31B6C0C9"
|
||||
$"DCB8CBCB13B51CC8E2B623C1AAB563C6A0B6DEBCDB0206BFFDBA53BA3FBA534F"
|
||||
$"BA53C90AC1AAC720BD02CCBACAA5C3A8CADDC93DCA73C2C4CAEEC093CB0FC195"
|
||||
$"CB04BD6ACB31B6C0C9DCB8CBCB13B51CC8E2B623C1AAB563C6A0B6DEBCDB0204"
|
||||
$"BFB5C5A6BF81C4C7BFE951BCB0C6D1BE44C698BB1CC709B983C693B9B7C772B9"
|
||||
$"4EC5B3BC00C497BA6CC4D0BD94C45E0204BFB5C5A6BF81C4C7BFE951BCB0C6D1"
|
||||
$"BE44C698BB1CC709B983C693B9B7C772B94EC5B3BC00C497BA6CC4D0BD94C45E"
|
||||
$"0204C927C4D9C909C3F9C945C5B9C631C5FEC7AFC5CFC4B2C62DC33EC5ACC35C"
|
||||
$"C68CC320C4CCC5BCC3C2C43EC3F0C73AC3930204C927C4D9C909C3F9C945C5B9"
|
||||
$"C631C5FEC7AFC5CFC4B2C62DC33EC5ACC35CC68CC320C4CCC5BCC3C2C43EC3F0"
|
||||
$"C73AC393070A000100000A010101000A0201021001178220040A040103000A02"
|
||||
$"01041001178000040A050105000A020106100117800004"
|
||||
};
|
||||
93
games-arcade/gish/gish-1.2~git.recipe
Normal file
93
games-arcade/gish/gish-1.2~git.recipe
Normal file
@@ -0,0 +1,93 @@
|
||||
SUMMARY="An amorphous ball of tar that rolls and squishies around"
|
||||
DESCRIPTION="Gish is a side-scrolling platformer video game with some physics puzzle elements \
|
||||
developed by Cryptic Sea (pseudonym of Alex Austin), Edmund McMillen, Josiah Pisciotta and \
|
||||
published by Chronic Logic in 2004. Cryptic Sea pledged Gish to go open source under the \
|
||||
GPLv2 on May 29, 2010."
|
||||
HOMEPAGE="http://exlmoto.ru/gish-droid/"
|
||||
COPYRIGHT="2004-2017 Cryptic Sea, 2017-2018 EXL"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
srcGitRev="bd5a8e455ff57e60d65262c0e913253b80cf211c"
|
||||
SOURCE_URI="https://github.com/EXL/Gish/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="bf63177d8cb4bb11caa895671fad1d51a9954a815457f99807a0a0918f527ef7"
|
||||
SOURCE_DIR="Gish-$srcGitRev"
|
||||
srcGitRev2="84dcd3b7a6ab656574ad98516b01638a89104722"
|
||||
SOURCE_URI_2="https://github.com/EXL/BeGameLauncher/archive/$srcGitRev2.tar.gz"
|
||||
CHECKSUM_SHA256_2="b64297feb633681474cf8d6ec9088f5eded1d4c92fa8932edb170bf49fd8703a"
|
||||
SOURCE_DIR_2="BeGameLauncher-$srcGitRev2"
|
||||
ADDITIONAL_FILES="gish.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64 ?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gish$secondaryArchSuffix = $portVersion
|
||||
app:Gish$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libopenal$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DSDL2_INCLUDE_DIR=/system/$relativeIncludeDir \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DGLES=off \
|
||||
-DANDROID=off \
|
||||
-DCMAKE_C_FLAGS="-D__linux__ -DHAIKU_PACKAGE=1" \
|
||||
../gish/src/main/cpp
|
||||
make $jobArgs
|
||||
|
||||
cd $sourceDir2
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DLAUNCHER=gish
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
mkdir -p $appsDir/Gish
|
||||
|
||||
cp Release/Gish $appsDir/Gish/
|
||||
cp $sourceDir2/build/GishLauncher "$appsDir/Gish/Gish Launcher"
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.gish"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -c 1-1`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/gish.rdef.in > $sourceDir/gish.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/gish.rdef "$appsDir/Gish/Gish"
|
||||
addAppDeskbarSymlink "$appsDir/Gish/Gish Launcher"
|
||||
}
|
||||
Reference in New Issue
Block a user