aboutsummaryrefslogtreecommitdiff
path: root/games/vdrift
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-02 12:45:01 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-02 12:45:01 +0000
commit5ead879a859c7215261464b4b594158d31c2da8f (patch)
tree4ce2268d46a283b4974f1c882246ad99f965bc1a /games/vdrift
parent6d3b1e97334c1472c9de51dab371789355d57f88 (diff)
Notes
Diffstat (limited to 'games/vdrift')
-rw-r--r--games/vdrift/Makefile89
-rw-r--r--games/vdrift/distinfo2
-rw-r--r--games/vdrift/files/patch-SConstruct29
-rw-r--r--games/vdrift/files/patch-src_SConscript40
-rw-r--r--games/vdrift/files/pkg-message.in9
-rw-r--r--games/vdrift/pkg-descr6
-rw-r--r--games/vdrift/pkg-plist7
7 files changed, 0 insertions, 182 deletions
diff --git a/games/vdrift/Makefile b/games/vdrift/Makefile
deleted file mode 100644
index ec32a47ab42d..000000000000
--- a/games/vdrift/Makefile
+++ /dev/null
@@ -1,89 +0,0 @@
-# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
-# $FreeBSD$
-
-PORTNAME= vdrift
-PORTVERSION= 20100630
-PORTREVISION= 9
-CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DATE_VERSION}
-DISTNAME= ${PORTNAME}-${DATE_VERSION}-src
-DIST_SUBDIR= ${PORTNAME}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Open source driving simulation
-
-BROKEN= Fails to build
-
-BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons \
- ${LOCALBASE}/lib/libBulletCollision.a:${PORTSDIR}/devel/bullet \
- ${LOCALBASE}/include/asio.hpp:${PORTSDIR}/net/asio
-LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
- libboost_thread.so:${PORTSDIR}/devel/boost-libs
-RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/settings/VDrift.config:${PORTSDIR}/games/vdrift-data
-
-USES= tar:bzip2
-USE_GL= glew
-USE_SDL= sdl image net gfx
-
-SCONS_ARGS= prefix=${PREFIX} \
- datadir=share/${PORTNAME} \
- bindir=bin \
- use_binreloc=0
-WRKSRC= ${WRKDIR}/${DISTNAME}
-
-DATE_VERSION= 2010-06-30
-
-SUB_FILES= pkg-message
-
-OPTIONS_DEFINE= DEBUG NLS DOCS
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDEBUG}
-SCONS_ARGS+= release=0
-.else
-SCONS_ARGS+= release=1
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-FLAG_NLS= true
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's,(__APPLE__),(__APPLE__) || defined(__FreeBSD__),g' \
- ${WRKSRC}/include/quickmp.h
- @${REINPLACE_CMD} -e 's|GEN_clamped|btClamped|g' \
- ${WRKSRC}/bullet/BulletDynamics/Dynamics/btRigidBody.cpp
-
-do-build:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/build/vdrift ${PREFIX}/bin
-
-.if defined(FLAG_NLS)
- @${MKDIR} ${DATADIR}/po
- @cd ${WRKSRC}/po && \
- ${FIND} * -type f -name "*.po" -exec ${INSTALL_DATA} "{}" "${DATADIR}/po/{}" \;
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
-.for FILE in docs/AUTHORS docs/README
- ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
-.endfor
-.endif
-
-post-install:
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.mk>
diff --git a/games/vdrift/distinfo b/games/vdrift/distinfo
deleted file mode 100644
index 479da91ceaef..000000000000
--- a/games/vdrift/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (vdrift/vdrift-2010-06-30-src.tar.bz2) = ae88a79fb236c150a431b2389fb5c02aeeef832b0dd47ea896cc82ced4f117bf
-SIZE (vdrift/vdrift-2010-06-30-src.tar.bz2) = 737604
diff --git a/games/vdrift/files/patch-SConstruct b/games/vdrift/files/patch-SConstruct
deleted file mode 100644
index 8e137c0b3dfb..000000000000
--- a/games/vdrift/files/patch-SConstruct
+++ /dev/null
@@ -1,29 +0,0 @@
---- SConstruct.orig 2010-11-14 16:45:13.000000000 -0500
-+++ SConstruct 2010-11-14 16:46:49.000000000 -0500
-@@ -43,7 +43,7 @@
- #---------------#
- # FreeBSD build #
- #---------------#
--if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8'):
-+if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8') or (sys.platform == 'freebsd9'):
- if 'LOCALBASE' in os.environ:
- LOCALBASE = os.environ['LOCALBASE']
- else:
-@@ -53,7 +53,7 @@
- LIBPATH = ['.', '#lib', LOCALBASE + '/lib'],
- LINKFLAGS = ['-pthread','-lintl'],
- options = opts)
-- 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']
-+ 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']
- if 'CC' in os.environ:
- env.Replace(CC = os.environ['CC'])
- else:
-@@ -396,7 +396,7 @@
- version = strftime("%Y-%m-%d")
- if env['release']:
- # release build, debugging off, optimizations on
-- if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'win32') and (sys.platform != 'cygwin'):
-+ 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'])
- # version is current build date
- #version = strftime("%Y-%m-%d")
diff --git a/games/vdrift/files/patch-src_SConscript b/games/vdrift/files/patch-src_SConscript
deleted file mode 100644
index 418cb283cf2a..000000000000
--- a/games/vdrift/files/patch-src_SConscript
+++ /dev/null
@@ -1,40 +0,0 @@
---- src/SConscript 2010-06-25 12:47:56.000000000 -0500
-+++ src/SConscript 2010-11-14 17:36:10.000000000 -0500
-@@ -11,9 +11,8 @@
- #vamosobjs = SConscript('vamos/SConscript', exports=['env', 'src_dir'])
- #guiobjs = SConscript('gui/SConscript', exports=['env', 'src_dir'])
-
--if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8'):
-- def addbulletpath( val ):
-- return "#bullet/"+val
-+def addbulletpath( val ):
-+ return "#bullet/"+val
-
- #---------#
- # Sources #
-@@ -219,8 +218,7 @@
- LinearMath/btQuickprof.cpp
- LinearMath/btSerializer.cpp""")
-
--if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8'):
-- bullet_src = map(addbulletpath, bullet_src)
-+bullet_src = map(addbulletpath, bullet_src)
-
- #------------------------#
- # Copy Build Environment #
-@@ -235,9 +233,12 @@
- vdrift_install = None
- common_libs = ['SDL_image', 'SDL_gfx', 'vorbisfile', 'vdriftbullet']
-
--if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8'):
-- common_libs.append('libbulletcollision')
-- common_libs.append('libbulletmath')
-+if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8') or (sys.platform == 'freebsd9'):
-+ common_libs.append('libLinearMath')
-+ common_libs.append('libBulletCollision')
-+ local_env.ParseConfig('sdl-config --cflags --libs')
-+ local_env.Append(LIBPATH = ['/usr/X11R6/lib'])
-+ libs_link = ['GLU', 'GLEW', 'pthread', common_libs]
- elif ( 'darwin' == sys.platform ):
- vdrift_install = "${PRODUCT_NAME}.app"
- pkgbase = "%s/Contents" % vdrift_install
diff --git a/games/vdrift/files/pkg-message.in b/games/vdrift/files/pkg-message.in
deleted file mode 100644
index 70ce3f18cf4a..000000000000
--- a/games/vdrift/files/pkg-message.in
+++ /dev/null
@@ -1,9 +0,0 @@
-###############################################################################
-
-The vdrift game was installed
-
-1) Set write permissions on ~/.vdrift/VDrift.config
-2) Run vdrift -datadir %%DATADIR%%
-3) Enjoy it ;)
-
-###############################################################################
diff --git a/games/vdrift/pkg-descr b/games/vdrift/pkg-descr
deleted file mode 100644
index e674acce621f..000000000000
--- a/games/vdrift/pkg-descr
+++ /dev/null
@@ -1,6 +0,0 @@
-VDrift is a cross-platform, open source driving simulation made with drift
-racing in mind. It's powered by the excellent Vamos physics engine. It is
-released under the GNU General Public License (GPL) v2. It is currently
-available for Linux, FreeBSD and Windows.
-
-WWW: http://www.vdrift.net/
diff --git a/games/vdrift/pkg-plist b/games/vdrift/pkg-plist
deleted file mode 100644
index a88e2c74d1b1..000000000000
--- a/games/vdrift/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-bin/vdrift
-%%NLS%%%%DATADIR%%/po/nl.po
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%NLS%%@dirrm %%DATADIR%%/po
-%%NLS%%@dirrmtry %%DATADIR%%