aboutsummaryrefslogtreecommitdiffstats
path: root/games/nethack-qt/files
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1997-04-06 10:45:30 +0800
committerandreas <andreas@FreeBSD.org>1997-04-06 10:45:30 +0800
commit534ee640da2c2ef3f0074a0d66a529fc9ab4f77a (patch)
tree28b0d40850008b9ec89ce175c38a7ab6cc9d3632 /games/nethack-qt/files
parentd34334bf46cba98d24add37ec8e05a443c1cfa78 (diff)
downloadfreebsd-ports-gnome-534ee640da2c2ef3f0074a0d66a529fc9ab4f77a.tar.gz
freebsd-ports-gnome-534ee640da2c2ef3f0074a0d66a529fc9ab4f77a.tar.zst
freebsd-ports-gnome-534ee640da2c2ef3f0074a0d66a529fc9ab4f77a.zip
NetHack with Qt interface. Version 0.9 (for NetHack 3.2.2)
by Warwick Allison warwick@cs.uq.edu.au. The Qt interface has these extra features: Tiles (graphics) in the inventory and other item-menu windows. The player cursor changes colour as your relative hit-points drop. The message window greys-out older message. The item menus allow a count (click to left of icon - hidden feature). Icons for the major attributes and player states. Menus (only needed by newbie dungeon fodder). Variable size fonts and tiles. More space for the map as messages and status are side-by-side. You rarely need to put the mouse in a pop-up to interact with it. Macros - hidden feature - F1=multi-rest F2=multi-search F3=try-it It is much easier to code, so new feature-requests are more easily done. Sound support See: http://www.uq.edu.au/~cswallis/nhqt/
Diffstat (limited to 'games/nethack-qt/files')
-rw-r--r--games/nethack-qt/files/include-unixconf.h.diff11
-rw-r--r--games/nethack-qt/files/patch-aa127
-rw-r--r--games/nethack-qt/files/sample.nethackrc88
-rw-r--r--games/nethack-qt/files/src-Makefile.diff39
-rw-r--r--games/nethack-qt/files/src-sounds.c.diff14
5 files changed, 279 insertions, 0 deletions
diff --git a/games/nethack-qt/files/include-unixconf.h.diff b/games/nethack-qt/files/include-unixconf.h.diff
new file mode 100644
index 000000000000..53150d818111
--- /dev/null
+++ b/games/nethack-qt/files/include-unixconf.h.diff
@@ -0,0 +1,11 @@
+--- include/unixconf.h.orig Thu Mar 20 23:17:16 1997
++++ include/unixconf.h Thu Mar 20 23:17:29 1997
+@@ -42,7 +42,7 @@
+ /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain
+ * job control (note that AIX is SYSV otherwise)
+ * Also define this for AIX 3.2 */
+-#define TEXTCOLOR /* Use System V r3.2 terminfo color support */
++/* #define TEXTCOLOR /* Use System V r3.2 terminfo color support */
+ /* and/or ANSI color support on termcap systems */
+ /* and/or X11 color */
+ #define POSIX_JOB_CONTROL /* use System V / POSIX job control
diff --git a/games/nethack-qt/files/patch-aa b/games/nethack-qt/files/patch-aa
new file mode 100644
index 000000000000..4f8040adbbc0
--- /dev/null
+++ b/games/nethack-qt/files/patch-aa
@@ -0,0 +1,127 @@
+--- ./include/system.h.org Mon Mar 25 17:18:32 1996
++++ ./include/system.h Sun Apr 21 18:10:01 1996
+@@ -78,7 +78,7 @@
+ # if !defined(SUNOS4) || defined(RANDOM)
+ E void FDECL(srandom, (unsigned int));
+ # else
+-# ifndef bsdi
++# if !defined(bsdi) && !defined(__FreeBSD__)
+ E int FDECL(srandom, (unsigned int));
+ # endif
+ # endif
+--- ./include/unixconf.h.org Mon Mar 25 12:47:47 1996
++++ ./include/unixconf.h Sun Apr 21 18:10:02 1996
+@@ -31,7 +31,7 @@
+
+ /* define any of the following that are appropriate */
+ /* #define SVR4 /* use in addition to SYSV for System V Release 4 */
+-#define NETWORK /* if running on a networked system */
++/* #define NETWORK /* if running on a networked system */
+ /* e.g. Suns sharing a playground through NFS */
+ #define SUNOS4 /* SunOS 4.x */
+ /* #define LINUX /* Another Unix clone */
+@@ -42,12 +42,12 @@
+ /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain
+ * job control (note that AIX is SYSV otherwise)
+ * Also define this for AIX 3.2 */
+-/* #define TEXTCOLOR /* Use System V r3.2 terminfo color support */
++#define TEXTCOLOR /* Use System V r3.2 terminfo color support */
+ /* and/or ANSI color support on termcap systems */
+ /* and/or X11 color */
+-/* #define POSIX_JOB_CONTROL /* use System V / POSIX job control
++#define POSIX_JOB_CONTROL /* use System V / POSIX job control
+ * (e.g., VSUSP) */
+-/* #define POSIX_TYPES /* use POSIX types for system calls and termios */
++#define POSIX_TYPES /* use POSIX types for system calls and termios */
+ /* define for many recent OS releases, including
+ * those with specific defines (since types are
+ * changing toward the standard from earlier chaos).
+@@ -125,7 +125,7 @@
+ * A stat system call is done on the mailbox every MAILCKFREQ moves.
+ */
+
+-#define MAIL /* Deliver mail during the game */
++/* #define MAIL /* Deliver mail during the game */
+
+ /* The Andrew Message System does mail a little differently from normal
+ * UNIX. Mail is deposited in the user's own directory in ~/Mailbox
+--- ./include/config.h.org Thu Feb 29 11:00:26 1996
++++ ./include/config.h Sun Apr 21 18:10:06 1996
+@@ -248,7 +248,7 @@
+ * would allow:
+ * xpmtoppm <x11tiles.xpm | pnmscale 1.25 | ppmquant 90 >x11tiles_big.xpm
+ */
+-/* # define USE_XPM /* Disable if you do not have the XPM library */
++# define USE_XPM /* Disable if you do not have the XPM library */
+ # ifdef USE_XPM
+ # define GRAPHIC_TOMBSTONE /* Use graphical tombstone (rip.xpm) */
+ # endif
+@@ -288,12 +288,12 @@
+
+ #ifdef UNIX
+ /* path and file name extension for compression program */
+-# define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */
+-# define COMPRESS_EXTENSION ".Z" /* compress's extension */
++/* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */
++/* # define COMPRESS_EXTENSION ".Z" /* compress's extension */
+
+ /* An example of one alternative you might want to use: */
+-/* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */
+-/* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
++# define COMPRESS "/usr/bin/gzip" /* FSF gzip compression */
++# define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
+ #endif
+ #ifndef COMPRESS
+ # define INTERNAL_COMP /* control use of NetHack's compression routines */
+@@ -323,7 +323,7 @@
+ * otherwise it will be the current directory.
+ */
+ # ifndef HACKDIR
+-# define HACKDIR "/usr/games/lib/nethackdir" /* nethack directory */
++# define HACKDIR "/usr/local/lib/nethackdir" /* nethack directory */
+ # endif
+
+ /*
+--- ./sys/unix/Makefile.doc.org Wed Apr 3 21:17:35 1996
++++ ./sys/unix/Makefile.doc Sun Apr 21 18:10:03 1996
+@@ -31,7 +31,7 @@
+
+
+ GAME = nethack
+-MANDIR = /usr/man/man6
++MANDIR = ${PREFIX}/man/man6
+ MANEXT = 6
+
+ # manual installation for most BSD-style systems
+--- ./sys/unix/Makefile.top.org Mon Mar 25 17:22:00 1996
++++ ./sys/unix/Makefile.top Sun Apr 21 18:28:09 1996
+@@ -16,14 +16,14 @@
+ # make NetHack
+ GAME = nethack
+ GAMEUID = games
+-GAMEGRP = bin
++GAMEGRP = games
+
+ # Permissions - some places use setgid instead of setuid, for instance
+ # See also the option "SECURE" in include/config.h
+-GAMEPERM = 04755
+-FILEPERM = 0644
++GAMEPERM = 02755
++FILEPERM = 0664
+ EXEPERM = 0755
+-DIRPERM = 0755
++DIRPERM = 0775
+
+ # GAMEDIR also appears in config.h as "HACKDIR".
+ #
+@@ -32,8 +32,8 @@
+ # therefore there should not be anything in GAMEDIR that you want to keep
+ # (if there is, you'll have to do the installation by hand or modify the
+ # instructions)
+-GAMEDIR = /usr/games/lib/$(GAME)dir
+-SHELLDIR = /usr/games
++GAMEDIR = ${PREFIX}/lib/$(GAME)dir
++SHELLDIR = ${PREFIX}/bin
+
+ # per discussion in Install.X11
+ VARDATND =
diff --git a/games/nethack-qt/files/sample.nethackrc b/games/nethack-qt/files/sample.nethackrc
new file mode 100644
index 000000000000..33dbe47118fc
--- /dev/null
+++ b/games/nethack-qt/files/sample.nethackrc
@@ -0,0 +1,88 @@
+OPTIONS=!silent
+OPTIONS=!time
+OPTIONS=catname:Ghisteslwchlohm
+OPTIONS=color
+OPTIONS=dogname:Dhairrhuwyth
+OPTIONS=hilite_pet
+OPTIONS=lit_corridor
+OPTIONS=menustyle:partial
+OPTIONS=msghistory:200
+OPTIONS=news
+OPTIONS=noautopickup
+OPTIONS=rest_on_space
+OPTIONS=safe_pet
+OPTIONS=showexp
+OPTIONS=showscore
+OPTIONS=sortpack
+OPTIONS=time
+OPTIONS=tombstone
+OPTIONS=toptenwin
+OPTIONS=verbose
+SOUNDDIR=/usr/local/lib/nethackdir
+SOUND=MESG "needs food, badly" "weak.au" 100
+SOUND=MESG "feel weak" "weak.au" 100
+SOUND=MESG "bear trap closes" "beartrap.au" 100
+SOUND=MESG "board beneath you squeaks" "squeek.au" 100
+SOUND=MESG "board beneath .....* squeaks" "squeek.au" 60
+SOUND=MESG "a distant squeak" "squeek.au" 25
+SOUND=MESG "mind releases itself from" "memories.au" 100
+SOUND=MESG "on itself, you forget" "memories.au" 100
+SOUND=MESG "Who was that Maud person" "memories.au" 100
+SOUND=MESG "Thinking of Maud you forget" "memories.au" 100
+SOUND=MESG "you forget everything" "memories.au" 100
+SOUND=MESG "smell marsh gas" "frogs.au" 100
+SOUND=MESG "must have been exercising" "tada.au" 100
+SOUND=MESG "must have been very obs" "tada.au" 100
+SOUND=MESG "must have been working on" "tada.au" 100
+SOUND=MESG "must be leading a healthy" "tada.au" 100
+SOUND=MESG "Keystone Kops appear!" "kops.au" 100
+SOUND=MESG "Keystone Kops are after you" "kops.au" 100
+SOUND=MESG "interesting topological ex" "mock.au" 100
+SOUND=MESG "Interesting\.\.\." "mock.au" 100
+SOUND=MESG "deathly sick\." "ohdear.au" 80
+SOUND=MESG "feel feverish" "ohdear.au" 80
+SOUND=MESG "brain is eaten" "minderode.au" 80
+SOUND=MESG "thought thou couldst kill" "yendor.au" 120
+SOUND=MESG "begin praying to" "latin_short.au" 70
+SOUND=MESG "sense of peace" "latin.au" 20
+SOUND=MESG "have a.* forbidding feeling" "latin.au" 20
+#SOUND=MESG "door opens\." "dooropen2.au" 100
+#SOUND=MESG "You drop " "drop.au" 10
+#SOUND=MESG "You destroy " "destroy2.au" 30
+#SOUND=MESG "You kill " "destroy2.au" 20
+#SOUND=MESG "is killed" "destroy2.au" 10
+#SOUND=MESG "You miss " "miss2.au" 20
+#SOUND=MESG "fiery blade burns" "hit2.au" 30
+#SOUND=MESG "ice-cold blade freezes" "hit2.au" 30
+#SOUND=MESG "You hit " "hit2.au" 20
+#SOUND=MESG "The spell hits" "hit2.au" 20
+SOUND=MESG "breathes" "breath.au" 100
+SOUND=MESG "a door open\." "dooropen2.au" 100
+SOUND=MESG "Klunk" "clunk.au" 100
+SOUND=MESG "guard on patrol" "coin.au" 50
+SOUND=MESG "quarterback calling" "coin.au" 50
+SOUND=MESG "someone counting" "coin.au" 50
+SOUND=MESG "Ebenezer Scrooge" "coin.au" 50
+SOUND=MESG "someone cursing shoplifters" "gong.au" 50
+SOUND=MESG "chime of a cash register" "gong.au" 50
+SOUND=MESG "Neiman and Marcus" "gong.au" 50
+SOUND=MESG "You die" "death.au" 100
+SOUND=MESG "sad feeling" "death.au" 50
+SOUND=MESG "door closes\." "doorclos.au" 100
+SOUND=MESG "cosmic" "hallu.au" 100
+SOUND=MESG "explosion" "landmine.au" 100
+SOUND=MESG "KABOOM" "landmine.au" 100
+#SOUND=MESG "KAABLAM" "landmine.au" 100
+SOUND=MESG "trigger.* a land *mine" "landmine.au" 100
+SOUND=MESG "elcome to experi" "level_up.au" 100
+SOUND=MESG "memorize" "memor.au" 100
+#SOUND=MESG "Ouch" "ouch2.au" 100
+#SOUND=MESG "XXXfall through\.\.\." "trapdoor.au" 100
+SOUND=MESG "vomit" "vomit.au" 100
+SOUND=MESG "whistling" "whistle2.au" 100
+SOUND=MESG "crashes open" "thump.au" 100
+SOUND=MESG "You break open the lock" "thump.au" 100
+#SOUND=MESG "THUD" "thump.au" 40
+#SOUND=MESG "WHAMM" "thump.au" 50
+SOUND=MESG "welcome to NetHack" "awaits.au" 100
+SOUND=MESG "strange vibration under" "forcefld.au" 100
diff --git a/games/nethack-qt/files/src-Makefile.diff b/games/nethack-qt/files/src-Makefile.diff
new file mode 100644
index 000000000000..f43c85bacc75
--- /dev/null
+++ b/games/nethack-qt/files/src-Makefile.diff
@@ -0,0 +1,39 @@
+--- src/Makefile.orig Sat Apr 5 19:43:25 1997
++++ src/Makefile Sat Apr 5 19:51:26 1997
+@@ -124,11 +124,11 @@
+ # flags for debugging:
+ # CFLAGS = -g -I../include
+
+-CFLAGS = -O2 -I../include
+-LFLAGS = -L/usr/X11/lib -L$(QTDIR)/lib
++CFLAGS = -pipe -O -I../include
++LFLAGS = -L/usr/X11R6/lib -L$(QTDIR)/lib
+
+ # For USER_SOUNDS support, include -I/usr/X11/include
+-CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include -I/usr/X11/include
++CXXFLAGS = $(CFLAGS) -I. -I/usr/X11R6/include -I/usr/X11R6/include/X11/qt
+
+ # Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired
+ # combination of windowing systems. Also set windowing systems in config.h.
+@@ -213,7 +213,7 @@
+ # IRIX 4.0.x needs -lsun if NIS (YP) is being used for passwd file lookup
+ # LIBS = -lsun
+ #
+-LIBS =
++LIBS = -lgnuregex
+
+ # make NetHack
+ GAME = nethack
+@@ -536,6 +536,12 @@
+
+ # DO NOT DELETE THIS LINE
+
++qaudio-p.moc: ../win/Qt/qaudio-p.h
++ moc ../win/Qt/qaudio-p.h > qaudio-p.moc
++qaudio-p.o: ../win/Qt/qaudio-p.cc qaudio-p.moc
++ $(CXX) $(CXXFLAGS) -c ../win/Qt/qaudio-p.cc
++qaudio.o: ../win/Qt/qaudio.cc
++ $(CXX) $(CXXFLAGS) -c ../win/Qt/qaudio.cc
+ qt_win.o: ../win/Qt/qt_win.cc ../include/hack.h ../include/qt_win.h ../include/cluster.h qt_win.moc
+ $(CXX) $(CXXFLAGS) -c ../win/Qt/qt_win.cc
+ qviewp.o: ../win/Qt/qviewp.cc ../include/qviewp.h qviewp.moc
diff --git a/games/nethack-qt/files/src-sounds.c.diff b/games/nethack-qt/files/src-sounds.c.diff
new file mode 100644
index 000000000000..de1fdf62b02f
--- /dev/null
+++ b/games/nethack-qt/files/src-sounds.c.diff
@@ -0,0 +1,14 @@
+--- src/sounds.c.orig Thu Mar 20 22:48:36 1997
++++ src/sounds.c Thu Mar 20 22:50:00 1997
+@@ -5,7 +5,11 @@
+ #include "hack.h"
+ #include "edog.h"
+ #ifdef USER_SOUNDS
++#if defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__)
++#include <gnuregex.h>
++#else
+ #include <regex.h>
++#endif
+ #endif
+
+ #ifdef OVLB