svn commit: r330705 - in head/games: . traingame traingame/files

Rusmir Dusko nemysis at FreeBSD.org
Fri Oct 18 00:28:53 UTC 2013


Author: nemysis
Date: Fri Oct 18 00:28:50 2013
New Revision: 330705
URL: http://svnweb.freebsd.org/changeset/ports/330705

Log:
  Train Game (working title) is a game about trains! Woo! You control a train
  which you drive around a 3D world picking up cargo, trundle it about,
  and deliver it for PROFIT; whilst avoiding disasters like falling off the rails,
  hitting other trains, bad weather, or privatisation.
  Imagine Elite but with trains instead of space craft.
  Cant believe no ones thought of it before.
  
  WWW: http://www.doof.me.uk/train-game/
  
  PR:		ports/171552
  Submitted by:	nemysis (self)
  Approved by:	wg (mentor)

Added:
  head/games/traingame/
  head/games/traingame/Makefile   (contents, props changed)
  head/games/traingame/distinfo   (contents, props changed)
  head/games/traingame/files/
  head/games/traingame/files/pkg-message.in   (contents, props changed)
  head/games/traingame/files/traingame-map.in   (contents, props changed)
  head/games/traingame/files/traingame.in   (contents, props changed)
  head/games/traingame/pkg-descr   (contents, props changed)
  head/games/traingame/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Fri Oct 18 00:17:41 2013	(r330704)
+++ head/games/Makefile	Fri Oct 18 00:28:50 2013	(r330705)
@@ -944,6 +944,7 @@
     SUBDIR += trackballs
     SUBDIR += tractorgen
     SUBDIR += traindirector
+    SUBDIR += traingame
     SUBDIR += tremulous
     SUBDIR += trigger
     SUBDIR += trimines

Added: head/games/traingame/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/Makefile	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,75 @@
+# Created by: Rusmir Dusko <nemysis at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	traingame
+PORTVERSION=	0.2.2
+CATEGORIES=	games
+MASTER_SITES=	http://www.nickg.me.uk/files/:game \
+		SF/nemysisfreebsdp/:icons
+DISTFILES=	TrainGame-${DISTVERSION}${EXTRACT_SUFX}:game \
+		${PORTNAME}_icons.tar.gz:icons
+DIST_SUBDIR=	${PORTNAME}
+
+MAINTAINER=	nemysis at FreeBSD.org
+COMMENT=	Game about Trains
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
+		libxerces-c.so:${PORTSDIR}/textproc/xerces-c3 \
+		libboost_filesystem.so:${PORTSDIR}/devel/boost-libs
+RUN_DEPENDS=	xterm:${PORTSDIR}/x11/xterm
+
+WRKSRC=		${WRKDIR}/TrainGame-${PORTVERSION}
+
+USES=		cmake pkgconfig
+USE_SDL=	sdl image
+USE_GL=		glew
+USE_GCC=	4.6+
+
+PORTDOCS=	model_notes.txt models.gnuplot
+
+INSTALLS_ICONS=	yes
+ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
+
+SUB_FILES=	${PORTNAME} \
+		${PORTNAME}-map \
+		pkg-message
+
+DESKTOP_ENTRIES="Train Game" "${COMMENT}" ${PORTNAME} \
+		"xterm -e ${PORTNAME}-map" "Game;ArcadeGame;" false
+
+post-patch:
+		@${REINPLACE_CMD} -e 's|shared_ptr|std::shared_ptr|' \
+			${WRKSRC}/src/Mesh.cpp
+
+do-install:
+.for d in ${PORTNAME} ${PORTNAME}-map
+	${INSTALL_SCRIPT} ${WRKDIR}/${d} ${STAGEDIR}${PREFIX}/bin/
+.endfor
+.for d in buildings engines fonts images layouts maps schemas trees waggons
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/TrainGame ${STAGEDIR}${DATADIR}/${PORTNAME}
+
+.for s in ${ICON_SIZES}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
+	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
+		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+.endfor
+	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+	@${ECHO_CMD}
+	@${ECHO_CMD} ===============================================================================
+	@${ECHO_CMD}
+	@${ECHO_CMD} "These Maps you can use:"
+	@${ECHO_CMD}
+	@${LS} ${STAGEDIR}${DATADIR}/maps
+	@${ECHO_CMD}
+	@${ECHO_CMD} ===============================================================================
+
+.include <bsd.port.mk>

Added: head/games/traingame/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/distinfo	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,4 @@
+SHA256 (traingame/TrainGame-0.2.2.tar.gz) = d25fdda2bdfe27543debb64f901911534006538ad5f7dbf40da5622e177436e7
+SIZE (traingame/TrainGame-0.2.2.tar.gz) = 1057361
+SHA256 (traingame/traingame_icons.tar.gz) = f35937ac4893a4d803888fc2d8d3890a769bda77548a1dc45c09b95738f3dbb7
+SIZE (traingame/traingame_icons.tar.gz) = 25088

Added: head/games/traingame/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/files/pkg-message.in	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,18 @@
+===============================================================================
+
+Train Game has been installed.
+
+Now you can play the game by running:
+
+     %%PREFIX%%/bin/traingame-map
+
+or manually with
+
+     %%PREFIX%%/bin/traingame play <map_name_here>
+
+
+To use the editor, run:
+
+     %%PREFIX%%/bin/traingame edit <map_name_here>
+
+===============================================================================

Added: head/games/traingame/files/traingame-map.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/files/traingame-map.in	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+echo ""
+echo -n  "Which Train Game Map would You use?"
+echo ""
+ls %%DATADIR%%/maps
+echo ""
+read MAP
+
+traingame play $MAP

Added: head/games/traingame/files/traingame.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/files/traingame.in	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec ./traingame "${@}"

Added: head/games/traingame/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/pkg-descr	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,8 @@
+Train Game (working title) is a game about trains! Woo! You control a train
+which you drive around a 3D world picking up cargo, trundle it about,
+and deliver it for PROFIT; whilst avoiding disasters like falling off the rails,
+hitting other trains, bad weather, or privatisation.
+Imagine Elite but with trains instead of space craft.
+Cant believe no ones thought of it before.
+
+WWW: http://www.doof.me.uk/train-game/

Added: head/games/traingame/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/traingame/pkg-plist	Fri Oct 18 00:28:50 2013	(r330705)
@@ -0,0 +1,147 @@
+bin/traingame
+bin/traingame-map
+share/icons/hicolor/32x32/apps/traingame.png
+share/icons/hicolor/48x48/apps/traingame.png
+share/icons/hicolor/64x64/apps/traingame.png
+share/icons/hicolor/72x72/apps/traingame.png
+share/icons/hicolor/96x96/apps/traingame.png
+share/pixmaps/traingame.png
+%%DATADIR%%/buildings/coal_mine/coal_mine.mtl
+%%DATADIR%%/buildings/coal_mine/coal_mine.obj
+%%DATADIR%%/buildings/coal_mine/coal_mine.wings
+%%DATADIR%%/buildings/coal_mine/coal_mine.xml
+%%DATADIR%%/buildings/house2/house2.mtl
+%%DATADIR%%/buildings/house2/house2.obj
+%%DATADIR%%/buildings/house2/house2.wings
+%%DATADIR%%/buildings/house2/house2.xml
+%%DATADIR%%/buildings/platform_end/platform_end.mtl
+%%DATADIR%%/buildings/platform_end/platform_end.obj
+%%DATADIR%%/buildings/platform_end/platform_end.wings
+%%DATADIR%%/buildings/platform_end/platform_end.xml
+%%DATADIR%%/buildings/platform_middle/platform_middle.mtl
+%%DATADIR%%/buildings/platform_middle/platform_middle.obj
+%%DATADIR%%/buildings/platform_middle/platform_middle.wings
+%%DATADIR%%/buildings/platform_middle/platform_middle.xml
+%%DATADIR%%/buildings/power_plant/power_plant.mtl
+%%DATADIR%%/buildings/power_plant/power_plant.obj
+%%DATADIR%%/buildings/power_plant/power_plant.wings
+%%DATADIR%%/buildings/power_plant/power_plant.xml
+%%DATADIR%%/buildings/white_house/cube2_auv.png
+%%DATADIR%%/buildings/white_house/house.mtl
+%%DATADIR%%/buildings/white_house/house.obj
+%%DATADIR%%/buildings/white_house/house.wings
+%%DATADIR%%/buildings/white_house/white_house.xml
+%%DATADIR%%/engines/base.wings
+%%DATADIR%%/engines/red/red.xml
+%%DATADIR%%/engines/red/train.mtl
+%%DATADIR%%/engines/red/train.obj
+%%DATADIR%%/engines/red/train.wings
+%%DATADIR%%/engines/saddle/saddle.mtl
+%%DATADIR%%/engines/saddle/saddle.obj
+%%DATADIR%%/engines/saddle/saddle.wings
+%%DATADIR%%/engines/saddle/saddle.xml
+%%DATADIR%%/engines/tank/tank.mtl
+%%DATADIR%%/engines/tank/tank.obj
+%%DATADIR%%/engines/tank/tank.wings
+%%DATADIR%%/engines/tank/tank.xml
+%%DATADIR%%/fonts/DejaVuSans.ttf
+%%DATADIR%%/fonts/DejaVuSansMono.ttf
+%%DATADIR%%/fonts/Vera.ttf
+%%DATADIR%%/images/buildings_icon.png
+%%DATADIR%%/images/button_active.png
+%%DATADIR%%/images/button_base.png
+%%DATADIR%%/images/delete_icon.png
+%%DATADIR%%/images/icons/next.png
+%%DATADIR%%/images/icons/prev.png
+%%DATADIR%%/images/icons/rotate.png
+%%DATADIR%%/images/icons/save.png
+%%DATADIR%%/images/icons/smooth.png
+%%DATADIR%%/images/icons/tree.png
+%%DATADIR%%/images/level_icon.png
+%%DATADIR%%/images/lower_icon.png
+%%DATADIR%%/images/raise_icon.png
+%%DATADIR%%/images/smoke_particle.png
+%%DATADIR%%/images/start_icon.png
+%%DATADIR%%/images/start_icon2.png
+%%DATADIR%%/images/station_icon.png
+%%DATADIR%%/images/track_icon.png
+%%DATADIR%%/layouts/demo.xml
+%%DATADIR%%/layouts/editor.xml
+%%DATADIR%%/layouts/game.xml
+%%DATADIR%%/maps/coal_mine/coal_mine.bin
+%%DATADIR%%/maps/coal_mine/coal_mine.xml
+%%DATADIR%%/maps/demo/demo.bin
+%%DATADIR%%/maps/demo/demo.xml
+%%DATADIR%%/maps/figure8/figure8.bin
+%%DATADIR%%/maps/figure8/figure8.xml
+%%DATADIR%%/maps/gen_track/gen_track.bin
+%%DATADIR%%/maps/gen_track/gen_track.xml
+%%DATADIR%%/maps/goods_demo/goods_demo.bin
+%%DATADIR%%/maps/goods_demo/goods_demo.xml
+%%DATADIR%%/maps/long_map/long_map.bin
+%%DATADIR%%/maps/long_map/long_map.xml
+%%DATADIR%%/maps/points/points.bin
+%%DATADIR%%/maps/points/points.xml
+%%DATADIR%%/maps/power_plant/power_plant.bin
+%%DATADIR%%/maps/power_plant/power_plant.xml
+%%DATADIR%%/maps/sbends/sbends.bin
+%%DATADIR%%/maps/sbends/sbends.xml
+%%DATADIR%%/maps/uphill/uphill.bin
+%%DATADIR%%/maps/uphill/uphill.xml
+%%DATADIR%%/maps/villages/villages.bin
+%%DATADIR%%/maps/villages/villages.xml
+%%DATADIR%%/schemas/building.xsd
+%%DATADIR%%/schemas/config.xsd
+%%DATADIR%%/schemas/engine.xsd
+%%DATADIR%%/schemas/layout.xsd
+%%DATADIR%%/schemas/map.xsd
+%%DATADIR%%/schemas/tree.xsd
+%%DATADIR%%/schemas/waggon.xsd
+%%DATADIR%%/traingame
+%%DATADIR%%/trees/apple/apple.mtl
+%%DATADIR%%/trees/apple/apple.obj
+%%DATADIR%%/trees/apple/apple.wings
+%%DATADIR%%/trees/apple/apple.xml
+%%DATADIR%%/trees/pine/pine.mtl
+%%DATADIR%%/trees/pine/pine.obj
+%%DATADIR%%/trees/pine/pine.wings
+%%DATADIR%%/trees/pine/pine.xml
+%%DATADIR%%/waggons/coal_truck/coal_truck.mtl
+%%DATADIR%%/waggons/coal_truck/coal_truck.obj
+%%DATADIR%%/waggons/coal_truck/coal_truck.wings
+%%DATADIR%%/waggons/coal_truck/coal_truck.xml
+%%DATADIR%%/waggons/waggon_base.wings
+ at dirrm %%DATADIR%%/waggons/coal_truck
+ at dirrm %%DATADIR%%/waggons
+ at dirrm %%DATADIR%%/trees/pine
+ at dirrm %%DATADIR%%/trees/apple
+ at dirrm %%DATADIR%%/trees
+ at dirrm %%DATADIR%%/schemas
+ at dirrm %%DATADIR%%/maps/villages
+ at dirrm %%DATADIR%%/maps/uphill
+ at dirrm %%DATADIR%%/maps/sbends
+ at dirrm %%DATADIR%%/maps/power_plant
+ at dirrm %%DATADIR%%/maps/points
+ at dirrm %%DATADIR%%/maps/long_map
+ at dirrm %%DATADIR%%/maps/goods_demo
+ at dirrm %%DATADIR%%/maps/gen_track
+ at dirrm %%DATADIR%%/maps/figure8
+ at dirrm %%DATADIR%%/maps/demo
+ at dirrm %%DATADIR%%/maps/coal_mine
+ at dirrm %%DATADIR%%/maps
+ at dirrm %%DATADIR%%/layouts
+ at dirrm %%DATADIR%%/images/icons
+ at dirrm %%DATADIR%%/images
+ at dirrm %%DATADIR%%/fonts
+ at dirrm %%DATADIR%%/engines/tank
+ at dirrm %%DATADIR%%/engines/saddle
+ at dirrm %%DATADIR%%/engines/red
+ at dirrm %%DATADIR%%/engines
+ at dirrm %%DATADIR%%/buildings/white_house
+ at dirrm %%DATADIR%%/buildings/power_plant
+ at dirrm %%DATADIR%%/buildings/platform_middle
+ at dirrm %%DATADIR%%/buildings/platform_end
+ at dirrm %%DATADIR%%/buildings/house2
+ at dirrm %%DATADIR%%/buildings/coal_mine
+ at dirrm %%DATADIR%%/buildings
+ at dirrm %%DATADIR%%


More information about the svn-ports-all mailing list