From 90dbec33595f98a1b16ba2ff507222180bdad7bc Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 11 Apr 2021 11:21:15 +0200 Subject: [PATCH] tecnoballz, new recipe (#5828) --- .../patches/tecnoballz-0.94~git.patchset | 46 +++++++++++++ .../tecnoballz/tecnoballz-0.94~git.recipe | 67 +++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 games-arcade/tecnoballz/patches/tecnoballz-0.94~git.patchset create mode 100644 games-arcade/tecnoballz/tecnoballz-0.94~git.recipe diff --git a/games-arcade/tecnoballz/patches/tecnoballz-0.94~git.patchset b/games-arcade/tecnoballz/patches/tecnoballz-0.94~git.patchset new file mode 100644 index 000000000..38a387d7d --- /dev/null +++ b/games-arcade/tecnoballz/patches/tecnoballz-0.94~git.patchset @@ -0,0 +1,46 @@ +From 97cad7427a294efcd6bcf43dd88d9a36d7436bcc Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sun, 11 Apr 2021 10:43:11 +0000 +Subject: Don't use pthread + + +diff --git a/configure.ac b/configure.ac +index 50e8b40..ae4374d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -33,7 +33,7 @@ AC_CHECK_LIB(SDL_mixer, Mix_GetChunk, [ + ]) + AC_CHECK_LIB(mikmod, Player_Stop, [ + MIKMOD_LIBS="-lmikmod" +- MIKMOD_FLAGS="-pthread -D_REENTRANT" ++ MIKMOD_FLAGS="-D_REENTRANT" + ],[ + AC_MSG_ERROR(Could not find the Mikmod library : -lmikmod) + ]) +-- +2.30.2 + + +From 372e0086317d1e0095e8cc3520d9795177f27e32 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sun, 11 Apr 2021 10:46:10 +0000 +Subject: Fix installation paths + + +diff --git a/src/Makefile.am b/src/Makefile.am +index f9f7b1b..fb6e65f 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,7 +1,7 @@ + + NULL = +-gamesdir = $(prefix)/games +-scoredir = /var/games/tecnoballz ++gamesdir = $(prefix)/apps ++scoredir = $(prefix)/settings/tecnoballz + score = tecnoballz.hi + + SUBDIRS = TecnoballZ +-- +2.30.2 + diff --git a/games-arcade/tecnoballz/tecnoballz-0.94~git.recipe b/games-arcade/tecnoballz/tecnoballz-0.94~git.recipe new file mode 100644 index 000000000..81ab5616f --- /dev/null +++ b/games-arcade/tecnoballz/tecnoballz-0.94~git.recipe @@ -0,0 +1,67 @@ +SUMMARY="Addicting retro break-out game ported from the Amiga" +DESCRIPTION="A exciting Brick Breaker with 50 levels of game and 11 special \ +levels, distributed on the 2 modes of game to give the player a sophisticated \ +system of attack weapons with an enormous power of fire that can be build by \ +gaining bonuses. +Numerous decors, musics and sounds complete this great game. +This game was ported from the Commodore Amiga. " +HOMEPAGE="https://linux.tlk.fr/games/TecnoballZ/" +REVISION="1" +COPYRIGHT="1991-2016 TLK Games" +LICENSE="GNU GPL v3" +srcGitRev="921c5c0ef8e245d5f7cf87dce19d89167413abf1" +SOURCE_URI="https://github.com/brunonymous/tecnoballz/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="a210f18a9b0c20e5d13fd80007f3e9d223b08ba0b244d878623e87d74c77f258" +SOURCE_FILENAME="tecnoballz-$portVersion.tar.gz" +SOURCE_DIR="tecnoballz-$srcGitRev" +PATCHES="tecnoballz-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +GLOBAL_WRITABLE_FILES=" + settings/tecnoballz/tecnoballz.hi keep-old + " + +PROVIDES=" + tecnoballz$secondaryArchSuffix = $portVersion + app:TecnoballZ + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libmikmod$secondaryArchSuffix + lib:libSDL_1.2$secondaryArchSuffix + lib:libSDL_image_1.2$secondaryArchSuffix + lib:libSDL_mixer_1.2$secondaryArchSuffix + lib:libtinyxml$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libmikmod$secondaryArchSuffix + devel:libSDL_1.2$secondaryArchSuffix + devel:libSDL_image_1.2$secondaryArchSuffix + devel:libSDL_mixer_1.2$secondaryArchSuffix + devel:libtinyxml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:awk + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + autoreconf -vfi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + mv $appsDir/tecnoballz $appsDir/TecnoballZ + addAppDeskbarSymlink $appsDir/TecnoballZ +}