summaryrefslogtreecommitdiff
path: root/games-arcade/retrobattle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/retrobattle
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/retrobattle')
-rw-r--r--games-arcade/retrobattle/Manifest8
-rw-r--r--games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch30
-rw-r--r--games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch22
-rw-r--r--games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch17
-rw-r--r--games-arcade/retrobattle/metadata.xml8
-rw-r--r--games-arcade/retrobattle/retrobattle-1.0.0.ebuild40
6 files changed, 125 insertions, 0 deletions
diff --git a/games-arcade/retrobattle/Manifest b/games-arcade/retrobattle/Manifest
new file mode 100644
index 000000000000..ae6d62154fe0
--- /dev/null
+++ b/games-arcade/retrobattle/Manifest
@@ -0,0 +1,8 @@
+AUX retrobattle-1.0.0-build.patch 734 SHA256 484661b0ecb1f1b6e981d8d5fcca54336c01fa1f63a7d2e2f35c24e756668075 SHA512 ef1bfaa78911b6a5d69a03ad0779fece864a521faf3cba99e60214ca46845f019c5a077562a396a3775441020275454955e83ecbb9bedf691dedbf1a178b0549 WHIRLPOOL 61f0fb9665485b12b13ec2188533ac3fba5e7c89dd70bfe6a0d2f357f0b292b6b287dc178b7c9b24993d03af72d81e68001bf65e6efafd024afe7ca5b3821ec3
+AUX retrobattle-1.0.0-gcc6.patch 735 SHA256 a665f5c9849f94e6ed86d09365d8218b2e76b3dbdefd7c14fe44e0cba75f1684 SHA512 f5b20cb17c7f0e6328ce03cbd19fc25f5a1f44fae2e86ffef497c6b1d0bd8922aea3e12f32f300c90eb2a68dbbb911abc4aa7edacd53c08617cc1ee24a5aed6a WHIRLPOOL 0814fc92b4dff82f78e602b5e22ae9eb1e7a6854250b25ec550b98483bb9de5cd618151bf2154740abff0c5ae1da4a12ae6154f3384c659e8e95383ff7208200
+AUX retrobattle-1.0.0-sound.patch 435 SHA256 5a2bffe53499a7f5a94b1b8bf98c8b02804927208e4cad50eda203d2768b1ad1 SHA512 e25737a8fd55ae7e54015a122754811e748e5cb26adf866ddd912547c72acf1ea8a70b33724bd17ee35c959051d4210047aaee8a7a88ebe85ab0c4a1083386a1 WHIRLPOOL e37078c0c6cd547ec347c0916c9b44788b11e5b3fa0537d2774b4dfd9ca1bb2c592ee01e0d612c028fad3476951b4e7680b342539d73cc5689157e7ce91e10e1
+DIST retrobattle-src-1.0.0.tar.bz2 4007959 SHA256 0d184c6d7afc2865687fb9323754268692db165799f617422aafd57096540d68 SHA512 2d006fc9a62e57d7fb3c0f0e535a5c702204b6341566064d7683526923839e8a43e14b308e76a8a1f6794f7c682f6344975956877f80bbcbc33ee61cd640ff9e WHIRLPOOL 0af965622d322a65ff3521ab816d208e4f8875a1620b9da51ddb1a4b39c97cbf7e305cf51ac3d27773b1bea43f254648dd846964fc9cec9eb3716f766e1f44cc
+EBUILD retrobattle-1.0.0.ebuild 932 SHA256 63bcd4182fff58f04fc3c3556274c4f966d92f63b541bd6b2d75934cb760712f SHA512 073a3e68602fbb5e5e12b586e109db4032ceae5c8570b40beec65e8438aefc4b5905f59e648d80e62e2274a2bbec092c874a48289e89cf049843e766c4b85fd8 WHIRLPOOL 11db9397e748c6bddb3ef86fb092db6bd13738cb919ab0f97cbc9dda136e8a52508d807b2746397c00ed2e67f90fc9cd5052fe8e7e262c70ee981ef4d7a93854
+MISC ChangeLog 2914 SHA256 3dac5591d4fe5a8627abb7d6f9bcf6c0d7ee56b3b5daf3afb395ebb34acd753e SHA512 c5942f649f598a623b0e62261e7c1e0f82b41991610db48c01494ff3a11aea635eb47e66250475f6513a28c2b82387a2957f6a2c5d049c5c802b8a0dd1bf0eaa WHIRLPOOL bfaa4acae40821e4405faa6ef80cfc06e5432ba67493e90d8a2070cc089efc53ff316fb6af851d5a4328fdfb85583646a625c4bb43183f132564c99262158a44
+MISC ChangeLog-2015 1056 SHA256 5fa9c232dc2e6102b030b02b0144ec915af09cbb36970061ed7cf96e111cf074 SHA512 c3365bc1195766d736ed3ba21a913e69e22a0af29edc3dbd89abbb6ef8fdb25b2df77910a400bacfcdd1a4f862c6a6174983b8400e4230689153d3c3571f21de WHIRLPOOL 0ff3cb53e9021f86baf2bb723fab922d8df99fd832b4749493ff7c981273888977aa3018540e69f0408f5f77e4c654dc41e7263539bd4bc09de5c803dd0f02d9
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch
new file mode 100644
index 000000000000..3673ef01e17f
--- /dev/null
+++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch
@@ -0,0 +1,30 @@
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Aug 4 12:15:53 2012 +0200
+
+ respect CXX, CFLAGS and LDFLAGS
+
+--- src/Makefile
++++ src/Makefile
+@@ -1,10 +1,10 @@
+-CFLAGS = `sdl-config --cflags` -g -Wall -I. -DENABLE_BINRELOC
+-CPPFLAGS = $(CFLAGS)
++CXXFLAGS += $(shell sdl-config --cflags) -I.
++CPPFLAGS += -DENABLE_BINRELOC
+
+ # Uncomment the first LIBS line and comment out the other LIBS line to
+ # compile without SDL_Mixer
+ #LIBS = `sdl-config --libs`
+-LIBS = `sdl-config --libs` -lSDL_mixer
++LIBS = $(shell sdl-config --libs) -lSDL_mixer
+
+ RETROINSTALLDIR ?= /opt
+
+@@ -25,7 +25,7 @@
+
+
+ retrobattle: $(RETRO)
+- g++ -o $@ $^ $(LIBS)
++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+ mv $@ ..
+
+ clean:
diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch
new file mode 100644
index 000000000000..19974e36ea56
--- /dev/null
+++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch
@@ -0,0 +1,22 @@
+--- a/src/GameLogic.h
++++ b/src/GameLogic.h
+@@ -52,8 +52,8 @@
+ /* Fixed interval time-based animation */
+ static const int maximumFrameRate = 60;
+ static const int minimumFrameRate = 15;
+- static const float updateInterval = 1.0 / maximumFrameRate;
+- static const float maxCyclesPerFrame = maximumFrameRate / minimumFrameRate;
++ static const float updateInterval;
++ static const float maxCyclesPerFrame;
+
+ float lastFrameTime;
+ float cyclesLeftOver;
+--- a/src/GameLogic.cc
++++ b/src/GameLogic.cc
+@@ -206,3 +206,6 @@
+ {
+ sprintf(buf, "%s/data/gfx/%s", datadir, file);
+ }
++
++const float GameLogic::updateInterval = 1.0 / maximumFrameRate;
++const float GameLogic::maxCyclesPerFrame = maximumFrameRate / minimumFrameRate;
diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch
new file mode 100644
index 000000000000..591ce66e9f69
--- /dev/null
+++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch
@@ -0,0 +1,17 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Aug 5 16:22:22 UTC 2012
+Subject: sound
+
+resolves crackling background music
+
+--- src/SoundManager.cc
++++ src/SoundManager.cc
+@@ -25,7 +25,7 @@
+ SoundManager::SoundManager(char *datadir)
+ {
+ #ifndef NO_SDL_MIXER
+- if(Mix_OpenAudio(22050, AUDIO_S16SYS, 2, 1024))
++ if(Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024))
+ {
+ printf("SDL_mixer says: %s\n", Mix_GetError());
+ }
diff --git a/games-arcade/retrobattle/metadata.xml b/games-arcade/retrobattle/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-arcade/retrobattle/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-arcade/retrobattle/retrobattle-1.0.0.ebuild b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
new file mode 100644
index 000000000000..eed0252ed1e1
--- /dev/null
+++ b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P="${PN}-src-${PV}"
+DESCRIPTION="A NES-like platform arcade game"
+HOMEPAGE="http://remar.se/andreas/retrobattle/"
+SRC_URI="http://remar.se/andreas/retrobattle/files/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+# test is incomplete
+RESTRICT="test"
+
+DEPEND="media-libs/libsdl[X,sound,video]
+ media-libs/sdl-mixer[wav]"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${MY_P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-{build,sound,gcc6}.patch
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r "${WORKDIR}"/${MY_P}/data
+
+ # wrapper to pass datadir location
+ newgamesbin "${WORKDIR}"/${MY_P}/${PN} ${PN}.bin
+ games_make_wrapper ${PN} "${PN}.bin \"${GAMES_DATADIR}/${PN}\""
+
+ make_desktop_entry ${PN}
+ dodoc "${WORKDIR}"/${MY_P}/{manual.txt,README}
+
+ prepgamesdirs
+}