diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-08-06 16:41:53 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-08-06 16:41:53 +0000 |
commit | 8fb465cafb6b6fd00baae66f8251fcf8c0aec0e7 (patch) | |
tree | 760188d48002d50c5a5dc10ce9107b464676a647 /games-arcade | |
parent | Version bump. Update udev firmware search path and add /lib support patch. (diff) | |
download | gentoo-2-8fb465cafb6b6fd00baae66f8251fcf8c0aec0e7.tar.gz gentoo-2-8fb465cafb6b6fd00baae66f8251fcf8c0aec0e7.tar.bz2 gentoo-2-8fb465cafb6b6fd00baae66f8251fcf8c0aec0e7.zip |
initial commit based on ebuild from Alexander Berntsen
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/retrobattle/ChangeLog | 11 | ||||
-rw-r--r-- | games-arcade/retrobattle/Manifest | 6 | ||||
-rw-r--r-- | games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch | 30 | ||||
-rw-r--r-- | games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch | 17 | ||||
-rw-r--r-- | games-arcade/retrobattle/metadata.xml | 10 | ||||
-rw-r--r-- | games-arcade/retrobattle/retrobattle-1.0.0.ebuild | 41 |
6 files changed, 115 insertions, 0 deletions
diff --git a/games-arcade/retrobattle/ChangeLog b/games-arcade/retrobattle/ChangeLog new file mode 100644 index 000000000000..34ca80db5ea6 --- /dev/null +++ b/games-arcade/retrobattle/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-arcade/retrobattle +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/retrobattle/ChangeLog,v 1.1 2012/08/06 16:41:53 hasufell Exp $ + +*retrobattle-1.0.0 (06 Aug 2012) + + 06 Aug 2012; Julian Ospald <hasufell@gentoo.org> +retrobattle-1.0.0.ebuild, + +files/retrobattle-1.0.0-build.patch, +files/retrobattle-1.0.0-sound.patch, + +metadata.xml: + initial commit based on ebuild from Alexander Berntsen + diff --git a/games-arcade/retrobattle/Manifest b/games-arcade/retrobattle/Manifest new file mode 100644 index 000000000000..2a6d6dbdd8fd --- /dev/null +++ b/games-arcade/retrobattle/Manifest @@ -0,0 +1,6 @@ +AUX retrobattle-1.0.0-build.patch 734 SHA256 484661b0ecb1f1b6e981d8d5fcca54336c01fa1f63a7d2e2f35c24e756668075 SHA512 ef1bfaa78911b6a5d69a03ad0779fece864a521faf3cba99e60214ca46845f019c5a077562a396a3775441020275454955e83ecbb9bedf691dedbf1a178b0549 WHIRLPOOL 61f0fb9665485b12b13ec2188533ac3fba5e7c89dd70bfe6a0d2f357f0b292b6b287dc178b7c9b24993d03af72d81e68001bf65e6efafd024afe7ca5b3821ec3 +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 937 SHA256 a443b4fa5a441edbd557b84ce7ce27aceba2801061112b6a0b5bed3da1378600 SHA512 53f37e682357be30c731db961f6388d8d36cfd868936e33c06e4f1c0ded3316246ee680062e4f4fd1d9372e2c2ba885db6ca2e9df5d17aee3458291f15c17d5f WHIRLPOOL 9a4273d12c42977e388d6d233fce968b6ec22fb63a4a77826d86d315da68a54be1931019987acb0594eee943e65c75ef384fd42117fef50a728d9aeee5a72f30 +MISC ChangeLog 390 SHA256 9acf43a647af7720e07fb0d0126a43a98139f29e777b7b60968eea1d43c28526 SHA512 023c3d13d9608df6ab9c14b016f3631675da01c23aef864f922bfff8b17297391c77855a0afcefa3b8a3773e4c25ff14a34dabfc2b65fb1938d1f9e02511e831 WHIRLPOOL 5055596943c73e119520ece6dd4e71dc5795166fbb060be0c8bf2eb2aaa59c746036ffd7071e825bc7ab04ae47cd5fae607ea8914aa8c26512d4eb46f4b49d30 +MISC metadata.xml 255 SHA256 8ce125b1cb2a8da5fe808223ae6ed60fe03598c692e5020f0a8aaee09b5d6ca3 SHA512 29f4a4a15fc968a3151c449354cd2003831f4b66b57d72222c46d4e4f7ff0586ed3f0b76d09fadf0b43fbb3a46951b19207dd6d38b79fe394b61694cd272ad95 WHIRLPOOL 373afc42b6a5f9f473397b1b95b73377110a2d7cf3590bdb8e0ef4b58c9628a06b1af46db726416fbaad0c29b91ee1eb631eccac14a26be994b705a43f097db8 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-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..e52db06ebd8c --- /dev/null +++ b/games-arcade/retrobattle/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</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..bf1190743706 --- /dev/null +++ b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/retrobattle/retrobattle-1.0.0.ebuild,v 1.1 2012/08/06 16:41:53 hasufell Exp $ + +EAPI=3 +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,audio,video] + media-libs/sdl-mixer[wav]" + +S=${WORKDIR}/${MY_P}/src + +src_prepare() { + epatch "${FILESDIR}"/${P}-{build,sound}.patch +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}"/${MY_P}/data || die + + # wrapper to pass datadir location + newgamesbin "${WORKDIR}"/${MY_P}/${PN} ${PN}.bin || die + games_make_wrapper ${PN} "${PN}.bin \"${GAMES_DATADIR}/${PN}\"" + + make_desktop_entry ${PN} + dodoc "${WORKDIR}"/${MY_P}/{manual.txt,README} + + prepgamesdirs +} |