summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-08-24 21:03:58 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-08-24 21:03:58 +0000
commita2198e3dfe5e30fe55ebac2c528e94d3f674708d (patch)
tree0e81a3058accf40874728aadf81d9f34d9a60ca7 /games-sports
parentre-add opengl USE flag that was deleted (diff)
downloadgentoo-2-a2198e3dfe5e30fe55ebac2c528e94d3f674708d.tar.gz
gentoo-2-a2198e3dfe5e30fe55ebac2c528e94d3f674708d.tar.bz2
gentoo-2-a2198e3dfe5e30fe55ebac2c528e94d3f674708d.zip
version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/vdrift/ChangeLog8
-rw-r--r--games-sports/vdrift/vdrift-20080805.ebuild82
2 files changed, 89 insertions, 1 deletions
diff --git a/games-sports/vdrift/ChangeLog b/games-sports/vdrift/ChangeLog
index 960696498ac3..58d0bb621b69 100644
--- a/games-sports/vdrift/ChangeLog
+++ b/games-sports/vdrift/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-sports/vdrift
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.4 2008/08/22 22:36:54 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.5 2008/08/24 21:03:58 mr_bones_ Exp $
+
+*vdrift-20080805 (24 Aug 2008)
+
+ 24 Aug 2008; Michael Sterrett <mr_bones_@gentoo.org>
+ +vdrift-20080805.ebuild:
+ version bump
22 Aug 2008; Markus Meier <maekke@gentoo.org> vdrift-20070323.ebuild:
amd64 stable, bug #232778
diff --git a/games-sports/vdrift/vdrift-20080805.ebuild b/games-sports/vdrift/vdrift-20080805.ebuild
new file mode 100644
index 000000000000..46cb2032f183
--- /dev/null
+++ b/games-sports/vdrift/vdrift-20080805.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/vdrift-20080805.ebuild,v 1.1 2008/08/24 21:03:58 mr_bones_ Exp $
+
+inherit eutils toolchain-funcs games
+
+MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6}
+DESCRIPTION="A driving simulation made with drift racing in mind"
+HOMEPAGE="http://vdrift.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.bz2"
+
+LICENSE="GPL-2 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/glew
+ media-libs/freealut
+ media-libs/libsdl
+ media-libs/openal
+ media-libs/sdl-gfx
+ media-libs/sdl-image
+ media-libs/sdl-net
+ media-libs/libvorbis
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/ftjam
+ dev-util/scons
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-${PV:4:2}-${PV:6:2}-${PV:2:2}
+
+src_unpack() {
+ unpack ${MY_P}-src.tar.bz2
+ cd "${S}"
+ sed -i \
+ -e '/-O2/ s/\(\[.*\]\)/[]/' \
+ SConstruct \
+ || die "sed failed"
+ sed -i \
+ -e '/C++FLAGS/s/$(COMPILER.CFLAGS)//' \
+ bullet-2.66/mk/jam/variant.jam \
+ || die "sed failed"
+}
+
+src_compile() {
+ tc-export CC CXX
+
+ cd bullet-2.66
+ ./configure
+ jam bulletcollision bulletmath
+ cd "${S}"
+
+ scons \
+ NLS=$(use nls && echo 1 || echo 0) \
+ destdir="${D}" \
+ bindir="${GAMES_BINDIR}" \
+ datadir="${GAMES_DATADIR}"/${PN} \
+ localedir=/usr/share/locale \
+ prefix= \
+ use_binreloc=0 \
+ release=1 \
+ os_cc=1 \
+ os_cxx=1 \
+ os_cxxflags=1 \
+ || die "scons failed"
+}
+
+src_install() {
+ dogamesbin build/vdrift || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data/* || die "doins failed"
+ newicon data/textures/icons/vdrift-64x64.png ${PN}.png
+ make_desktop_entry ${PN} VDrift
+ dodoc docs/*
+ find "${D}" -name "SCon*" -exec rm \{\} +
+ cd "${D}"
+ keepdir $(find "${GAMES_DATADIR/\//}/${PN}" -type d -empty)
+ prepgamesdirs
+}