summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-12-16 16:48:36 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-12-16 16:48:36 +0000
commit64dbcaa0fd9a6bc9f80dfb2f9a00b3a00c4e645e (patch)
tree9806903bfa815ed783d4948f24be72c6aacc2d64 /games-sports
parentVersion bump. Add more USE flags. (diff)
downloadgentoo-2-64dbcaa0fd9a6bc9f80dfb2f9a00b3a00c4e645e.tar.gz
gentoo-2-64dbcaa0fd9a6bc9f80dfb2f9a00b3a00c4e645e.tar.bz2
gentoo-2-64dbcaa0fd9a6bc9f80dfb2f9a00b3a00c4e645e.zip
version bump (bug #351409) with ebuild/patch from Michael (kensington)
(Portage version: 2.1.10.11/cvs/Linux i686)
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/vdrift/ChangeLog11
-rw-r--r--games-sports/vdrift/files/vdrift-20090615-ldflags.patch4
-rw-r--r--games-sports/vdrift/files/vdrift-20111022-build.patch27
-rw-r--r--games-sports/vdrift/vdrift-20111022.ebuild64
4 files changed, 102 insertions, 4 deletions
diff --git a/games-sports/vdrift/ChangeLog b/games-sports/vdrift/ChangeLog
index 138fc206b0d8..f97a0f7143fa 100644
--- a/games-sports/vdrift/ChangeLog
+++ b/games-sports/vdrift/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-sports/vdrift
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.15 2010/10/14 01:59:17 mr_bones_ Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.16 2011/12/16 16:48:36 mr_bones_ Exp $
+
+*vdrift-20111022 (16 Dec 2011)
+
+ 16 Dec 2011; Michael Sterrett <mr_bones_@gentoo.org>
+ files/vdrift-20090615-ldflags.patch, +vdrift-20111022.ebuild,
+ +files/vdrift-20111022-build.patch:
+ version bump (bug #351409) with ebuild/patch from Michael (kensington)
14 Oct 2010; Michael Sterrett <mr_bones_@gentoo.org>
vdrift-20090615.ebuild:
diff --git a/games-sports/vdrift/files/vdrift-20090615-ldflags.patch b/games-sports/vdrift/files/vdrift-20090615-ldflags.patch
index 1949ef8036c0..ce05dab6960e 100644
--- a/games-sports/vdrift/files/vdrift-20090615-ldflags.patch
+++ b/games-sports/vdrift/files/vdrift-20090615-ldflags.patch
@@ -1,5 +1,5 @@
---- SConstruct.old 2010-10-06 15:54:11.000000000 +0200
-+++ SConstruct 2010-10-06 15:59:55.000000000 +0200
+--- SConstruct.old
++++ SConstruct
@@ -141,6 +141,7 @@
LINKFLAGS = ['-pthread'],
CC = 'gcc', CXX = 'g++',
diff --git a/games-sports/vdrift/files/vdrift-20111022-build.patch b/games-sports/vdrift/files/vdrift-20111022-build.patch
new file mode 100644
index 000000000000..6384910faadd
--- /dev/null
+++ b/games-sports/vdrift/files/vdrift-20111022-build.patch
@@ -0,0 +1,27 @@
+--- SConstruct
++++ SConstruct
+@@ -138,6 +139,7 @@
+ LINKFLAGS = ['-pthread'],
+ CC = 'gcc', CXX = 'g++',
+ options = opts)
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
+ check_headers = ['asio.hpp', 'boost/bind.hpp', 'GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h', 'curl/curl.h', 'bullet/btBulletCollisionCommon.h', 'archive.h']
+ check_libs = [ ['GLEW', 'GL/glew.h', 'glDeleteSamplers(0, NULL);', 'Your GLEW library is out of date.'] ]
+
+@@ -390,7 +392,7 @@
+ if env['release']:
+ # release build, debugging off, optimizations on
+ if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'freebsd9') and (sys.platform != 'win32') and (sys.platform != 'cygwin'):
+- env.Append(CCFLAGS = ['-O1', '-pipe'])
++ env.Append(CCFLAGS = ['-pipe'])
+ else:
+ # debug build, lots of debugging, no optimizations
+ env.Append(CCFLAGS = ['-g3'])
+@@ -409,7 +411,6 @@
+ env.Append(CCFLAGS = ['-pg'])
+ env.Append(LINKFLAGS = ['-pg'])
+ env.Append(CCFLAGS = ['-g3'])
+- env.Append(CCFLAGS = ['-O1'])
+
+ #------------------------------------#
+ # compile-time efficiency assessment #
diff --git a/games-sports/vdrift/vdrift-20111022.ebuild b/games-sports/vdrift/vdrift-20111022.ebuild
new file mode 100644
index 000000000000..f230e15e7a30
--- /dev/null
+++ b/games-sports/vdrift/vdrift-20111022.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/vdrift-20111022.ebuild,v 1.1 2011/12/16 16:48:36 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils scons-utils games
+
+MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6:2}
+DESCRIPTION="A driving simulation made with drift racing in mind"
+HOMEPAGE="http://vdrift.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-arch/libarchive
+ media-libs/glew
+ media-libs/libsdl[opengl,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/libvorbis
+ net-misc/curl
+ sci-physics/bullet
+ virtual/opengl
+ virtual/glu"
+DEPEND="${RDEPEND}
+ dev-cpp/asio
+ dev-libs/boost
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ escons \
+ force_feedback=1 \
+ destdir="${D}" \
+ bindir="${GAMES_BINDIR}" \
+ datadir="${GAMES_DATADIR}"/${PN} \
+ prefix= \
+ use_binreloc=0 \
+ release=1 \
+ os_cc=1 \
+ os_cxx=1 \
+ os_cxxflags=1 \
+ || die
+}
+
+src_install() {
+ dogamesbin build/vdrift || die
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data/* || die
+ newicon data/textures/icons/vdrift-64x64.png ${PN}.png
+ make_desktop_entry ${PN} VDrift
+ find "${D}" -name "SCon*" -exec rm \{\} +
+ cd "${D}"
+ keepdir $(find "${GAMES_DATADIR/\//}/${PN}" -type d -empty)
+ prepgamesdirs
+}