diff options
Diffstat (limited to 'games-arcade/crack-attack')
5 files changed, 84 insertions, 0 deletions
diff --git a/games-arcade/crack-attack/Manifest b/games-arcade/crack-attack/Manifest new file mode 100644 index 000000000000..d10de329e972 --- /dev/null +++ b/games-arcade/crack-attack/Manifest @@ -0,0 +1,5 @@ +AUX crack-attack-1.1.14-gcc43.patch 176 BLAKE2B 31ae3d2ada1212633ded026c9fbbdd517e7a7cc9742ad24036698c474a4b173cb7521857f6a41b7fe72cfff78f5db89236cc7ef3920658c7b3dc43a60cee793a SHA512 e9e5cc3c93bb00ad8e8b7d6bafd2035c13673fc27217fa6ba3d66ad285bd4d9f6048fbb933723d91e4c60495175fd065acc6663bcce0b2fb606f23f4ecbf4fb3 +AUX crack-attack-1.1.14-glut.patch 385 BLAKE2B 1f1b3830199c3488e71a6055b9db1092b1a730e194ed8f68974e6b8f867a8399b5d3f5b49011839a3e07a9265bca7e5e0f3d33ea634ffcb92fa68aa80dc4a3aa SHA512 d39bbd78172d9454a3f2244dff21e9f538c2235e86a3d8a53e855d0eb4f70403ff75b7fcaf774ad2054f77e9002786a802d1e3cfcc8d8dbb3ba082379e037949 +DIST crack-attack-1.1.14.tar.bz2 801404 BLAKE2B 78c6fa9ee16ddb341aa1f11d1964c7036c85d0b1f0145c6fe57d585eb4c237fdb33d351f0d5510eabaf7666a63e74f8afbe0f09952ec1d4c5713a87a89963b82 SHA512 1afc1a59e25359a82cabc33a1f999e1166dcf74c031c29a366f8414989bc7c32b9a40e467ee40a37901f2bd08f4569fed25c4d3021b1a75254614840410a7bfa +EBUILD crack-attack-1.1.14-r2.ebuild 946 BLAKE2B 2c67cf472dcfc489c32412e9685423ed355256654ebb3e1ffd96814efcec916eafdb2dfeae8931dfb2b1900bb2ea31c5041ddfe208d1007f5f405a7c43081228 SHA512 a39048eef58fb35ec783eb6836a7198e6550f191986ba25544f34c9138ba9971121a7b3324f61f888ce6f8cb7a21b3b3af732993c56317bd4bdaf77177765847 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild b/games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild new file mode 100644 index 000000000000..eded2a71ead8 --- /dev/null +++ b/games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Addictive OpenGL-based block game" +HOMEPAGE="http://www.nongnu.org/crack-attack/" +SRC_URI="https://savannah.nongnu.org/download/crack-attack/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86" +IUSE="gtk sdl" + +RDEPEND=" + media-libs/freeglut + sdl? ( media-libs/libsdl + media-libs/sdl-mixer ) + gtk? ( >=x11-libs/gtk+-2.6:2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + default + eapply \ + "${FILESDIR}"/${P}-glut.patch \ + "${FILESDIR}"/${P}-gcc43.patch + sed -i 's/-lXmu//' src/gtk-gui/Makefile.in src/Makefile.in || die + touch -r . * */* +} + +src_configure() { + econf \ + --disable-binreloc \ + $(use_enable sdl sound) \ + $(use_enable gtk) +} + +src_install() { + HTML_DOCS="doc/*" + default + doicon data/crack-attack.xpm + make_desktop_entry crack-attack Crack-attack +} diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch new file mode 100644 index 000000000000..8cabe7eb2574 --- /dev/null +++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch @@ -0,0 +1,10 @@ +--- a/src/Game.h ++++ b/src/Game.h +@@ -34,6 +34,7 @@ + #include <climits> + #include <cstdlib> + #include <cmath> ++#include <cstring> + + #ifdef __MINGW32__ + # include <windows.h> diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch new file mode 100644 index 000000000000..430d4e742f31 --- /dev/null +++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch @@ -0,0 +1,14 @@ +Fix from upstream to work with newer freegluts. + +http://bugs.gentoo.org/97954 + +--- a/src/Attack.cxx ++++ b/src/Attack.cxx +@@ -83,6 +83,7 @@ + int height = -1, width = -1; + + player_name[0] = '\0'; ++ glutInit(&argc, argv); + parseCommandLine(argc, argv, mode, port, host_name, player_name, height, width); + run_crack_attack(mode, port, host_name, player_name, height, width); + diff --git a/games-arcade/crack-attack/metadata.xml b/games-arcade/crack-attack/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/crack-attack/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> |