summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-05 05:26:46 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-05 05:26:46 +0000
commit6bc8db2136fb59a10681a2b0240170760ce049d1 (patch)
treea874a6291f1dced950779fa6f657d1c3a3622231 /games-arcade/crack-attack
parentold (diff)
downloadgentoo-2-6bc8db2136fb59a10681a2b0240170760ce049d1.tar.gz
gentoo-2-6bc8db2136fb59a10681a2b0240170760ce049d1.tar.bz2
gentoo-2-6bc8db2136fb59a10681a2b0240170760ce049d1.zip
Add bugfix from upstream for freeglut support #97954 by Andrew Sayman.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'games-arcade/crack-attack')
-rw-r--r--games-arcade/crack-attack/ChangeLog8
-rw-r--r--games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild40
-rw-r--r--games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch14
-rw-r--r--games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r11
4 files changed, 62 insertions, 1 deletions
diff --git a/games-arcade/crack-attack/ChangeLog b/games-arcade/crack-attack/ChangeLog
index 638ae7db5c16..df7664e8fabc 100644
--- a/games-arcade/crack-attack/ChangeLog
+++ b/games-arcade/crack-attack/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-arcade/crack-attack
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.19 2005/05/15 19:42:29 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.20 2005/07/05 05:26:46 vapier Exp $
+
+*crack-attack-1.1.14-r1 (05 Jul 2005)
+
+ 05 Jul 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/crack-attack-1.1.14-glut.patch, +crack-attack-1.1.14-r1.ebuild:
+ Add bugfix from upstream for freeglut support #97954 by Andrew Sayman.
*crack-attack-1.1.14 (15 May 2005)
diff --git a/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild
new file mode 100644
index 000000000000..57b5e6b379a3
--- /dev/null
+++ b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild,v 1.1 2005/07/05 05:26:46 vapier Exp $
+
+inherit eutils flag-o-matic games
+
+DESCRIPTION="Addictive OpenGL-based block game"
+HOMEPAGE="http://www.nongnu.org/crack-attack/"
+SRC_URI="http://savannah.nongnu.org/download/crack-attack/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ia64 ppc sparc x86"
+IUSE="gtk"
+
+DEPEND="virtual/glut
+ gtk? ( >=x11-libs/gtk+-2.6 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-glut.patch
+}
+
+src_compile() {
+ egamesconf \
+ --disable-binreloc \
+ $(use_enable gtk) \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS ChangeLog README
+ dohtml -A xpm doc/*
+ doicon data/crack-attack.xpm
+ make_desktop_entry crack-attack Crack-attack crack-attack.xpm
+ prepgamesdirs
+}
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..fc16c1b8bc4e
--- /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
+
+--- src/Attack.cxx
++++ 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/files/digest-crack-attack-1.1.14-r1 b/games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r1
new file mode 100644
index 000000000000..cd332491d084
--- /dev/null
+++ b/games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r1
@@ -0,0 +1 @@
+MD5 77bfcb38a293e87fd0d0eab05bae8177 crack-attack-1.1.14.tar.bz2 801404