diff options
author | Rene Ladan <rene@FreeBSD.org> | 2016-07-04 20:48:23 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2016-07-04 20:48:23 +0000 |
commit | 19f31a471be151c3b37c2a53435168e9ee3e74cf (patch) | |
tree | 239999706f3f6d8d0babe480ab358d7675c96f78 /games/xroads | |
parent | 8c8c4d9eb88ee2827497807f6f0030ce52dae781 (diff) | |
download | ports-19f31a471be151c3b37c2a53435168e9ee3e74cf.tar.gz ports-19f31a471be151c3b37c2a53435168e9ee3e74cf.zip |
Notes
Diffstat (limited to 'games/xroads')
-rw-r--r-- | games/xroads/Makefile | 32 | ||||
-rw-r--r-- | games/xroads/distinfo | 2 | ||||
-rw-r--r-- | games/xroads/files/patch-Makefile | 52 | ||||
-rw-r--r-- | games/xroads/files/patch-ai.c | 116 | ||||
-rw-r--r-- | games/xroads/files/patch-config.h | 11 | ||||
-rw-r--r-- | games/xroads/files/patch-xroads.c | 134 | ||||
-rw-r--r-- | games/xroads/files/patch-xroads.h | 11 | ||||
-rw-r--r-- | games/xroads/pkg-descr | 5 | ||||
-rw-r--r-- | games/xroads/pkg-plist | 23 |
9 files changed, 0 insertions, 386 deletions
diff --git a/games/xroads/Makefile b/games/xroads/Makefile deleted file mode 100644 index 02020491769d..000000000000 --- a/games/xroads/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -# Created by: Andrey Zakhvatov -# $FreeBSD$ - -PORTNAME= xroads -PORTVERSION= 0.6 -PORTREVISION= 3 -CATEGORIES= games -MASTER_SITES= http://math.missouristate.edu/~erik/files/fbsd/ -DISTNAME= ${PORTNAME}-v${PORTVERSION} - -MAINTAINER= erik@bz.bzflag.bz -COMMENT= Commodore 64 "Crossroads"-like video game for X Window System - -BROKEN= unfetchable -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2016-07-04 -USE_XORG= x11 xpm xext - -OPTIONS_DEFINE= DOCS - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xroads ${STAGEDIR}${PREFIX}/bin - @${MKDIR} ${STAGEDIR}${PREFIX}/share/xroads -.for file in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 - ${INSTALL_DATA} ${WRKSRC}/map${file}.xrm ${STAGEDIR}${PREFIX}/share/xroads -.endfor - @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/xroads -.for file in BUGS CHANGELOG README - ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/doc/xroads -.endfor - -.include <bsd.port.mk> diff --git a/games/xroads/distinfo b/games/xroads/distinfo deleted file mode 100644 index 2873cb2ea273..000000000000 --- a/games/xroads/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (xroads-v0.6.tar.gz) = 9cc26b8cc244d72938fa854f598a5aae4312f1b8b5bc94085bbad06e4cbe41dc -SIZE (xroads-v0.6.tar.gz) = 60648 diff --git a/games/xroads/files/patch-Makefile b/games/xroads/files/patch-Makefile deleted file mode 100644 index 0d0c35316136..000000000000 --- a/games/xroads/files/patch-Makefile +++ /dev/null @@ -1,52 +0,0 @@ ---- Makefile.orig Sat Jul 17 10:37:03 1999 -+++ Makefile Fri Mar 30 21:19:14 2001 -@@ -5,8 +5,10 @@ - # the executable - ########################################################################### - --DATAPATH = /usr/games/xroads/ --BINPATH = /usr/X11R6/bin/ -+PREFIX ?= /usr/X11R6 -+LOCALBASE ?= /usr/X11R6 -+DATAPATH = ${PREFIX}/share/xroads -+BINPATH = ${PREFIX}/bin - # I imagine you would use this BINPATH for Solaris: - #BINPATH = /usr/openwin/bin/ - -@@ -16,7 +18,7 @@ - ########################################################################### - - #CFLAGS = -fomit-frame-pointer -O2 -Wall -DXRMPATH=\"$(DATAPATH)\" --CFLAGS = -O6 -mpentium -g -Wall -DXRMPATH=\"$(DATAPATH)\" -+CFLAGS += -DXRMPATH=\"$(DATAPATH)\" -I${LOCALBASE}/include - - ########################################################################### - # Links necessary for X11 -@@ -33,7 +35,7 @@ - ########################################################################### - - ### Linux machines use this line: --LINK = -L/usr/X11R6/lib -I/usr/X11R6/include -lX11 -lm -+LINK = -L${LOCALBASE}/lib -lX11 -lm - - ### This line should work on Sun machines: - #LINK = -L/usr/openwin/lib -I/usr/openwin/include -lX11 -lm -@@ -43,8 +45,7 @@ - ########################################################################### - - # Your C compiler --CC = egcs --#CC = gcc -+CC ?= gcc - - # Your tar - TAR = tar -@@ -71,7 +72,7 @@ - - ## "all" of course builds XRoads. - all: $(OBJECTS) -- $(CC) $(FLAGS) -o xroads $(OBJECTS) $(LINK) -+ $(CC) $(CFLAGS) -o xroads $(OBJECTS) $(LINK) - - install: all - rm -fr $(DATAPATH) diff --git a/games/xroads/files/patch-ai.c b/games/xroads/files/patch-ai.c deleted file mode 100644 index b644d1082761..000000000000 --- a/games/xroads/files/patch-ai.c +++ /dev/null @@ -1,116 +0,0 @@ ---- ai.c.orig Sat Nov 20 09:50:36 2004 -+++ ai.c Sat Nov 20 09:50:56 2004 -@@ -59,12 +59,12 @@ - int tries=0; - - /* If in a halfstep, finish it */ -- if(ntrunc(amonst->x)!=round(amonst->x)) switch(amonst->dir) { -+ if(ntrunc(amonst->x)!=xrround(amonst->x)) switch(amonst->dir) { - case LEFT: amonst->x-=0.5; return; - case RIGHT: amonst->x+=0.5; return; - default: amonst->dir = directions[(int)rnd(2) + 2]; break; - } -- if(ntrunc(amonst->y)!=round(amonst->y)) switch(amonst->dir) { -+ if(ntrunc(amonst->y)!=xrround(amonst->y)) switch(amonst->dir) { - case UP: amonst->y-=0.5; return; - case DOWN: amonst->y+=0.5; return; - default: amonst->dir = directions[(int)rnd(2)]; break; -@@ -84,9 +84,9 @@ - /* Find coordinates for new position */ - switch(dir) { - case UP: y-=0.5; eqy=ntrunc(y); eqx=ntrunc(x); break; -- case DOWN: y+=0.5; eqy=round(y); eqx=ntrunc(x); break; -+ case DOWN: y+=0.5; eqy=xrround(y); eqx=ntrunc(x); break; - case LEFT: x-=0.5; eqy=ntrunc(y); eqx=ntrunc(x); break; -- case RIGHT: x+=0.5; eqy=ntrunc(y); eqx=round(x); break; -+ case RIGHT: x+=0.5; eqy=ntrunc(y); eqx=xrround(x); break; - default: printf("Error: Not a direction\n"); return; - } - -@@ -95,7 +95,7 @@ - goto tryagain; - - /* Check for double half-step */ -- if(ntrunc(x)!=round(x) && ntrunc(y)!=round(y)) goto tryagain; -+ if(ntrunc(x)!=xrround(x) && ntrunc(y)!=xrround(y)) goto tryagain; - - /* Did we hit a powerup? */ - if(data[xytotype(eqx, eqy)].etype == POWERUP) { -@@ -121,12 +121,12 @@ - float dx, dy, dz; - - /* If in a halfstep, finish it */ -- if(ntrunc(amonst->x)!=round(amonst->x)) switch(amonst->dir) { -+ if(ntrunc(amonst->x)!=xrround(amonst->x)) switch(amonst->dir) { - case LEFT: amonst->x-=0.5; return; - case RIGHT: amonst->x+=0.5; return; - default: amonst->dir = directions[(int)rnd(2) + 2]; break; - } -- if(ntrunc(amonst->y)!=round(amonst->y)) switch(amonst->dir) { -+ if(ntrunc(amonst->y)!=xrround(amonst->y)) switch(amonst->dir) { - case UP: amonst->y-=0.5; return; - case DOWN: amonst->y+=0.5; return; - default: amonst->dir = directions[(int)rnd(2)]; break; -@@ -146,8 +146,8 @@ - tryagain: /* Come back here to try again */ - tries++; - if(tries>100) { -- if(ntrunc(amonst->x)==round(amonst->x) && -- ntrunc(amonst->y)==round(amonst->y)) -+ if(ntrunc(amonst->x)==xrround(amonst->x) && -+ ntrunc(amonst->y)==xrround(amonst->y)) - watchentity(amonst, target); - return; - } -@@ -186,7 +186,7 @@ - goto tryagain; - - /* Be careful of half-steps */ -- if(ntrunc(x)!=round(x) && ntrunc(y)!=round(y)) goto tryagain; -+ if(ntrunc(x)!=xrround(x) && ntrunc(y)!=xrround(y)) goto tryagain; - - /* Did we hit a powerup? */ - if(data[xytotype(eqx, eqy)].etype == POWERUP) { -@@ -318,7 +318,7 @@ - printf("I was asked to kill a monster that shouldn't be killed!\n"); - if(amonst->health <= 0) { - if(data[amonst->type].etype != EFFECT) { -- maze[round(amonst->y)][round(amonst->x)] = -2; /* Blank */ -+ maze[xrround(amonst->y)][xrround(amonst->x)] = -2; /* Blank */ - maze[ntrunc(amonst->y)][ntrunc(amonst->x)] = -2; /* Blank */ - } - draw_tilex2(mainwindow, data[amonst->type].tile[amonst->frame], -@@ -332,8 +332,8 @@ - bmonst->x*GRIDSIZE, bmonst->y*GRIDSIZE, - bmonst->color, bmonst->dir); - } -- if(maze[round(amonst->y)][round(amonst->x)]!=-2) { -- bmonst=&monst[maze[round(amonst->y)][round(amonst->x)]]; -+ if(maze[xrround(amonst->y)][xrround(amonst->x)]!=-2) { -+ bmonst=&monst[maze[xrround(amonst->y)][xrround(amonst->x)]]; - draw_tilex2(mainwindow, data[bmonst->type].tile[bmonst->frame], - bmonst->x*GRIDSIZE, bmonst->y*GRIDSIZE, - bmonst->color, bmonst->dir); -@@ -392,9 +392,9 @@ - amonst->atspeed = data[amonst->type].atspeed; - switch(amonst->dir) { - case LEFT: fx-=1; x=ntrunc(fx); y=ntrunc(fy); break; -- case RIGHT: fx+=1; x=round(fx); y=ntrunc(fy); break; -+ case RIGHT: fx+=1; x=xrround(fx); y=ntrunc(fy); break; - case UP: fy-=1; y=ntrunc(fy); x=ntrunc(fx); break; -- case DOWN: fy+=1; y=round(fy); x=ntrunc(fx); break; -+ case DOWN: fy+=1; y=xrround(fy); x=ntrunc(fx); break; - } - icorrectpos(&x, &y); - if(!checkdest(x, y)) { -@@ -460,8 +460,8 @@ - if(!(amonst->x == target->x || amonst->y == target->y)) return 0; - - /* Halfsteps are banned */ -- if(round(amonst->x) != ntrunc(amonst->x)) return 0; -- if(round(amonst->y) != ntrunc(amonst->y)) return 0; -+ if(xrround(amonst->x) != ntrunc(amonst->x)) return 0; -+ if(xrround(amonst->y) != ntrunc(amonst->y)) return 0; - - /* Force x1, y1 to be smaller pair */ - if(x1 > x2) { diff --git a/games/xroads/files/patch-config.h b/games/xroads/files/patch-config.h deleted file mode 100644 index e1d3efc93f4f..000000000000 --- a/games/xroads/files/patch-config.h +++ /dev/null @@ -1,11 +0,0 @@ ---- config.h.orig Sat Jul 17 10:37:03 1999 -+++ config.h Fri Mar 30 21:11:09 2001 -@@ -30,7 +30,7 @@ - /* Comment this out to disable the joystick code. This code currently only - works on Linux, and only uses one joystick */ - --#define USEJOYSTICK -+#undef USEJOYSTICK - - /* Don't enable the joystick by default. Otherwise, it defaults to - controlling player 1. Uncomment this if your joystick doesn't work diff --git a/games/xroads/files/patch-xroads.c b/games/xroads/files/patch-xroads.c deleted file mode 100644 index 9516ba106f63..000000000000 --- a/games/xroads/files/patch-xroads.c +++ /dev/null @@ -1,134 +0,0 @@ ---- xroads.c.orig Fri Jul 16 21:37:03 1999 -+++ xroads.c Sat Nov 20 10:01:35 2004 -@@ -318,7 +318,7 @@ - } - - /*************************************************************************************************/ --int round( float num ) { /* Round a float to an int */ -+int xrround( float num ) { /* Round a float to an int */ - return (int)(num+0.5); - } - -@@ -452,8 +452,8 @@ - } - - /* VacAttack */ -- if(data[amonst->type].attack1==VACCUUM && (round(amonst->x) == -- ntrunc(amonst->x) && round(amonst->y) == ntrunc(amonst->y)) && -+ if(data[amonst->type].attack1==VACCUUM && (xrround(amonst->x) == -+ ntrunc(amonst->x) && xrround(amonst->y) == ntrunc(amonst->y)) && - clearshot(amonst, &monst[targ]) && amonst->team!=monst[targ].team - && data[monst[targ].type].etype != POWERUP) { - watchentity(amonst, &monst[targ]); -@@ -479,9 +479,9 @@ - else amonst->frame++; - - if(data[amonst->type].etype!=EFFECT) { -- maze[round(oldy)][round(oldx)]=-2; /* Blank out old space */ -+ maze[xrround(oldy)][xrround(oldx)]=-2; /* Blank out old space */ - maze[ntrunc(oldy)][ntrunc(oldx)]=-2; -- maze[round(amonst->y)][round(amonst->x)]=number; -+ maze[xrround(amonst->y)][xrround(amonst->x)]=number; - maze[ntrunc(amonst->y)][ntrunc(amonst->x)]=number; - } - -@@ -491,8 +491,8 @@ - draw_tilex2(mainwindow, data[bmonst->type].tile[bmonst->frame], (bmonst->x)*GRIDSIZE, - (bmonst->y)*GRIDSIZE, bmonst->color, bmonst->dir); - } -- if(maze[round(amonst->y)][round(amonst->x)]!=-2) { -- bmonst=&monst[maze[round(amonst->y)][round(amonst->x)]]; -+ if(maze[xrround(amonst->y)][xrround(amonst->x)]!=-2) { -+ bmonst=&monst[maze[xrround(amonst->y)][xrround(amonst->x)]]; - draw_tilex2(mainwindow, data[bmonst->type].tile[bmonst->frame], (bmonst->x)*GRIDSIZE, - (bmonst->y)*GRIDSIZE, bmonst->color, bmonst->dir); - } -@@ -615,7 +615,7 @@ - else if(player->attr & PULL_R) { newx+=1; player->attr &= ~PULL_R; } - - /* Only one half-step at a time */ -- if(round(newx)!=ntrunc(newx) && round(newy)!=ntrunc(newy)) { -+ if(xrround(newx)!=ntrunc(newx) && xrround(newy)!=ntrunc(newy)) { - #ifdef DEBUG - printf("Damn, in two half-steps at a time...\n"); - #endif -@@ -631,17 +631,17 @@ - - /* If we're in a half-step, eqx and eqy are the space we're moving - into */ -- if(round(newx)!=ntrunc(newx)) { -+ if(xrround(newx)!=ntrunc(newx)) { - eqy = ntrunc(newy); - if(newx > player->x) -- eqx = round(newx); -+ eqx = xrround(newx); - else if(newx < player->x) - eqx = ntrunc(newx); - } -- else if(round(newy)!=ntrunc(newy)) { -+ else if(xrround(newy)!=ntrunc(newy)) { - eqx = ntrunc(newx); - if(newy > player->y) -- eqy = round(newy); -+ eqy = xrround(newy); - else if(newy < player->y) - eqy = ntrunc(newy); - } -@@ -652,9 +652,9 @@ - /* - switch(player->dir) { - case LEFT: eqx = ntrunc(newx); break; -- case RIGHT: eqx = round(newx); break; -+ case RIGHT: eqx = xrround(newx); break; - case UP: eqy = ntrunc(newy); break; -- case DOWN: eqy = round(newy); break; -+ case DOWN: eqy = xrround(newy); break; - default: break; - } - */ -@@ -667,8 +667,8 @@ - printf("Destination (%0.2f, %0.2f)...\n", newx, newy); - printf("Equiv (%d, %d)\n", eqx, eqy); - printf("@ %d, %d : %d\n", eqx, eqy, maze[eqy][eqx]); -- printf("newx: %0.2f: round %d, ntrunc %d\n", newx, round(newx), ntrunc(newx)); -- printf("newy: %0.2f: round %d, ntrunc %d\n", newy, round(newy), ntrunc(newy)); -+ printf("newx: %0.2f: round %d, ntrunc %d\n", newx, xrround(newx), ntrunc(newx)); -+ printf("newy: %0.2f: round %d, ntrunc %d\n", newy, xrround(newy), ntrunc(newy)); - printf("Checkdest: %d\n", checkdest(eqx, eqy)); - printf("-----\n"); - } -@@ -704,7 +704,7 @@ - #ifdef DEBUG - printf("something in the way. (%d or %d)\n", - maze[ntrunc(newy)][ntrunc(newx)], -- maze[round(newy)][round(newy)]); -+ maze[xrround(newy)][xrround(newy)]); - #endif - newx=player->x; - newy=player->y; -@@ -715,14 +715,14 @@ - #endif - - /* Destination has been set, now all we have to do is move there */ -- maze[round(player->y)][round(player->x)]=-2; -+ maze[xrround(player->y)][xrround(player->x)]=-2; - maze[ntrunc(player->y)][ntrunc(player->x)]=-2; - draw_tilex2(mainwindow, blank, player->x*GRIDSIZE, player->y*GRIDSIZE, - BLACK, RIGHT); - - /* Draw player */ - player->x=newx; player->y=newy; -- maze[round(player->y)][round(player->x)]=player->ind; -+ maze[xrround(player->y)][xrround(player->x)]=player->ind; - maze[ntrunc(player->y)][ntrunc(player->x)]=player->ind; - draw_tilex2(mainwindow, data[datapos].tile[player->frame], - player->x*GRIDSIZE, player->y*GRIDSIZE, -@@ -1340,7 +1340,7 @@ - player[i]->health = 0; - if(player[i]->attr & ACTIVE) { - player[i]->attr ^= ACTIVE; -- maze[round(player[i]->y)][round(player[i]->x)] = -2; -+ maze[xrround(player[i]->y)][xrround(player[i]->x)] = -2; - maze[ntrunc(player[i]->y)][ntrunc(player[i]->x)] = -2; - draw_tilex2(mainwindow, blank, player[i]->x*GRIDSIZE, - player[i]->y*GRIDSIZE, BLACK, RIGHT); diff --git a/games/xroads/files/patch-xroads.h b/games/xroads/files/patch-xroads.h deleted file mode 100644 index 0c82d490f7d7..000000000000 --- a/games/xroads/files/patch-xroads.h +++ /dev/null @@ -1,11 +0,0 @@ ---- xroads.h.orig Sat Nov 20 09:50:11 2004 -+++ xroads.h Sat Nov 20 09:49:42 2004 -@@ -33,7 +33,7 @@ - void killme( char * ); - void xconnect( int, char *[] ); - int ntrunc( float ); --int round( float ); -+int xrround( float ); - #ifdef SIGHANDLE - void sigcatch( int ); - #endif diff --git a/games/xroads/pkg-descr b/games/xroads/pkg-descr deleted file mode 100644 index 1805c77709cb..000000000000 --- a/games/xroads/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -XRoads is a game for the X Window System that attempts to be like the -game Crossroads (and it's sequel, Pandemonium) for the Commodore 64. -Basically, it is a 2-dimensional, overhead view maze game in which you -fight against a gang of monsters. There are (or at least, there will be) -tons of different twists in the game which make it fun. diff --git a/games/xroads/pkg-plist b/games/xroads/pkg-plist deleted file mode 100644 index 47bcbd40fc23..000000000000 --- a/games/xroads/pkg-plist +++ /dev/null @@ -1,23 +0,0 @@ -bin/xroads -%%PORTDOCS%%share/doc/xroads/BUGS -%%PORTDOCS%%share/doc/xroads/CHANGELOG -%%PORTDOCS%%share/doc/xroads/README -share/xroads/map00.xrm -share/xroads/map01.xrm -share/xroads/map02.xrm -share/xroads/map03.xrm -share/xroads/map04.xrm -share/xroads/map05.xrm -share/xroads/map06.xrm -share/xroads/map07.xrm -share/xroads/map08.xrm -share/xroads/map09.xrm -share/xroads/map10.xrm -share/xroads/map11.xrm -share/xroads/map12.xrm -share/xroads/map13.xrm -share/xroads/map14.xrm -share/xroads/map15.xrm -share/xroads/map16.xrm -share/xroads/map17.xrm -share/xroads/map18.xrm |