diff options
Diffstat (limited to 'games-arcade/sdlsasteroids')
5 files changed, 96 insertions, 0 deletions
diff --git a/games-arcade/sdlsasteroids/Manifest b/games-arcade/sdlsasteroids/Manifest new file mode 100644 index 000000000000..1f3c0c8ccd8f --- /dev/null +++ b/games-arcade/sdlsasteroids/Manifest @@ -0,0 +1,5 @@ +AUX sdlsasteroids-3.0.1-gcc43.patch 422 BLAKE2B abe2fb65829d30b3f9d66eb585621e7ad4409831887cec96b6872e0bdd311ad9061b8be3208adf2f50adf2eafc87bc048834fbf91a65ab8401b939530e47b147 SHA512 3915518301cbf842de73f59caf70f8bf318d6824120386c1bc3844f454fe05676feab62e6f05adb17b13dd8f1c965da19d30c53391a0350c1f2849eac6a6aa59 +AUX sdlsasteroids-3.0.1-ldflags.patch 374 BLAKE2B 2b4ae7b2ca09f5573a1bbd317cb0cf9170eba0b56a9f04ed3bf825d4217d7b209c98983b1e757b71786ba0a25cc7a7a60485d7c418fc3bfce937f84d0a07ae22 SHA512 6e7ae0cb9b78f311d628859d0804ab635ff6c92106e9692591d83c13298fb491c0d75df188ab5a93d21170b3ebb9cae29a392b93343ade3eafc702dd4b320525 +DIST SDLSasteroids-3.0.1.tar.gz 531781 BLAKE2B 83d2f84623dd369bd0e36ddfec3a328f50b5ef1a9daf2bd4f6d2e5ff4bfd38f2832ff5378961c66fbf149fe82e45e48ad12aaf8a95abf4244a59fc7321403682 SHA512 5758e1a8540dd16b0993146e706d2f600713cf80500de32b5102e23933fad7e5f5d5b31bf7ebe0efcc89223f54ec67505728e5d3b8e2c8691b8efce671fcbdbc +EBUILD sdlsasteroids-3.0.1-r1.ebuild 1232 BLAKE2B b6d1d0df6e42e54a06c0bdb09eeba1659f35d9186759bf93ae4d08d5c2a0b6c0df1233bedd3b9cf18d3adfa88a891d0d8b23d65b5cee946e50cbd6f3cab1d4ca SHA512 cd4a6419e04e1448cc5aff7565b17857dabba6876348fd526b0d85d8f138a2fcbe9bff153d9671f07ab2dc256c8f492edb10522f1dfa7b411c39ab3df76851f0 +MISC metadata.xml 329 BLAKE2B dba011e413928b68ccfbc07eb71a2cca9eb7071165c8d3f53ea47bcd54ffa03f16c670fbc41c1c0fc3b7de36da510109b3884f2b6a0e996bc8c3c5479ffac3f5 SHA512 4f3b7531ceb47a03591edb619cccddec6bb2f86bc9c66be1e88cb745d0b44220ab5e542f6d56bdb89494c341120c673f2e0cc34de6aeae2f1599cbb9b800f75d diff --git a/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch new file mode 100644 index 000000000000..9863f0c051e9 --- /dev/null +++ b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch @@ -0,0 +1,11 @@ +--- a/src/sbitmap.h ++++ b/src/sbitmap.h +@@ -36,7 +36,7 @@ + void LoadImage(char* path); + void LoadSurface(SDL_Surface* surface); + +- void put(float x, float y, float rotate = 1.0f, float rotate = 1.0f, float layer = 0.0f); ++ void put(float x, float y, float sf = 1.0f, float rotate = 1.0f, float layer = 0.0f); + void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f); + + inline float width() const diff --git a/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch new file mode 100644 index 000000000000..581010b51388 --- /dev/null +++ b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.old 2010-09-22 08:44:57.000000000 +0200 ++++ b/src/Makefile 2010-09-22 08:45:43.000000000 +0200 +@@ -26,7 +26,7 @@ + + + $(SASTEROIDS): $(SASTEROIDS_O) +- g++ -Wall -o $(SASTEROIDS) $(SASTEROIDS_O) $(DEFINES) $(DEBUG) $(OPTS) $(CFLAGS) $(LIBS) ++ g++ $(LDFLAGS) -Wall -o $(SASTEROIDS) $(SASTEROIDS_O) $(DEFINES) $(DEBUG) $(OPTS) $(CFLAGS) $(LIBS) + + + .cpp.o: diff --git a/games-arcade/sdlsasteroids/metadata.xml b/games-arcade/sdlsasteroids/metadata.xml new file mode 100644 index 000000000000..11957fc04bd7 --- /dev/null +++ b/games-arcade/sdlsasteroids/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="sourceforge">sdlsas</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1-r1.ebuild b/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1-r1.ebuild new file mode 100644 index 000000000000..24ecc1564280 --- /dev/null +++ b/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Rework of Sasteroids using SDL" +HOMEPAGE="http://sdlsas.sourceforge.net/" +SRC_URI="mirror://sourceforge/sdlsas/SDLSasteroids-${PV}.tar.gz" + +LICENSE="GPL-2 freedist" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/sdl-mixer + media-libs/libsdl[sound,joystick,video] + media-libs/sdl-image[png] + media-libs/sdl-ttf" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/SDLSasteroids-${PV}" + +src_prepare() { + default + eapply \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e 's/make /$(MAKE) /' \ + -e 's/--strip//' \ + Makefile || die + sed -i \ + -e '/^CC/d' \ + -e 's/g++/$(CXX)/' \ + -e 's/CC/CXX/' \ + -e 's/CFLAGS/CXXFLAGS/' \ + src/Makefile || die +} + +src_compile() { + emake \ + GAMEDIR="/usr/share/${PN}" \ + OPTS="${CXXFLAGS}" +} + +src_install() { + dodir /usr/share/man/man6/ + emake \ + GAMEDIR="${D}/usr/share/${PN}" \ + BINDIR="${D}/usr/bin" \ + MANDIR="${D}/usr/share/man/" \ + install + dodoc ChangeLog README README.xast TODO description + newicon graphics/sprite/bigast.png ${PN}.png + make_desktop_entry sasteroids "Sasteroids" ${PN} +} |