From c7c05bcb651e2c5e4c7d2c544c768a3ea4bbb959 Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Sun, 8 Dec 2013 18:30:12 +0100 Subject: [PATCH 1/8] Added pipepanic game .recipe --- games-kids/pipepanic/pipepanic-0.1.3.recipe | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 games-kids/pipepanic/pipepanic-0.1.3.recipe diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe new file mode 100644 index 000000000..c718cd2b2 --- /dev/null +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -0,0 +1,36 @@ +DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. " +HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/" +SRC_URI="http://files.prochsoft.cba.pl/haiku/pipepanic-0.1.3-src.zip" +CHECKSUM_MD5="96EAD956431A7E391659D83D97AF6653" +REVISION="1" +STATUS_HAIKU="unstable" +DEPEND="libsdl" + +BUILD() +{ + unzip pipepanic-0.1.3-src.zip + cd pipepanic-0.1.3-src + make +} + +INSTALL() +{ + mkdir bundle + mv pipepanic bundle/pipepanic + mv ascii15.bmp bundle/ascii15.bmp + mv ascii30.bmp bundle/ascii30.bmp + mv digits24.bmp bundle/digits24.bmp + mv digits48.bmp bundle/digits48.bmp + mv tiles24.bmp bundle/tiles24.bmp + mv tiles48.bmp bundle/tiles48.bmp + mv pipepanic.png bundle/pipepanic.png + make clean + + mkdir /boot/home/apps + mv bundle /boot/home/apps/Pipepanic +} + +# no TEST script available + +COPYRIGHT="Copyright (c) Thunor 2005-2013" +LICENSE="GNU GPL v2" From 47ec6f10cb810f972cad42753117c4dfaa70b297 Mon Sep 17 00:00:00 2001 From: Yourself Date: Sun, 8 Dec 2013 23:11:06 +0000 Subject: [PATCH 2/8] Fixed pipepanic .recipe file. --- games-kids/pipepanic/pipepanic-0.1.3.recipe | 58 +++++++++++++-------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe index c718cd2b2..2a8ab8e1b 100644 --- a/games-kids/pipepanic/pipepanic-0.1.3.recipe +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -1,36 +1,50 @@ +SUMMARY="A SDL Pipepanic game." DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. " HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/" -SRC_URI="http://files.prochsoft.cba.pl/haiku/pipepanic-0.1.3-src.zip" -CHECKSUM_MD5="96EAD956431A7E391659D83D97AF6653" +SRC_URI="git+https://github.com/MrPoxipol/pipepanic-haiku.git" +LICENSE="GNU GPL v2" +COPYRIGHT="Copyright (c) Thunor 2005-2013" REVISION="1" -STATUS_HAIKU="unstable" -DEPEND="libsdl" +ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + pipepanic = $portVersion + app:pipepanic = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libsdl$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + haiku_devel >= $haikuVersion + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD_REQUIRES=" + devel:libsdl$secondaryArchSuffix + " BUILD() { - unzip pipepanic-0.1.3-src.zip - cd pipepanic-0.1.3-src make } INSTALL() { - mkdir bundle - mv pipepanic bundle/pipepanic - mv ascii15.bmp bundle/ascii15.bmp - mv ascii30.bmp bundle/ascii30.bmp - mv digits24.bmp bundle/digits24.bmp - mv digits48.bmp bundle/digits48.bmp - mv tiles24.bmp bundle/tiles24.bmp - mv tiles48.bmp bundle/tiles48.bmp - mv pipepanic.png bundle/pipepanic.png - make clean - - mkdir /boot/home/apps - mv bundle /boot/home/apps/Pipepanic + mkdir -p $appsDir/Pipepanic + cp pipepanic $appsDir/Pipepanic/pipepanic + cp ascii15.bmp $appsDir/Pipepanic/ascii15.bmp + cp ascii30.bmp $appsDir/Pipepanic/ascii30.bmp + cp digits24.bmp $appsDir/Pipepanic/digits24.bmp + cp digits48.bmp $appsDir/Pipepanic/digits48.bmp + cp tiles24.bmp $appsDir/Pipepanic/tiles24.bmp + cp tiles48.bmp $appsDir/Pipepanic/tiles48.bmp + cp pipepanic.png $appsDir/Pipepanic/pipepanic.png + addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic } # no TEST script available - -COPYRIGHT="Copyright (c) Thunor 2005-2013" -LICENSE="GNU GPL v2" From a612fce789ab0ede6fe917a6c8e3dc98dbee7a07 Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Mon, 9 Dec 2013 00:31:45 +0000 Subject: [PATCH 3/8] Corrected .recipe file --- games-kids/pipepanic/pipepanic-0.1.3.recipe | 25 +++++++-------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe index 2a8ab8e1b..a0ab89f95 100644 --- a/games-kids/pipepanic/pipepanic-0.1.3.recipe +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -3,7 +3,7 @@ DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many d HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/" SRC_URI="git+https://github.com/MrPoxipol/pipepanic-haiku.git" LICENSE="GNU GPL v2" -COPYRIGHT="Copyright (c) Thunor 2005-2013" +COPYRIGHT="2005-2013 Thunor" REVISION="1" ARCHITECTURES="x86_gcc2 x86" @@ -17,15 +17,15 @@ REQUIRES=" lib:libsdl$secondaryArchSuffix " -BUILD_PREREQUIRES=" +BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel >= $haikuVersion haiku_devel >= $haikuVersion - cmd:gcc$secondaryArchSuffix - cmd:make + devel:libsdl$secondaryArchSuffix " -BUILD_REQUIRES=" - devel:libsdl$secondaryArchSuffix +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make " BUILD() @@ -36,15 +36,6 @@ BUILD() INSTALL() { mkdir -p $appsDir/Pipepanic - cp pipepanic $appsDir/Pipepanic/pipepanic - cp ascii15.bmp $appsDir/Pipepanic/ascii15.bmp - cp ascii30.bmp $appsDir/Pipepanic/ascii30.bmp - cp digits24.bmp $appsDir/Pipepanic/digits24.bmp - cp digits48.bmp $appsDir/Pipepanic/digits48.bmp - cp tiles24.bmp $appsDir/Pipepanic/tiles24.bmp - cp tiles48.bmp $appsDir/Pipepanic/tiles48.bmp - cp pipepanic.png $appsDir/Pipepanic/pipepanic.png + cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp pipepanic.png $appsDir/Pipepanic/ addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic -} - -# no TEST script available +} \ No newline at end of file From d914edb1cfeed092e797e94d22c11ce2d19891d9 Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Mon, 9 Dec 2013 02:26:26 +0000 Subject: [PATCH 4/8] Deleted line haiku_devel >= --- games-kids/pipepanic/pipepanic-0.1.3.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe index a0ab89f95..6cec7fd6b 100644 --- a/games-kids/pipepanic/pipepanic-0.1.3.recipe +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -19,7 +19,6 @@ REQUIRES=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel >= $haikuVersion - haiku_devel >= $haikuVersion devel:libsdl$secondaryArchSuffix " @@ -36,6 +35,6 @@ BUILD() INSTALL() { mkdir -p $appsDir/Pipepanic - cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp pipepanic.png $appsDir/Pipepanic/ + cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp lib -r $appsDir/Pipepanic/ addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic } \ No newline at end of file From c5885a30db620d5dda7778912e2ca2dac5cf334c Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Mon, 9 Dec 2013 13:44:34 +0000 Subject: [PATCH 5/8] 2# Changes. --- games-kids/pipepanic/pipepanic-0.1.3.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe index 6cec7fd6b..c4d4c6fa5 100644 --- a/games-kids/pipepanic/pipepanic-0.1.3.recipe +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -36,5 +36,5 @@ INSTALL() { mkdir -p $appsDir/Pipepanic cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp lib -r $appsDir/Pipepanic/ - addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic + addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic "Pipepanic" } \ No newline at end of file From ad089cd60a4fdabbc539add5a879edad3f50c48b Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Mon, 9 Dec 2013 16:44:50 +0100 Subject: [PATCH 6/8] SRC_URI is now from official tarbal. --- games-kids/pipepanic/pipepanic-0.1.3.recipe | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe index c4d4c6fa5..3a06505d8 100644 --- a/games-kids/pipepanic/pipepanic-0.1.3.recipe +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -1,7 +1,9 @@ SUMMARY="A SDL Pipepanic game." DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. " HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/" -SRC_URI="git+https://github.com/MrPoxipol/pipepanic-haiku.git" +SRC_URI="http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-0.1.3-source.tar.gz" +CHECKSUM_MD5="99b68e990012b2f58c184b8ba9e4fb4d" +SOURCE_DIR="pipepanic-0.1.3-source" LICENSE="GNU GPL v2" COPYRIGHT="2005-2013 Thunor" REVISION="1" @@ -35,6 +37,6 @@ BUILD() INSTALL() { mkdir -p $appsDir/Pipepanic - cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp lib -r $appsDir/Pipepanic/ + cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp $appsDir/Pipepanic/ addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic "Pipepanic" } \ No newline at end of file From f4333c04b6b768adbbceb8a8af4eb5435e6da5ad Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Mon, 9 Dec 2013 17:18:26 +0100 Subject: [PATCH 7/8] Now the source is downloaded from official tarbal. Patch generated... --- .../pipepanic/patches/pipepanic-0.1.3.patch | 23 +++++++++++++++++++ games-kids/pipepanic/pipepanic-0.1.3.recipe | 5 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 games-kids/pipepanic/patches/pipepanic-0.1.3.patch diff --git a/games-kids/pipepanic/patches/pipepanic-0.1.3.patch b/games-kids/pipepanic/patches/pipepanic-0.1.3.patch new file mode 100644 index 000000000..4bf74291e --- /dev/null +++ b/games-kids/pipepanic/patches/pipepanic-0.1.3.patch @@ -0,0 +1,23 @@ +--- ../main.c 2006-05-16 22:11:29.042991616 +0200 ++++ main-new.c 2013-12-09 16:52:30.000000000 +0100 +@@ -16,6 +16,10 @@ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + /* Includes */ ++// chdir() ++#include ++#include ++ + #include + #include + #include +@@ -102,6 +106,9 @@ + int main(int argc, char *argv[]) { + int count, count2; + ++ // For tracker (Thanks PulkoMandy) ++ chdir(dirname(argv[0])); ++ + /* Initialise the highscoreboard array because there may not yet + be a saved highscore[board]/rc file */ + for (count = 0; count < 5; count++) { diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe index 3a06505d8..5324ca060 100644 --- a/games-kids/pipepanic/pipepanic-0.1.3.recipe +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -1,4 +1,4 @@ -SUMMARY="A SDL Pipepanic game." +SUMMARY="A pipe connecting game." DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. " HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/" SRC_URI="http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-0.1.3-source.tar.gz" @@ -28,6 +28,9 @@ BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:make " +PATCHES=" + pipepanic-0.1.3.patch + " BUILD() { From f12c46eb09131cc575bf7fe456de139f5e188a05 Mon Sep 17 00:00:00 2001 From: MrPoxipol Date: Mon, 9 Dec 2013 17:54:54 +0100 Subject: [PATCH 8/8] Removed whitespaces in .patch file. --- games-kids/pipepanic/patches/pipepanic-0.1.3.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games-kids/pipepanic/patches/pipepanic-0.1.3.patch b/games-kids/pipepanic/patches/pipepanic-0.1.3.patch index 4bf74291e..e6c7c39f2 100644 --- a/games-kids/pipepanic/patches/pipepanic-0.1.3.patch +++ b/games-kids/pipepanic/patches/pipepanic-0.1.3.patch @@ -17,7 +17,7 @@ + // For tracker (Thanks PulkoMandy) + chdir(dirname(argv[0])); -+ ++ /* Initialise the highscoreboard array because there may not yet be a saved highscore[board]/rc file */ for (count = 0; count < 5; count++) {