summaryrefslogtreecommitdiff
path: root/games/44bsd-hunt/files
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-03-25 06:37:20 +0000
committerWill Andrews <will@FreeBSD.org>2001-03-25 06:37:20 +0000
commit0d96c0775c3304f2e876b396c70759740d8389cf (patch)
treee48f730c2b9d901247db6ab02fe7553d5afa6db9 /games/44bsd-hunt/files
parentAdd kappdock 0.43, a dock-like applet for KDE2. (diff)
Add 44bsd-hunt 1.0, a rogue-like multiplayer game.
PR: 25221 Submitted by: bdluevel@heitec.net
Notes
Notes: svn path=/head/; revision=40338
Diffstat (limited to 'games/44bsd-hunt/files')
-rw-r--r--games/44bsd-hunt/files/patch-Makefile69
-rw-r--r--games/44bsd-hunt/files/patch-faketalk.c11
2 files changed, 80 insertions, 0 deletions
diff --git a/games/44bsd-hunt/files/patch-Makefile b/games/44bsd-hunt/files/patch-Makefile
new file mode 100644
index 000000000000..e201c7ac5799
--- /dev/null
+++ b/games/44bsd-hunt/files/patch-Makefile
@@ -0,0 +1,69 @@
+--- Makefile.orig Fri Jun 18 03:26:23 1993
++++ Makefile Mon Jun 26 03:21:22 2000
+@@ -17,8 +17,9 @@
+
+ #
+ # Installation destinations
++# (with FreeBSD patches, unused except LIBDIR for pathname.o)
+ BINDIR= /usr/games
+-LIBDIR= /usr/libexec
++LIBDIR= $(PREFIX)/bin
+ MANDIR= /usr/contrib/man/cat6
+
+ #
+@@ -33,8 +34,8 @@
+ # BOOTS Include boots (which makes you immune to slime)
+ # OTTO Reserved for CGL automatic player
+ #
+-GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS \
+- -DOTTO
++# (FreeBSD patches deleted -DOTTO because otto.c doesn't compile)
++GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS
+
+ #
+ # System parameter flags are:
+@@ -66,6 +67,11 @@
+ DEFS_SGI= -DINTERNET -DLOG -DBSD_RELEASE=43 -DTERMINFO -DSIGNAL_TYPE=void
+ DEFS_NEXT= $(DEFS_43) -bsd -traditional -Dconst= -DSIGNAL_TYPE=int
+ DEFS_OSF1= -DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=void -D_BSD
++#
++# FreeBSD patches add this target and use it for DEFS
++# /etc/terminfo is there, and the faketalk feature is switched
++# off (deprecated)
++DEFS_FREEBSD= $(DEFS_BSD44) -DTERMINFO -DTALK_DISABLE
+
+ #
+ # The following flags are used for system specific compilation arguments.
+@@ -80,8 +86,10 @@
+ #
+ # Generic definitions
+ #
+-DEFS= $(GAME_PARAM) $(DEFS_BSD44)
+-CFLAGS= -O2 $(SYSCFLAGS) $(DEFS)
++DEFS= $(GAME_PARAM) $(DEFS_FREEBSD)
++# FreeBSD patches change the CFLAGS definition to include the
++# user's definition, instead of overwriting it
++CFLAGS+= $(SYSCFLAGS) $(DEFS)
+
+ #
+ # Normal targets
+@@ -129,14 +137,13 @@
+
+ #
+ # System installation
++# (modified by FreeBSD patches)
+ #
+ install:
+- install -s -o bin -g bin -m 555 huntd ${LIBDIR}/huntd
+- install -s -o bin -g bin -m 555 hunt ${BINDIR}/hunt
+- nroff -man hunt.6 > ${MANDIR}/hunt.0
+- nroff -man huntd.6 > ${MANDIR}/huntd.0
+- chown bin.bin ${MANDIR}/hunt.0 ${MANDIR}/huntd.0
+- chmod 444 ${MANDIR}/hunt.0 ${MANDIR}/huntd.0
++ $(BSD_INSTALL_PROGRAM) hunt $(PREFIX)/bin/hunt
++ $(BSD_INSTALL_MAN) hunt.6 $(PREFIX)/man/man6/hunt.6
++ $(BSD_INSTALL_PROGRAM) huntd $(PREFIX)/bin/huntd
++ $(BSD_INSTALL_MAN) huntd.6 $(PREFIX)/man/man6/huntd.6
+
+ #
+ # Object file dependencies
diff --git a/games/44bsd-hunt/files/patch-faketalk.c b/games/44bsd-hunt/files/patch-faketalk.c
new file mode 100644
index 000000000000..b0db3d06e9fa
--- /dev/null
+++ b/games/44bsd-hunt/files/patch-faketalk.c
@@ -0,0 +1,11 @@
+--- faketalk.c.orig Sat May 22 09:32:43 1993
++++ faketalk.c Mon Jun 26 03:16:18 2000
+@@ -10,7 +10,7 @@
+
+ #include "bsd.h"
+
+-#if defined(TALK_43) || defined(TALK_42)
++#if !defined(TALK_DISABLE) && (defined(TALK_43) || defined(TALK_42))
+
+ # include <stdio.h>
+ # include <string.h>