Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2013 00:28:51 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r330705 - in head/games: . traingame traingame/files
Message-ID:  <201310180028.r9I0Spgp053424@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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
+@dirrm %%DATADIR%%/waggons/coal_truck
+@dirrm %%DATADIR%%/waggons
+@dirrm %%DATADIR%%/trees/pine
+@dirrm %%DATADIR%%/trees/apple
+@dirrm %%DATADIR%%/trees
+@dirrm %%DATADIR%%/schemas
+@dirrm %%DATADIR%%/maps/villages
+@dirrm %%DATADIR%%/maps/uphill
+@dirrm %%DATADIR%%/maps/sbends
+@dirrm %%DATADIR%%/maps/power_plant
+@dirrm %%DATADIR%%/maps/points
+@dirrm %%DATADIR%%/maps/long_map
+@dirrm %%DATADIR%%/maps/goods_demo
+@dirrm %%DATADIR%%/maps/gen_track
+@dirrm %%DATADIR%%/maps/figure8
+@dirrm %%DATADIR%%/maps/demo
+@dirrm %%DATADIR%%/maps/coal_mine
+@dirrm %%DATADIR%%/maps
+@dirrm %%DATADIR%%/layouts
+@dirrm %%DATADIR%%/images/icons
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%/fonts
+@dirrm %%DATADIR%%/engines/tank
+@dirrm %%DATADIR%%/engines/saddle
+@dirrm %%DATADIR%%/engines/red
+@dirrm %%DATADIR%%/engines
+@dirrm %%DATADIR%%/buildings/white_house
+@dirrm %%DATADIR%%/buildings/power_plant
+@dirrm %%DATADIR%%/buildings/platform_middle
+@dirrm %%DATADIR%%/buildings/platform_end
+@dirrm %%DATADIR%%/buildings/house2
+@dirrm %%DATADIR%%/buildings/coal_mine
+@dirrm %%DATADIR%%/buildings
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310180028.r9I0Spgp053424>