From 3a74b8ab000947170d09b4b9d5f2de1b5bb98c2f Mon Sep 17 00:00:00 2001 From: noryb009 Date: Wed, 4 Dec 2013 22:47:45 -0500 Subject: [PATCH 1/3] Update Puri recipe, work done by GCI student Luke --- haiku-apps/puri/puri-0.3.9.1.recipe | 76 +++++++++++++++++++++-------- 1 file changed, 56 insertions(+), 20 deletions(-) diff --git a/haiku-apps/puri/puri-0.3.9.1.recipe b/haiku-apps/puri/puri-0.3.9.1.recipe index 272c4df9d..2ca32d785 100644 --- a/haiku-apps/puri/puri-0.3.9.1.recipe +++ b/haiku-apps/puri/puri-0.3.9.1.recipe @@ -1,29 +1,65 @@ -DESCRIPTION="Puri is a 2D and 3D chess game. Playing online is also supported" -HOMEPAGE="http://haiku.bplaced.net/" -SRC_URI="http://haiku.bplaced.net/puri/sources/puri-0.3.9.1.zip" +SUMMARY="Puri is a 2D and 3D chess game." +DESCRIPTION=" + Puri is a 2D and 3D chess game. You can play against a computer, + or play online against other people. + " +HOMEPAGE="https://gitorious.org/puri-master-of-chess/puri/" +SRC_URI="https://gitorious.org/puri-master-of-chess/puri/archive/59b5db4b337fc432b64a7d099f7b7e0fc8ece3c7.tar.gz" +CHECKSUM_MD5="467d00355e3450e9d3b1d126afcf06a6" +LICENSE="MIT" +COPYRIGHT=" + 2005-2007 Ingo Weinhold + 2010-2012 Haiku Inc." REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -CHECKSUM_MD5="6e0a48e31dae972ccb010437a2d72dd8" -MESSAGE="This port only builds with gcc4." +ARCHITECTURES="?x86 ?x86_64" + +SECONDARY_ARCHITECTURES="x86" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi + +PROVIDES=" + Puri$secondaryArchSuffix = $portVersion + app:Puri$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libpng$secondaryArchSuffix + lib:libglu$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libglu$secondaryArchSuffix + devel:libpng$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + gcc$secondaryArchSuffix + binutils$secondaryArchSuffix + cmd:jam + " + +SOURCE_DIR="puri-master-of-chess-puri" + BUILD() { - cd puri-0.3.9.1 + export PATH="/bin/x86:$PATH" jam } INSTALL() { - puri=${DESTDIR}/`finddir B_APPS_DIRECTORY`/Puri - mkdir -p ${puri} - mkdir -p ${puri}/data/ - mkdir -p ${puri}/Engines/ - cd puri-0.3.9.1 - cp Puri ${puri} - cp -R ./data/* ${puri}/data - cp ./Engines/* ${puri}/Engines - chmod 755 ${puri}/Engines/stockfish + cd source + + mkdir -p $appsDir/Puri + + cp Puri $appsDir/Puri + addAppDeskbarSymlink $appsDir/Puri/Puri + + cp -R data $appsDir/Puri/data + cp -R Engines $appsDir/Puri/Engines + chmod 755 $appsDir/Puri/Engines/stockfish } - -LICENSE="MIT" -COPYRIGHT="2010-2012 Haiku inc." From 738ab3fd2dd847314b2559a4a3ea03f326242f72 Mon Sep 17 00:00:00 2001 From: noryb009 Date: Thu, 5 Dec 2013 18:23:24 -0500 Subject: [PATCH 2/3] Clean up Puri recipe --- haiku-apps/puri/puri-0.3.9.1.recipe | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/haiku-apps/puri/puri-0.3.9.1.recipe b/haiku-apps/puri/puri-0.3.9.1.recipe index 2ca32d785..1ee54bf89 100644 --- a/haiku-apps/puri/puri-0.3.9.1.recipe +++ b/haiku-apps/puri/puri-0.3.9.1.recipe @@ -7,12 +7,9 @@ HOMEPAGE="https://gitorious.org/puri-master-of-chess/puri/" SRC_URI="https://gitorious.org/puri-master-of-chess/puri/archive/59b5db4b337fc432b64a7d099f7b7e0fc8ece3c7.tar.gz" CHECKSUM_MD5="467d00355e3450e9d3b1d126afcf06a6" LICENSE="MIT" -COPYRIGHT=" - 2005-2007 Ingo Weinhold - 2010-2012 Haiku Inc." +COPYRIGHT="2010-2012 Haiku Inc." REVISION="1" ARCHITECTURES="?x86 ?x86_64" - SECONDARY_ARCHITECTURES="x86" if [ $effectiveTargetArchitecture != x86_gcc2 ]; then # x86_gcc2 is fine as primary target architecture as long as we're building @@ -38,15 +35,17 @@ BUILD_REQUIRES=" " BUILD_PREREQUIRES=" gcc$secondaryArchSuffix - binutils$secondaryArchSuffix cmd:jam + cmd:ar$secondaryArchSuffix + cmd:as$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:ranlib$secondaryArchSuffix " SOURCE_DIR="puri-master-of-chess-puri" BUILD() { - export PATH="/bin/x86:$PATH" jam } @@ -63,3 +62,4 @@ INSTALL() cp -R Engines $appsDir/Puri/Engines chmod 755 $appsDir/Puri/Engines/stockfish } + From dc75b5e3df1ec4e4ed07f11728167e7308f44926 Mon Sep 17 00:00:00 2001 From: noryb009 Date: Fri, 6 Dec 2013 07:09:09 -0500 Subject: [PATCH 3/3] Move Puri to haiku-games --- {haiku-apps => haiku-games}/puri/puri-0.3.9.1.recipe | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {haiku-apps => haiku-games}/puri/puri-0.3.9.1.recipe (100%) diff --git a/haiku-apps/puri/puri-0.3.9.1.recipe b/haiku-games/puri/puri-0.3.9.1.recipe similarity index 100% rename from haiku-apps/puri/puri-0.3.9.1.recipe rename to haiku-games/puri/puri-0.3.9.1.recipe