diff --git a/games-arcade/rocksndiamonds/patches/rocksndiamonds-4.1.2.0.patchset b/games-arcade/rocksndiamonds/patches/rocksndiamonds-4.1.2.0.patchset new file mode 100644 index 000000000..cba522d5a --- /dev/null +++ b/games-arcade/rocksndiamonds/patches/rocksndiamonds-4.1.2.0.patchset @@ -0,0 +1,22 @@ +From 8c096e3290fd2b55f5f4da943be2b0ba434041ad Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sat, 23 Mar 2019 13:23:30 +0100 +Subject: fix undefined references to fopen64, ftello64 and fseeko64 + + +diff --git a/src/libgame/zip/ioapi.h b/src/libgame/zip/ioapi.h +index 0741de4..1791243 100644 +--- a/src/libgame/zip/ioapi.h ++++ b/src/libgame/zip/ioapi.h +@@ -33,7 +33,7 @@ + # define ftello64 ftell + # define fseeko64 fseek + #else +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__) || defined(__linux__) ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__) || defined(__linux__) || defined(__HAIKU__) + # define fopen64 fopen + # define ftello64 ftello + # define fseeko64 fseeko +-- +2.19.1 + diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-4.1.2.0.recipe b/games-arcade/rocksndiamonds/rocksndiamonds-4.1.2.0.recipe new file mode 100644 index 000000000..0c492bdff --- /dev/null +++ b/games-arcade/rocksndiamonds/rocksndiamonds-4.1.2.0.recipe @@ -0,0 +1,81 @@ +SUMMARY="Arcade style game in the style of Boulder Dash" +DESCRIPTION=" +- network multiplayer games (upto 4 players) +- local multiplayer games (upto 4 players) +- soft scrolling with 50 frames per second +- freely customizable keyboard and joystick support +- stereo sound effects and music +- music modules and fullscreen in SDL version +- contains levels to play Boulder Dash, Emerald Mine and Sokoban +- lots of additional levels available (over 10.000)" +HOMEPAGE="https://www.artsoft.org/rocksndiamonds/" +COPYRIGHT="2001-2019 Artsoft Entertainment" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$portVersion.tar.gz" +CHECKSUM_SHA256="a3bb10474d498df2db931daf6a28de0c1014c48b7b674a276141f9a68db7ccaa" +ADDITIONAL_FILES="rocksndiamonds.rdef.in" +PATCHES="rocksndiamonds-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + rocksndiamonds$secondaryArchSuffix = $portVersion + app:"Rocks'n'Diamonds" = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + lib:libSDL2_image_2.0$secondaryArchSuffix + lib:libSDL2_mixer_2.0$secondaryArchSuffix + lib:libSDL2_net_2.0$secondaryArchSuffix + lib:libsmpeg$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libSDL2_2.0$secondaryArchSuffix + devel:libSDL2_image_2.0$secondaryArchSuffix + devel:libSDL2_mixer_2.0$secondaryArchSuffix + devel:libSDL2_net_2.0$secondaryArchSuffix + devel:libsmpeg$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + make sdl2 #RW_GAME_DIR=$settingsDir +} + +INSTALL() +{ + installDir=$appsDir/"Rocks'n'Diamonds" + mkdir -p $installDir + cp -r rocksndiamonds docs sounds graphics levels music $installDir + cp ChangeLog CREDITS $installDir + + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local INTERNAL="`echo "$portVersion" | cut -d. -f4`" + sed \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@INTERNAL@|$INTERNAL|" \ + $portDir/additional-files/rocksndiamonds.rdef.in > rocksndiamonds.rdef + + addResourcesToBinaries rocksndiamonds.rdef \ + $installDir/rocksndiamonds + + mv $installDir/rocksndiamonds $installDir/"Rocks'n'Diamonds" + + addAppDeskbarSymlink $installDir/"Rocks'n'Diamonds" +}