diff options
Diffstat (limited to 'games-arcade/retrobattle')
6 files changed, 119 insertions, 0 deletions
diff --git a/games-arcade/retrobattle/Manifest b/games-arcade/retrobattle/Manifest new file mode 100644 index 000000000000..01315bf1f60b --- /dev/null +++ b/games-arcade/retrobattle/Manifest @@ -0,0 +1,6 @@ +AUX retrobattle-1.0.0-build.patch 734 BLAKE2B 4ffa45c16de1e4b61d96bf18c5cf79565bf3fb68b1bda293cf1e0a35a06d610f4e7a562d04c2781cfa39b24b723f17c97d03eea93d5d31e0fd48ed4d5d7e0934 SHA512 ef1bfaa78911b6a5d69a03ad0779fece864a521faf3cba99e60214ca46845f019c5a077562a396a3775441020275454955e83ecbb9bedf691dedbf1a178b0549 +AUX retrobattle-1.0.0-gcc6.patch 727 BLAKE2B ba3cf4079f453451e4c75cd219a9069d0aa8ba983a5c54a9429c3528fbb303cea5d74e39737cb8faf9e1b1ffbfc2b6fe12c4d339fb255c8d33bcc8f877d9902c SHA512 c6abf9dea211fa362ed3e2c65bdc4617e0f3419bf206fa2cff92bf6a5f37f0b616ee658468213329aa3de704ec61c0f53b0f450171f8543cb21f620a1e3d6747 +AUX retrobattle-1.0.0-sound.patch 435 BLAKE2B c415d1713858f5c5087c10fa29786ce8ba8127ebb72da6d9f0802609d1740e9265022526ea1bbb04f97b4173a00cbccb07fbfbbc015800a688b64e9c42c0aa42 SHA512 e25737a8fd55ae7e54015a122754811e748e5cb26adf866ddd912547c72acf1ea8a70b33724bd17ee35c959051d4210047aaee8a7a88ebe85ab0c4a1083386a1 +DIST retrobattle-src-1.0.0.tar.bz2 4007959 BLAKE2B efe20ccfc813b5c17b49694ab01a1a341fa2bf2bb45a0aaca99eb5bb1a814f12bfa6354308c0d9cc9937a159a20568312ddead0748b75803d97f9e9d0d86c99a SHA512 2d006fc9a62e57d7fb3c0f0e535a5c702204b6341566064d7683526923839e8a43e14b308e76a8a1f6794f7c682f6344975956877f80bbcbc33ee61cd640ff9e +EBUILD retrobattle-1.0.0-r1.ebuild 840 BLAKE2B d2af53b2b528cb0347ec1a963180c090ceff766f564a91ea860026737f6217207ce2cf238d9c37b9112dba3b8dcc93d22d5731b70bfe7483dee994b63f54a35f SHA512 2ae9eb08d4b88991242c9828f79064f283547708f643c8e4aef8818dfce7bbf7574feb0d6d2a73ad1a7be11015f686598b8c83297ed94ec202fd912414749160 +MISC metadata.xml 253 BLAKE2B 443ca9c8d4f6801169382e87a0ecd1385c56e65229209e7200f9d313ef380e92ae8d7dc3c38e5989a4166289f22607a20b1e13bb960fff6b3d9f78629d8ab020 SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 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..62af1f4718ef --- /dev/null +++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch @@ -0,0 +1,22 @@ +--- src/GameLogic.h ++++ 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; +--- src/GameLogic.cc ++++ 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-r1.ebuild b/games-arcade/retrobattle/retrobattle-1.0.0-r1.ebuild new file mode 100644 index 000000000000..411ae4f57017 --- /dev/null +++ b/games-arcade/retrobattle/retrobattle-1.0.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +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" + +PATCHES=( "${FILESDIR}"/${P}-{build,sound,gcc6}.patch ) + +src_install() { + insinto /usr/share/${PN} + doins -r "${WORKDIR}"/${MY_P}/data + + newbin "${WORKDIR}"/${MY_P}/${PN} ${PN}.bin + make_wrapper ${PN} "${PN}.bin \"/usr/share/${PN}\"" + + make_desktop_entry ${PN} + dodoc "${WORKDIR}"/${MY_P}/{manual.txt,README} +} |