diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-sports/vdrift | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-sports/vdrift')
-rw-r--r-- | games-sports/vdrift/Manifest | 2 | ||||
-rw-r--r-- | games-sports/vdrift/files/vdrift-20120722-build.patch | 28 | ||||
-rw-r--r-- | games-sports/vdrift/files/vdrift-20120722-bullet.patch | 100 | ||||
-rw-r--r-- | games-sports/vdrift/metadata.xml | 8 | ||||
-rw-r--r-- | games-sports/vdrift/vdrift-20120722.ebuild | 71 |
5 files changed, 209 insertions, 0 deletions
diff --git a/games-sports/vdrift/Manifest b/games-sports/vdrift/Manifest new file mode 100644 index 000000000000..81706fcbebc0 --- /dev/null +++ b/games-sports/vdrift/Manifest @@ -0,0 +1,2 @@ +DIST vdrift-2012-07-22.tar.bz2 589288618 SHA256 5409feea1d9eb3d943f49ecc265b73f3283a00036e055038f5e5114dfc6113fb SHA512 eb6f243fd28e5fe46e856c37cb528c8ec903bdec91b6aa86681add79a333077a3a8874f694255913ae8492b965884f02057a95a98e37027ff67c082a8ca5527e WHIRLPOOL 7488cbc64b1fefca9d16267a623afd08b1fb2bd02af13b0c12cdbc9a2cc18f8965a796b2d8222e85826a277aaf17d8f9adda4e2b9621e6b7779fcb3546f140dd +DIST vdrift-2012-07-22c_patch.diff 21689 SHA256 3e669ac2ce6da04548bb53b63694d21fd83cd8971e3f268031d7ffd93b79ae22 SHA512 7b82ba53f3c19ccd01de9ea64e0b7e15224219c0c614a6505b2a3f552ce78565fdedf7781a198c58606d3e9b94e594dee79097d46687e7d4fc763868204b761d WHIRLPOOL f24a7acb58d711d6bf4cda04ff4be1990c241399effdc821ecc8330bfd04a9067a048a840db9be7cabd1c6ca1b7051b003d548b87b2a1bb7d5000afdeb4e0a03 diff --git a/games-sports/vdrift/files/vdrift-20120722-build.patch b/games-sports/vdrift/files/vdrift-20120722-build.patch new file mode 100644 index 000000000000..16b6fe4c9ba1 --- /dev/null +++ b/games-sports/vdrift/files/vdrift-20120722-build.patch @@ -0,0 +1,28 @@ +--- VDrift.orig/SConstruct ++++ VDrift/SConstruct +@@ -44,6 +44,7 @@ + LIBPATH = ['.', '#lib', LOCALBASE + '/lib'], + LINKFLAGS = ['-pthread','-lintl'], + options = opts) ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + check_headers = ['GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h', 'bullet/btBulletCollisionCommon.h'] + check_libs = [] + if 'CC' in os.environ: +@@ -380,7 +381,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']) +@@ -399,7 +400,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/files/vdrift-20120722-bullet.patch b/games-sports/vdrift/files/vdrift-20120722-bullet.patch new file mode 100644 index 000000000000..907433417ee6 --- /dev/null +++ b/games-sports/vdrift/files/vdrift-20120722-bullet.patch @@ -0,0 +1,100 @@ +--- src/cardynamics.cpp Mon Jan 19 23:26:36 1970
++++ src/cardynamics.cpp Mon Jan 19 23:26:36 1970
+@@ -1791,23 +1791,29 @@
+
+ bool CARDYNAMICS::WheelContactCallback(
+ btManifoldPoint& cp,
+- const btCollisionObject* colObj0,
+- int partId0,
++ const btCollisionObjectWrapper* col0,
++ int part0,
+ int index0,
+- const btCollisionObject* colObj1,
+- int partId1,
++ const btCollisionObjectWrapper* col1,
++ int part1,
+ int index1)
+ {
+- // cars are fracture bodies, wheel is a cylinder shape
+- const btCollisionShape* shape = colObj0->getCollisionShape();
+- if ((colObj0->getInternalType() & CO_FRACTURE_TYPE) &&
++#if (BT_BULLET_VERSION < 281)
++ const btCollisionObject* obj = col0;
++ const btCollisionShape* shape = obj->getCollisionShape();
++ const btCollisionShape* rootshape = obj->getRootCollisionShape();
++#else
++ const btCollisionObject* obj = col0->getCollisionObject();
++ const btCollisionShape* shape = col0->getCollisionShape();
++ const btCollisionShape* rootshape = obj->getCollisionShape();
++#endif
++ if ((obj->getInternalType() & CO_FRACTURE_TYPE) &&
+ (shape->getShapeType() == CYLINDER_SHAPE_PROXYTYPE))
+ {
+- // is contact within contact patch?
+- const btCompoundShape* car = static_cast<const btCompoundShape*>(colObj0->getRootCollisionShape());
+- const btCylinderShapeX* wheel = static_cast<const btCylinderShapeX*>(shape);
+- btVector3 contactPoint = cp.m_localPointA - car->getChildTransform(cp.m_index0).getOrigin();
+- if (-direction::up.dot(contactPoint) > 0.5 * wheel->getRadius())
++ const btCompoundShape* carshape = static_cast<const btCompoundShape*>(rootshape);
++ const btCylinderShapeX* wheelshape = static_cast<const btCylinderShapeX*>(shape);
++ btVector3 contactPoint = cp.m_localPointA - carshape->getChildTransform(cp.m_index0).getOrigin();
++ if (-direction::up.dot(contactPoint) > 0.5 * wheelshape->getRadius())
+ {
+ // break contact (hack)
+ cp.m_normalWorldOnB = btVector3(0, 0, 0);
+--- src/cardynamics.h Mon Jan 19 23:26:36 1970
++++ src/cardynamics.h Mon Jan 19 23:26:36 1970
+@@ -25,6 +25,12 @@
+ class FractureBody;
+ class PTree;
+
++#if (BT_BULLET_VERSION < 281)
++#define btCollisionObjectWrapper btCollisionObject
++#else
++struct btCollisionObjectWrapper;
++#endif
++
+ class CARDYNAMICS : public btActionInterface
+ {
+ friend class PERFORMANCE_TESTING;
+@@ -151,11 +157,11 @@
+
+ static bool WheelContactCallback(
+ btManifoldPoint& cp,
+- const btCollisionObject* colObj0,
+- int partId0,
++ const btCollisionObjectWrapper* col0,
++ int part0,
+ int index0,
+- const btCollisionObject* colObj1,
+- int partId1,
++ const btCollisionObjectWrapper* col1,
++ int part1,
+ int index1);
+
+ protected:
+--- src/dynamicsworld.cpp Mon Jan 19 23:26:36 1970
++++ src/dynamicsworld.cpp Mon Jan 19 23:26:36 1970
+@@ -105,7 +105,7 @@
+ int patch_id = -1;
+ const BEZIER * b = 0;
+ const TRACKSURFACE * s = TRACKSURFACE::None();
+- btCollisionObject * c = 0;
++ const btCollisionObject * c = 0;
+
+ MyRayResultCallback ray(origin, p, caster);
+ rayTest(origin, p, ray);
+@@ -221,6 +221,7 @@
+
+ void DynamicsWorld::fractureCallback()
+ {
++#if (BT_BULLET_VERSION < 281)
+ m_activeConnections.resize(0);
+
+ int numManifolds = getDispatcher()->getNumManifolds();
+@@ -268,4 +269,5 @@
+ btRigidBody* child = body->updateConnection(con_id);
+ if (child) addRigidBody(child);
+ }
++#endif
+ }
\ No newline at end of file diff --git a/games-sports/vdrift/metadata.xml b/games-sports/vdrift/metadata.xml new file mode 100644 index 000000000000..2df986e8a880 --- /dev/null +++ b/games-sports/vdrift/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">vdrift</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-sports/vdrift/vdrift-20120722.ebuild b/games-sports/vdrift/vdrift-20120722.ebuild new file mode 100644 index 000000000000..14dddff12b9c --- /dev/null +++ b/games-sports/vdrift/vdrift-20120722.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +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 + mirror://sourceforge/${PN}/${MY_P}c_patch.diff" + +LICENSE="GPL-3 ZLIB LGPL-2.1+" +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[-double-precision] + virtual/opengl + virtual/glu" +DEPEND="${RDEPEND} + dev-cpp/asio + dev-libs/boost + virtual/pkgconfig" + +S=${WORKDIR}/VDrift + +src_unpack() { + unpack ${MY_P}.tar.bz2 +} + +src_prepare() { + epatch \ + "${DISTDIR}"/${MY_P}c_patch.diff \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-bullet.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 + insinto "${GAMES_DATADIR}/${PN}" + doins -r data/* + newicon data/textures/icons/vdrift-64x64.png ${PN}.png + make_desktop_entry ${PN} VDrift + find "${D}" -name "SCon*" -exec rm \{\} + + keepdir "${GAMES_DATADIR}"/${PN}/{music,settings/replays,settings/screenshots} + prepgamesdirs +} |