summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-10-15 20:14:04 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-10-15 20:14:04 +0000
commita71bd5f41799573b08a71de9915b458601261716 (patch)
tree8a5afb3b18a0b859e6505c0077630f337516db54 /games-simulation/gl117
parentRemove old. (diff)
downloadgentoo-2-a71bd5f41799573b08a71de9915b458601261716.tar.gz
gentoo-2-a71bd5f41799573b08a71de9915b458601261716.tar.bz2
gentoo-2-a71bd5f41799573b08a71de9915b458601261716.zip
turn down default video mode to avoid problems on smaller screens (bug #327965) with patch from Nick White
(Portage version: 2.1.10.11/cvs/Linux i686)
Diffstat (limited to 'games-simulation/gl117')
-rw-r--r--games-simulation/gl117/ChangeLog9
-rw-r--r--games-simulation/gl117/files/gl117-1.3.2-mode.patch12
-rw-r--r--games-simulation/gl117/gl117-1.3.2.ebuild8
3 files changed, 24 insertions, 5 deletions
diff --git a/games-simulation/gl117/ChangeLog b/games-simulation/gl117/ChangeLog
index e024e3a2d3e7..9079d1aea12c 100644
--- a/games-simulation/gl117/ChangeLog
+++ b/games-simulation/gl117/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-simulation/gl117
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/gl117/ChangeLog,v 1.22 2010/09/16 16:59:34 scarabeus Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/gl117/ChangeLog,v 1.23 2011/10/15 20:14:04 mr_bones_ Exp $
+
+ 15 Oct 2011; Michael Sterrett <mr_bones_@gentoo.org> gl117-1.3.2.ebuild,
+ +files/gl117-1.3.2-mode.patch:
+ turn down default video mode to avoid problems on smaller screens (bug
+ #327965) with patch from Nick White
16 Sep 2010; Tomáš Chvátal <scarabeus@gentoo.org> gl117-1.3.2.ebuild:
virtual/glut -> media-libs/glut
diff --git a/games-simulation/gl117/files/gl117-1.3.2-mode.patch b/games-simulation/gl117/files/gl117-1.3.2-mode.patch
new file mode 100644
index 000000000000..c74e07c1cafd
--- /dev/null
+++ b/games-simulation/gl117/files/gl117-1.3.2-mode.patch
@@ -0,0 +1,12 @@
+--- src/main.cpp.orig 2010-07-13 09:35:18.374122609 +0100
++++ src/main.cpp 2010-07-13 09:35:45.334955120 +0100
+@@ -71,8 +71,7 @@ int mode = 0;
+
+ // pre-defined screen resolutions (x, y, bpp, fullscreen)
+ int resolution [4] [4] =
+- { { 1024, 768, 32, 1 },
+- { 800, 600, 32, 1 },
++ { { 800, 600, 32, 1 },
+ { 640, 480, 32, 1 },
+ { 640, 480, 32, 0 } };
+
diff --git a/games-simulation/gl117/gl117-1.3.2.ebuild b/games-simulation/gl117/gl117-1.3.2.ebuild
index 8138b68284f4..a85a2a8c43e7 100644
--- a/games-simulation/gl117/gl117-1.3.2.ebuild
+++ b/games-simulation/gl117/gl117-1.3.2.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/gl117/gl117-1.3.2.ebuild,v 1.10 2010/09/16 16:59:34 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/gl117/gl117-1.3.2.ebuild,v 1.11 2011/10/15 20:14:04 mr_bones_ Exp $
EAPI=2
inherit eutils games
MY_P="gl-117-${PV}-src"
DESCRIPTION="An action flight simulator"
-HOMEPAGE="http://www.heptargon.de/"
+HOMEPAGE="http://www.heptargon.de/gl-117/gl-117.html"
SRC_URI="mirror://sourceforge/gl-117/${MY_P}.tar.bz2"
LICENSE="GPL-2"
@@ -23,6 +23,8 @@ DEPEND="media-libs/libsdl[audio,joystick,opengl,video]
S=${WORKDIR}/${MY_P}
+PATCHES=( "${FILESDIR}"/${P}-mode.patch )
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
newicon doc/src/falcon.jpg ${PN}.jpg