diff --git a/haiku-apps/bemines/bemines-1.0b2.recipe b/haiku-apps/bemines/bemines-1.0b2.recipe new file mode 100644 index 000000000..7ce5ce14e --- /dev/null +++ b/haiku-apps/bemines/bemines-1.0b2.recipe @@ -0,0 +1,46 @@ +SUMMARY="More than a near-exact clone of the classic Windows game." +DESCRIPTION=" +It's about time we had more than a near-exact clone of the classic Windows game, +Minesweeper. + +Controls +- Left click: Reveal a box. Clicking on a mine will lose the game. +- Right click: Change a box to either unmarked, flagged as a mine, or a question mark. +- Middle click: Sonar ping which reveals all mines in a 3x3 square without the \ + danger of setting them off. It comes with a 20 second cost added to your \ + time. Left clicking while holding down the Alt key will also will do this. +- Click with both buttons: If the tile is a number and the appropriate number \ + of mines around it have been flagged, it will clear all the other squares \ + around the number. Of course, if you've made a mistake, you'll probably \ + set off a mine. Left clicking while holding down the Shift key will also \ + do this." +HOMEPAGE="https://github.com/HaikuArchives/BeMines" +SRC_URI="git+https://github.com/haikuarchives/bemines#be29173f854c82f5b312ed31b5245b807a5afe0f" +LICENSE="MIT" +COPYRIGHT="2009 Jon Yoder" +ARCHITECTURES="x86_gcc2" +REVISION="1" + +PATCHES="bemines-$portVersion.patchset" + +PROVIDES=" + bemines = $portVersion + app:bemines +" + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:gcc +" + +BUILD() { + gcc src/*.cpp -o BeMines -lbe -ltranslation -lmedia + xres -o BeMines src/BeMines.rsrc +} + +INSTALL() { + mkdir -p $appsDir/BeMines + cp BeMines $appsDir/BeMines + cp -r src/themes $appsDir/BeMines + addAppDeskbarSymlink $appsDir/BeMines/BeMines BeMines +} diff --git a/haiku-apps/bemines/patches/bemines-1.0b2.patchset b/haiku-apps/bemines/patches/bemines-1.0b2.patchset new file mode 100644 index 000000000..4fbb84406 --- /dev/null +++ b/haiku-apps/bemines/patches/bemines-1.0b2.patchset @@ -0,0 +1,22 @@ +From 75a23a19f63db6a11dee7d5f0e2b527407d1c135 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Fri, 28 Nov 2014 14:05:40 +0100 +Subject: Build fix. + + +diff --git a/src/GameStyle.cpp b/src/GameStyle.cpp +index c343d23..1202c12 100644 +--- a/src/GameStyle.cpp ++++ b/src/GameStyle.cpp +@@ -125,7 +125,7 @@ GameStyle::SetStyle(const char *stylename) + fLEDNumbers[i] = GetStyleBitmap(ref,ledname.String()); + } + +- fStyleName = data ? data->name : "Default"; ++ fStyleName = data ? data->name : BString("Default"); + return true; + } + +-- +1.8.3.4 +