diff --git a/games-strategy/crimson/additional-files/crimson.rdef b/games-strategy/crimson/additional-files/crimson.rdef new file mode 100644 index 000000000..56bd8f09b --- /dev/null +++ b/games-strategy/crimson/additional-files/crimson.rdef @@ -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"; diff --git a/games-strategy/crimson/crimson-0.5.3.recipe b/games-strategy/crimson/crimson-0.5.3.recipe new file mode 100644 index 000000000..56268e7c5 --- /dev/null +++ b/games-strategy/crimson/crimson-0.5.3.recipe @@ -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 +}