mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
crimson, new recipe for CrimsonFields (#688)
This commit is contained in:
14
games-strategy/crimson/additional-files/crimson.rdef
Normal file
14
games-strategy/crimson/additional-files/crimson.rdef
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||||
|
|
||||||
|
resource app_version {
|
||||||
|
major = @MAJOR@,
|
||||||
|
middle = @MIDDLE@,
|
||||||
|
minor = @MINOR@,
|
||||||
|
variety = B_APPV_FINAL,
|
||||||
|
internal = 0,
|
||||||
|
short_info = "CrimsonFields",
|
||||||
|
long_info = "A turn-based tactical war game"
|
||||||
|
};
|
||||||
|
|
||||||
|
resource app_signature "application/x-vnd.CrimsonFields";
|
||||||
79
games-strategy/crimson/crimson-0.5.3.recipe
Normal file
79
games-strategy/crimson/crimson-0.5.3.recipe
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
SUMMARY="A turn-based tactical war game"
|
||||||
|
DESCRIPTION="The outcome of the war lies in your hands. You decide which \
|
||||||
|
units are sent to the front lines, and when to unleash the reserves. Your \
|
||||||
|
mission objectives range from defending strategically vital locations to \
|
||||||
|
simply destroying all enemy forces in the area. Protect supply convoys or \
|
||||||
|
raid enemy facilities to uncover technological secrets or fill your storage \
|
||||||
|
bays so you can repair damaged units or build new ones in your own \
|
||||||
|
factories. Lead your troops to victory!"
|
||||||
|
HOMEPAGE="http://crimson.seul.org/"
|
||||||
|
COPYRIGHT="2001-2009 Jens Granseuer"
|
||||||
|
LICENSE="GNU GPL v2"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="http://crimson.seul.org/files/crimson-$portVersion.tar.gz"
|
||||||
|
CHECKSUM_SHA256="e82aa28f729140711e2d04c426462d96d33ce8485f5d3ca3f394210e412cefd2"
|
||||||
|
ADDITIONAL_FILES="crimson.rdef"
|
||||||
|
|
||||||
|
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
crimson = $portVersion
|
||||||
|
cmd:bi2cf = $portVersion
|
||||||
|
cmd:cf2bmp = $portVersion
|
||||||
|
cmd:cfed = $portVersion
|
||||||
|
cmd:comet = $portVersion #leveleditor
|
||||||
|
app:CrimsonFields = $portVersion
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku
|
||||||
|
lib:libsdl
|
||||||
|
lib:libsdl_mixer
|
||||||
|
lib:libsdl_net_1.2
|
||||||
|
lib:libsdl_ttf
|
||||||
|
lib:libxml2
|
||||||
|
lib:libz
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku_devel
|
||||||
|
devel:libsdl
|
||||||
|
devel:libsdl_mixer
|
||||||
|
devel:libsdl_net_1.2
|
||||||
|
devel:libsdl_ttf
|
||||||
|
devel:libxml2
|
||||||
|
devel:libz
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:awk
|
||||||
|
cmd:gcc
|
||||||
|
cmd:make
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
runConfigure ./configure --enable-cfed \
|
||||||
|
--enable-comet --enable-bi2cf --enable-cf2bmp
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
mkdir $appsDir
|
||||||
|
mv $binDir/crimson $appsDir/CrimsonFields
|
||||||
|
|
||||||
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||||
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||||
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||||
|
sed \
|
||||||
|
-e "s|@MAJOR@|$MAJOR|" \
|
||||||
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||||
|
-e "s|@MINOR@|$MINOR|" \
|
||||||
|
$portDir/additional-files/crimson.rdef > crimson.rdef
|
||||||
|
addResourcesToBinaries crimson.rdef \
|
||||||
|
$appsDir/CrimsonFields
|
||||||
|
|
||||||
|
rm -r $dataDir/applications #not needed
|
||||||
|
rm -r $dataDir/pixmaps #not needed
|
||||||
|
addAppDeskbarSymlink $appsDir/CrimsonFields
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user