Date: 15 Nov 2002 17:02:23 -0000 From: Guido Falsi <mad@madpilot.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/45316: new-port: game, train control simulation Message-ID: <20021115170223.63809.qmail@jabba.madpilot.net>
next in thread | raw e-mail | index | archive | help
>Number: 45316 >Category: ports >Synopsis: new-port: game, train control simulation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Nov 15 09:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Guido Falsi >Release: FreeBSD 4.7-STABLE i386 >Organization: none >Environment: System: FreeBSD jabba.madpilot.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Mon Nov 4 21:08:02 CET 2002 root@wedge.madpilot.net:/usr/local/obj/usr/src/sys/JABBA i386 >Description: New port, game, a little simulation of a train dispatching station. Can simulate real station with real schedules. Datafiles downloadable from the home page. Question: wqould it be better to incllude some documentation and scenaries in the port? or add a pkg-message saying where to find the files? >How-To-Repeat: >Fix: --- tdirport begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # traindirector # traindirector/Makefile # traindirector/pkg-comment # traindirector/pkg-descr # traindirector/files # traindirector/files/patch-aa # traindirector/files/patch-ab # traindirector/files/patch-ac # traindirector/pkg-plist # traindirector/distinfo # echo c - traindirector mkdir -p traindirector > /dev/null 2>&1 echo x - traindirector/Makefile sed 's/^X//' >traindirector/Makefile << 'END-of-traindirector/Makefile' X# New ports collection makefile for: oneko X# Date created: 15/11/2002 X# Whom: Guido Falsi <mad@madpilot.net> X# X# $FreeBSD$ X# X XPORTNAME= tdir XPORTVERSION= 1.17f XCATEGORIES= games XMASTER_SITES= http://www.backerstreet.com/traindir/ XDISTNAME= tdir117s XEXTRACT_SUFX= .zip X XMAINTAINER= mad@madpilot.net X XUSE_ZIP= yes XUSE_XLIB= yes XUSE_X_PREFIX= yes XUSE_GLIB= yes XUSE_GTK= yes X XNO_WRKSUBDIR= yes X Xpost-patch: X @ cd ${WRKSRC} ; ${LN} MAKEFILE Makefile ; \ X ${MV} Gdialog.c gdialog.c ; ${MV} Gtkopen.c gtkopen.c ; \ X ${MV} Gtkopen.h gtkopen.h ; ${MV} Html.c html.c ; \ X ${MV} Html.h html.h X X.include <bsd.port.mk> END-of-traindirector/Makefile echo x - traindirector/pkg-comment sed 's/^X//' >traindirector/pkg-comment << 'END-of-traindirector/pkg-comment' XTrain controller simulation END-of-traindirector/pkg-comment echo x - traindirector/pkg-descr sed 's/^X//' >traindirector/pkg-descr << 'END-of-traindirector/pkg-descr' XTrain Director is a clone of the popular Train Dispatcher simulation Xsoftware. Train Director is available for Windows 95 and Linux. XWith Train Director you can simulate the work of the Centralized XTraffic Control by controlling the movement of trains by throwing Xswitches and clearing signals. You can also create your own territories Xwith the included track layout editor. X XWWW: http://www.backerstreet.com/traindir/trdireng.htm X X-- XGuido Falsi <mad@madpilot.net> END-of-traindirector/pkg-descr echo c - traindirector/files mkdir -p traindirector/files > /dev/null 2>&1 echo x - traindirector/files/patch-aa sed 's/^X//' >traindirector/files/patch-aa << 'END-of-traindirector/files/patch-aa' X*** MAKEFILE.orig Sat May 20 09:37:10 2000 X--- MAKEFILE Fri Nov 15 17:35:13 2002 X*************** X*** 1,20 **** X! OBJS = button.o clist.o field.o gtkask.o gtkmain.o loadsave.o \ X! menu.o run.o table.o track.o trsim.o X X CC = gcc X X! CFLAGS = X X DEBUG = -g X X all: trsim X X trsim: $(OBJS) X! $(CC) -o $@ $(OBJS) `gtk-config --libs` -lcurses X X .c.o: X! $(CC) `gtk-config --cflags` $(CFLAGS) $(DEBUG) -c $< X X X clean: X rm -f *.o trsim core X--- 1,22 ---- X! OBJS = button.o clist.o field.o gtkask.o gtkmain.o gtkopen.o gdialog.o \ X! loadsave.o menu.o run.o table.o track.o trsim.o html.o tgraph.o X X CC = gcc X X! CFLAGS += X X DEBUG = -g X X all: trsim X X trsim: $(OBJS) X! $(CC) -o $@ $(OBJS) `gtk12-config --libs` -lcurses X X .c.o: X! $(CC) `gtk12-config --cflags` $(CFLAGS) $(DEBUG) -c $< X X+ install: trsim X+ $(INSTALL) -o bin -g bin -m 555 trsim $(PREFIX)/bin X X clean: X rm -f *.o trsim core END-of-traindirector/files/patch-aa echo x - traindirector/files/patch-ab sed 's/^X//' >traindirector/files/patch-ab << 'END-of-traindirector/files/patch-ab' X*** gtkmain.c.orig Sat Jul 20 16:44:24 2002 X--- gtkmain.c Fri Nov 15 16:51:15 2002 X*************** X*** 143,149 **** X X #ifdef unix X if(getenv("TDHOME")) X! chdir(getenv("TDHOME")) X #endif X screen_width = gdk_screen_width(); X X--- 143,149 ---- X X #ifdef unix X if(getenv("TDHOME")) X! chdir(getenv("TDHOME")); X #endif X screen_width = gdk_screen_width(); X END-of-traindirector/files/patch-ab echo x - traindirector/files/patch-ac sed 's/^X//' >traindirector/files/patch-ac << 'END-of-traindirector/files/patch-ac' X*** run.c.orig Sat Jul 20 18:10:32 2002 X--- run.c Fri Nov 15 17:01:17 2002 X*************** X*** 23,28 **** X--- 23,33 ---- X #include <malloc.h> X #include "ask.h" X #include "trsim.h" X+ X+ #if (defined(__unix__) || defined(unix)) && !defined(USG) X+ #include <sys/param.h> X+ #endif X+ X X int assign_ok = 1; X X*************** X*** 56,62 **** X--- 61,71 ---- X { X if(i >= v->size) { X printf("Bad index %d: only %d elements in vector!\n", i, v->size); X+ #if (defined(BSD) && (BSD >= 199103)) X+ abort(); X+ #else X abort(0); X+ #endif X } X return v->ptr[i]; X } X*************** X*** 65,71 **** X--- 74,84 ---- X { X if(i >= v->size) { X printf("Bad index %d: only %d elements in vector!\n", i, v->size); X+ #if (defined(BSD) && (BSD >= 199103)) X+ abort(); X+ #else X abort(0); X+ #endif X } X return v->flags[i]; X } END-of-traindirector/files/patch-ac echo x - traindirector/pkg-plist sed 's/^X//' >traindirector/pkg-plist << 'END-of-traindirector/pkg-plist' Xbin/trsim END-of-traindirector/pkg-plist echo x - traindirector/distinfo sed 's/^X//' >traindirector/distinfo << 'END-of-traindirector/distinfo' XMD5 (tdir117s.zip) = a395243f384798de3e1a0bd6af40a3c5 END-of-traindirector/distinfo exit --- tdirport ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021115170223.63809.qmail>