From 8aba8f6cde544d3eedeb731be1439e776ae84e52 Mon Sep 17 00:00:00 2001 From: Begasus Date: Sat, 7 May 2016 01:17:55 +0200 Subject: [PATCH] PenguinCommand new recipe (#577) * PenguinCommand new recipe * penguin-command new recipe --- .../patches/penguin-command-1.6.11.patch | 11 ++++ .../penguin_command-1.6.11.recipe | 55 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 games-arcade/penguin_command/patches/penguin-command-1.6.11.patch create mode 100644 games-arcade/penguin_command/penguin_command-1.6.11.recipe diff --git a/games-arcade/penguin_command/patches/penguin-command-1.6.11.patch b/games-arcade/penguin_command/patches/penguin-command-1.6.11.patch new file mode 100644 index 000000000..fd2553d9e --- /dev/null +++ b/games-arcade/penguin_command/patches/penguin-command-1.6.11.patch @@ -0,0 +1,11 @@ +--- penguin-command-1.6.11/src/main.c.org 2016-04-27 21:43:29.272105472 +0200 ++++ penguin-command-1.6.11/src/main.c 2016-04-27 21:37:38.985661440 +0200 +@@ -32,7 +32,7 @@ + #endif + + +- int fullscreen=1, CityDestroyed[6]={0,0,0,0,0,0}, ++ int fullscreen=0, CityDestroyed[6]={0,0,0,0,0,0}, + CannonDestroyed[3]={0,0,0}, Score=0, HWCursor=0, NoAlpha=0, ArcadeMode=0, MusicVol=10, SoundVol=10; + //images + SDL_Surface *ShotPic,*CityPic,*BackPic,*CityHitPic,*Cannon[21],*Font, diff --git a/games-arcade/penguin_command/penguin_command-1.6.11.recipe b/games-arcade/penguin_command/penguin_command-1.6.11.recipe new file mode 100644 index 000000000..3724084f7 --- /dev/null +++ b/games-arcade/penguin_command/penguin_command-1.6.11.recipe @@ -0,0 +1,55 @@ +SUMMARY="A clone of the classic Missile Command game" +DESCRIPTION="Penguin Command is a clone of the classic Missile Command game, \ +but has better graphics and sound. The gameplay has been slightly modified." +HOMEPAGE="http://www.linux-games.com/penguin-command/" +COPYRIGHT="2007 Karl Bartel, Skaven" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://downloads.sf.net/penguin-command/penguin-command-$portVersion.tar.gz" +CHECKSUM_SHA256="659c7b5f3f968f386e820cf7387d88c0a61c17dfbdb005bd85f8e93c537e89d6" +SOURCE_DIR="penguin-command-$portVersion" + +PATCHES="penguin-command-$portVersion.patch" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PROVIDES=" + penguin_command = $portVersion + app:PenguinCommand = $portVersion + " +REQUIRES=" + haiku + lib:libsdl + lib:libsdl_image + lib:libsdl_mixer + lib:libz + " + +BUILD_REQUIRES=" + haiku_devel + devel:libsdl + devel:libsdl_image + devel:libsdl_mixer + devel:libz + " +BUILD_PREREQUIRES=" + cmd:gcc + cmd:libtoolize + cmd:make + " + +BUILD() +{ + libtoolize -fci + sed -i 's/-lm//g' configure + ./configure --prefix=$appsDir/PenguinCommand + make $jobArgs +} + +INSTALL() +{ + make install + mv $appsDir/PenguinCommand/bin/penguin-command $appsDir/PenguinCommand/PenguinCommand + rm -r $appsDir/PenguinCommand/bin + addAppDeskbarSymlink $appsDir/PenguinCommand/PenguinCommand PenguinCommand +}