1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

multi-player Angband

This commit is contained in:
Andrey A. Chernov 1999-01-01 03:14:08 +00:00
parent 6b1a37e21e
commit 358320d4ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=15746
9 changed files with 222 additions and 0 deletions

37
games/mangband/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: mangband
# http://www.umr.edu/~keldon/MAngband/
# Version required: 0.5.4
# Date created: 30 Dec 1998
#
# $Id: Makefile,v 1.7 1998/08/05 09:30:52 asami Exp $
#
DISTNAME= mangband-054
PKGNAME= mangband-0.5.4
CATEGORIES= games
MASTER_SITES= http://www.umr.edu/~keldon/MAngband/
WRKSRC= ${WRKDIR}/mangband/src
ALL_TARGET= install
USE_XLIB= yes
MAINTAINER= ache@freebsd.org
MALIB= ${PREFIX}/lib/mangband
do-install:
${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 555 ${MALIB}
cd ${WRKSRC}/../lib; cp -R -p * ${MALIB}; \
cd ${MALIB}; \
touch file/wizards.txt; \
chmod 750 *; chown -R games.games *; \
chmod 755 user;
cd ${WRKSRC}; \
${INSTALL_PROGRAM} -o games -g games -m 4550 \
mangband ${PREFIX}/bin; \
${INSTALL_PROGRAM} -o games -g games -m 550 \
mangconsole ${PREFIX}/bin; \
${INSTALL_PROGRAM} mangclient ${PREFIX}/bin
.include <bsd.port.mk>

1
games/mangband/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (mangband-054.tar.gz) = 27bd83d4ad82841c278291af757f1baa

View File

@ -0,0 +1,38 @@
--- config.h.orig Wed Oct 21 09:45:08 1998
+++ config.h Wed Dec 30 17:23:11 1998
@@ -75,7 +75,7 @@
/*
* OPTION: Use the POSIX "termios" methods in "main-gcu.c"
*/
-/* #define USE_TPOSIX */
+#define USE_TPOSIX
/*
* OPTION: Use the "termio" methods in "main-gcu.c"
@@ -103,7 +103,7 @@
* OPTION: Use the "curs_set()" call in "main-gcu.c".
* Hack -- This option will not work on most BSD machines
*/
-#ifdef SYS_V
+#if defined(SYS_V) || defined(__FreeBSD__)
# define USE_CURS_SET
#endif
@@ -504,7 +504,7 @@
/*
* OPTION: Have the server respond to commands typed in on its tty.
*/
-#define SERVER_CONSOLE
+/* #define SERVER_CONSOLE */
/*
* OPTION: Enable a method to control the server from an external program.
@@ -566,7 +566,7 @@
/*
* OPTION: Attempt to prevent all "cheating"
*/
-/* #define VERIFY_HONOR */
+#define VERIFY_HONOR
/*

View File

@ -0,0 +1,13 @@
--- Makefile.orig Tue Dec 2 09:04:04 1997
+++ Makefile Fri Jan 1 05:42:43 1999
@@ -153,8 +153,8 @@
# including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will
# attempt to "guess" at many of these flags based on your system.
#
-CFLAGS = -Wall -g -pipe -D"USE_X11" -D"USE_GCU" -I/usr/include/ncurses
-LIBS = -L/usr/X11R6/lib -lX11 -lncurses -ltermcap
+CFLAGS += -Wall -D"USE_X11" -D"USE_GCU" -I${X11BASE}/include -DDEFAULT_PATH=\"${PREFIX}/lib/mangband\"
+LIBS = -L${X11BASE}/lib -lX11 -lncurses -lmytinfo
##

View File

@ -0,0 +1,11 @@
--- server/save.c.bak Sat May 9 21:38:56 1998
+++ server/save.c Wed Dec 30 13:33:13 1998
@@ -2305,7 +2305,7 @@
#ifdef VERIFY_SAVEFILE
/* Lock on savefile */
- strcpy(temp, savefile);
+ strcpy(temp, p_ptr->savefile);
strcat(temp, ".lok");
/* Remove lock file */

View File

@ -0,0 +1,52 @@
--- common/net-unix.c.orig Sat Nov 22 10:47:36 1997
+++ common/net-unix.c Wed Dec 30 18:12:07 1998
@@ -2461,11 +2461,14 @@
#ifdef UNIX_SOCKETS
strcpy(name, "localhost");
#else
+ struct hostent *he;
+#if 0
struct hostent *he, *xpilot_he, tmp;
int xpilot_len;
char *alias, *dot;
char xpilot_hostname[MAXHOSTNAMELEN];
static const char xpilot[] = "xpilot";
+#endif
#ifdef VMS
char vms_inethost[MAXHOSTNAMELEN] = "UCX$INET_HOST";
char vms_inetdomain[MAXHOSTNAMELEN] = "UCX$INET_DOMAIN";
@@ -2473,7 +2476,7 @@
char vms_domain[MAXHOSTNAMELEN];
int namelen;
#endif
-
+#if 0
xpilot_len = strlen(xpilot);
/* Make a wild guess that a "xpilot" hostname or alias is in this domain */
@@ -2484,7 +2487,7 @@
xpilot_he = &tmp;
}
}
-
+#endif
gethostname(name, size);
if ((he = gethostbyname(name)) == NULL) {
return;
@@ -2534,7 +2537,7 @@
return;
}
}
-
+#if 0
/*
* If a "xpilot" host is found compare if it's this one.
* and if so, make the local name as "xpilot.*"
@@ -2573,6 +2576,7 @@
}
/* NOT REATCHED */
}
+#endif
#endif
} /* GetLocalHostName */

View File

@ -0,0 +1 @@
multiplayer rogue-like game with color, X11 support.

3
games/mangband/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
MAngband is a multiplayer version of the roguelike game Angband.
If you have no idea what Angband is, I suggest that you visit
Official Angband Page http://www.phial.com/angband/

66
games/mangband/pkg-plist Normal file
View File

@ -0,0 +1,66 @@
bin/mangband
bin/mangclient
bin/mangconsole
@exec install -d -o bin -g bin -m 555 %D/lib/mangband
@exec install -d -o games -g games -m 750 %D/lib/mangband/apex
@exec install -d -o games -g games -m 750 %D/lib/mangband/bone
@exec install -d -o games -g games -m 750 %D/lib/mangband/data
@exec install -d -o games -g games -m 750 %D/lib/mangband/edit
@exec install -d -o games -g games -m 750 %D/lib/mangband/file
@exec install -d -o games -g games -m 750 %D/lib/mangband/help
@exec install -d -o games -g games -m 750 %D/lib/mangband/info
@exec install -d -o games -g games -m 750 %D/lib/mangband/save
@exec install -d -o games -g games -m 755 %D/lib/mangband/user
@exec install -d -o games -g games -m 750 %D/lib/mangband/xtra
lib/mangband/data/a_info.raw
lib/mangband/data/e_info.raw
lib/mangband/data/f_info.raw
lib/mangband/data/k_info.raw
lib/mangband/data/r_info.raw
lib/mangband/data/v_info.raw
lib/mangband/edit/a_info.txt
lib/mangband/edit/e_info.txt
lib/mangband/edit/f_info.txt
lib/mangband/edit/k_info.txt
lib/mangband/edit/r_info.txt
lib/mangband/edit/v_info.txt
lib/mangband/file/dead.txt
lib/mangband/file/news.txt
lib/mangband/file/wizards.txt
lib/mangband/help/attack.txt
lib/mangband/help/birth.txt
lib/mangband/help/command.txt
lib/mangband/help/dungeon.txt
lib/mangband/help/general.txt
lib/mangband/help/help.hlp
lib/mangband/help/mangband.hlp
lib/mangband/help/option.txt
lib/mangband/help/version.txt
lib/mangband/user/font-ami.prf
lib/mangband/user/font-ibm.prf
lib/mangband/user/font-win.prf
lib/mangband/user/graf-ami.prf
lib/mangband/user/graf-win.prf
lib/mangband/user/options.prf
lib/mangband/user/pref-acn.prf
lib/mangband/user/pref-emx.prf
lib/mangband/user/pref-ibm.prf
lib/mangband/user/pref-lsl.prf
lib/mangband/user/pref-mac.prf
lib/mangband/user/pref-win.prf
lib/mangband/user/pref-x11.prf
lib/mangband/user/pref-xaw.prf
lib/mangband/user/pref.prf
lib/mangband/user/priest.prf
lib/mangband/user/window.prf
@dirrm lib/mangband/apex
@dirrm lib/mangband/bone
@dirrm lib/mangband/data
@dirrm lib/mangband/edit
@dirrm lib/mangband/file
@dirrm lib/mangband/help
@dirrm lib/mangband/info
@dirrm lib/mangband/save
@dirrm lib/mangband/user
@dirrm lib/mangband/xtra
@dirrm lib/mangband