aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-01-01 11:14:08 +0800
committerache <ache@FreeBSD.org>1999-01-01 11:14:08 +0800
commit7fc1767545b8264401a9566af5ec5d435f4db2e8 (patch)
tree26f620ecada0a41454dfd7f2bdc6fcf2d511a704
parentbe7b3481b5bae7db5421be5cbc6e4a367a149b13 (diff)
downloadfreebsd-ports-gnome-7fc1767545b8264401a9566af5ec5d435f4db2e8.tar.gz
freebsd-ports-gnome-7fc1767545b8264401a9566af5ec5d435f4db2e8.tar.zst
freebsd-ports-gnome-7fc1767545b8264401a9566af5ec5d435f4db2e8.zip
multi-player Angband
-rw-r--r--games/mangband/Makefile37
-rw-r--r--games/mangband/distinfo1
-rw-r--r--games/mangband/files/patch-aa38
-rw-r--r--games/mangband/files/patch-ab13
-rw-r--r--games/mangband/files/patch-ac11
-rw-r--r--games/mangband/files/patch-ad52
-rw-r--r--games/mangband/pkg-comment1
-rw-r--r--games/mangband/pkg-descr3
-rw-r--r--games/mangband/pkg-plist66
9 files changed, 222 insertions, 0 deletions
diff --git a/games/mangband/Makefile b/games/mangband/Makefile
new file mode 100644
index 000000000000..b8e918f1ef30
--- /dev/null
+++ b/games/mangband/Makefile
@@ -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>
diff --git a/games/mangband/distinfo b/games/mangband/distinfo
new file mode 100644
index 000000000000..2e9c44a0def7
--- /dev/null
+++ b/games/mangband/distinfo
@@ -0,0 +1 @@
+MD5 (mangband-054.tar.gz) = 27bd83d4ad82841c278291af757f1baa
diff --git a/games/mangband/files/patch-aa b/games/mangband/files/patch-aa
new file mode 100644
index 000000000000..cb9cc4e10bb0
--- /dev/null
+++ b/games/mangband/files/patch-aa
@@ -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
+
+
+ /*
diff --git a/games/mangband/files/patch-ab b/games/mangband/files/patch-ab
new file mode 100644
index 000000000000..90334c7255a9
--- /dev/null
+++ b/games/mangband/files/patch-ab
@@ -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
+
+
+ ##
diff --git a/games/mangband/files/patch-ac b/games/mangband/files/patch-ac
new file mode 100644
index 000000000000..5665f10922f1
--- /dev/null
+++ b/games/mangband/files/patch-ac
@@ -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 */
diff --git a/games/mangband/files/patch-ad b/games/mangband/files/patch-ad
new file mode 100644
index 000000000000..60fa2cb77dcb
--- /dev/null
+++ b/games/mangband/files/patch-ad
@@ -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 */
+
diff --git a/games/mangband/pkg-comment b/games/mangband/pkg-comment
new file mode 100644
index 000000000000..2b81ac55baba
--- /dev/null
+++ b/games/mangband/pkg-comment
@@ -0,0 +1 @@
+multiplayer rogue-like game with color, X11 support.
diff --git a/games/mangband/pkg-descr b/games/mangband/pkg-descr
new file mode 100644
index 000000000000..451a39327190
--- /dev/null
+++ b/games/mangband/pkg-descr
@@ -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/
diff --git a/games/mangband/pkg-plist b/games/mangband/pkg-plist
new file mode 100644
index 000000000000..bd908a8094f3
--- /dev/null
+++ b/games/mangband/pkg-plist
@@ -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