summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2008-04-30 21:54:40 +0000
committerTristan Heaven <nyhm@gentoo.org>2008-04-30 21:54:40 +0000
commit953dda9dcfae9213023019057782d73fb410da81 (patch)
tree196e8089b4d7c1b5b025a282c91d16d7e3f15565 /games-arcade
parentFix building with gcc-4.3 (diff)
downloadgentoo-2-953dda9dcfae9213023019057782d73fb410da81.tar.gz
gentoo-2-953dda9dcfae9213023019057782d73fb410da81.tar.bz2
gentoo-2-953dda9dcfae9213023019057782d73fb410da81.zip
Fix building with gcc-4.3
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/crack-attack/ChangeLog6
-rw-r--r--games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild8
-rw-r--r--games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch10
3 files changed, 20 insertions, 4 deletions
diff --git a/games-arcade/crack-attack/ChangeLog b/games-arcade/crack-attack/ChangeLog
index 56ee7513eb9b..c7639f264d1f 100644
--- a/games-arcade/crack-attack/ChangeLog
+++ b/games-arcade/crack-attack/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-arcade/crack-attack
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.22 2008/02/29 18:56:30 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.23 2008/04/30 21:54:40 nyhm Exp $
+
+ 30 Apr 2008; Tristan Heaven <nyhm@gentoo.org>
+ +files/crack-attack-1.1.14-gcc43.patch, crack-attack-1.1.14-r1.ebuild:
+ Fix building with gcc-4.3
29 Feb 2008; Carsten Lohrke <carlo@gentoo.org>
crack-attack-1.1.14-r1.ebuild:
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
index d0b9c6e50e08..26335dc6e8d0 100644
--- a/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild
+++ b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 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.4 2008/02/29 18:56:30 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild,v 1.5 2008/04/30 21:54:40 nyhm Exp $
inherit eutils games
@@ -20,7 +20,9 @@ DEPEND="virtual/glut
src_unpack() {
unpack ${A}
cd "${S}"
- epatch "${FILESDIR}"/${P}-glut.patch
+ epatch \
+ "${FILESDIR}"/${P}-glut.patch \
+ "${FILESDIR}"/${P}-gcc43.patch
touch * */*
}
@@ -38,6 +40,6 @@ src_install() {
dodoc AUTHORS ChangeLog README
dohtml -A xpm doc/*
doicon data/crack-attack.xpm
- make_desktop_entry crack-attack Crack-attack crack-attack
+ make_desktop_entry crack-attack Crack-attack
prepgamesdirs
}
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..009d062f2eac
--- /dev/null
+++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch
@@ -0,0 +1,10 @@
+--- src/Game.h
++++ src/Game.h
+@@ -34,6 +34,7 @@
+ #include <climits>
+ #include <cstdlib>
+ #include <cmath>
++#include <cstring>
+
+ #ifdef __MINGW32__
+ # include <windows.h>