aboutsummaryrefslogtreecommitdiffstats
path: root/games/nethack
diff options
context:
space:
mode:
authorflathill <flathill@FreeBSD.org>1999-03-21 17:13:43 +0800
committerflathill <flathill@FreeBSD.org>1999-03-21 17:13:43 +0800
commit18a2b55c5960035d74ad1523eea71db06ec0a62c (patch)
tree15ca41f7936d5927f83757d982db8a39f0d766c1 /games/nethack
parentbed01ce691571b27b04abfcb529de8ac1c6e3cf6 (diff)
downloadfreebsd-ports-gnome-18a2b55c5960035d74ad1523eea71db06ec0a62c.tar.gz
freebsd-ports-gnome-18a2b55c5960035d74ad1523eea71db06ec0a62c.tar.zst
freebsd-ports-gnome-18a2b55c5960035d74ad1523eea71db06ec0a62c.zip
Fix 'missing rip.xpm' error.
patch-aa contains patch for some files. So separate to some patch-a? PR: ports/10680 Submitted by: h-nokubi@yyy.or.jp
Diffstat (limited to 'games/nethack')
-rw-r--r--games/nethack/files/patch-ab49
-rw-r--r--games/nethack/files/patch-ac47
-rw-r--r--games/nethack/files/patch-ad12
-rw-r--r--games/nethack/files/patch-ae37
-rw-r--r--games/nethack/files/patch-af12
-rw-r--r--games/nethack/files/patch-ag40
6 files changed, 191 insertions, 6 deletions
diff --git a/games/nethack/files/patch-ab b/games/nethack/files/patch-ab
index 4282a67b7ca9..a22424c84079 100644
--- a/games/nethack/files/patch-ab
+++ b/games/nethack/files/patch-ab
@@ -1,12 +1,49 @@
-diff -ruN ./sys/unix/Makefile.src ../nethack-3.2.2/sys/unix//Makefile.src
---- ./sys/unix/Makefile.src Sat Nov 21 01:23:57 1998
-+++ ../nethack-3.2.2/sys/unix/Makefile.src Sat Nov 21 01:15:41 1998
-@@ -204,7 +204,7 @@
+--- sys/unix/Makefile.src.orig Wed Dec 11 05:20:09 1996
++++ sys/unix/Makefile.src Sun Mar 21 17:50:08 1999
+@@ -124,8 +124,8 @@
+ # flags for debugging:
+ # CFLAGS = -g -I../include
+
+-CFLAGS = -O -I../include
+-LFLAGS =
++CFLAGS += -O -I../include -I${X11BASE}/include
++LFLAGS = -L${X11BASE}/lib
+
+
+ # Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired
+@@ -146,8 +146,8 @@
+ winmisc.o winstat.o wintext.o winval.o tile.o
+ #
+ #
+-WINSRC = $(WINTTYSRC)
+-WINOBJ = $(WINTTYOBJ)
++WINSRC = $(WINTTYSRC) $(WINX11SRC)
++WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
+
+ # on some systems the termcap library is in -ltermcap or -lcurses
+ # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
+@@ -167,13 +167,13 @@
+ #
+ # libraries for X11
+ # If USE_XPM is defined in config.h, you will also need -lXpm here.
+-WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
++WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
+ # WINX11LIB = -lXaw -lXmu -lXt -lX11
+ # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
+ # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
#
- # LIBS = -lxpg4
+ #
+-WINLIB = $(WINTTYLIB)
++WINLIB = $(WINTTYLIB) $(WINX11LIB)
+
+ # any other strange libraries your system needs (for Sysunix only -- the more
+ # specialized targets should already be right)
+@@ -197,7 +197,7 @@
+ # IRIX 4.0.x needs -lsun if NIS (YP) is being used for passwd file lookup
+ # LIBS = -lsun
#
-LIBS =
+LIBS = -lSM -lICE
# make NetHack
- #JP by issei(96/5/27)
+ GAME = nethack
diff --git a/games/nethack/files/patch-ac b/games/nethack/files/patch-ac
new file mode 100644
index 000000000000..ee05125afe6c
--- /dev/null
+++ b/games/nethack/files/patch-ac
@@ -0,0 +1,47 @@
+diff -ruN ./include/config.h ../nethack-3.2.2/include/config.h
+--- ./include/config.h Wed Dec 11 05:20:07 1996
++++ ../nethack-3.2.2/include/config.h Sun Mar 21 17:25:02 1999
+@@ -211,7 +211,7 @@
+ * Some combinations make no sense. See the installation document.
+ */
+ #define TTY_GRAPHICS /* good old tty based graphics */
+-/* #define X11_GRAPHICS /* X11 interface */
++#define X11_GRAPHICS /* X11 interface */
+
+ /*
+ * Define the default window system. This should be one that is compiled
+@@ -256,7 +256,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
+@@ -296,12 +296,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 */
+@@ -331,7 +331,7 @@
+ * otherwise it will be the current directory.
+ */
+ # ifndef HACKDIR
+-# define HACKDIR "/usr/games/lib/nethackdir" /* nethack directory */
++# define HACKDIR "/usr/local/share/nethack" /* nethack directory */
+ # endif
+
+ /*
diff --git a/games/nethack/files/patch-ad b/games/nethack/files/patch-ad
new file mode 100644
index 000000000000..a14729508f45
--- /dev/null
+++ b/games/nethack/files/patch-ad
@@ -0,0 +1,12 @@
+diff -ruN ./include/system.h ../nethack-3.2.2/include/system.h
+--- ./include/system.h Mon Nov 4 23:01:25 1996
++++ ../nethack-3.2.2/include/system.h Sun Mar 21 17:25:02 1999
+@@ -80,7 +80,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
diff --git a/games/nethack/files/patch-ae b/games/nethack/files/patch-ae
new file mode 100644
index 000000000000..b5c24ee2719d
--- /dev/null
+++ b/games/nethack/files/patch-ae
@@ -0,0 +1,37 @@
+diff -ruN ./include/unixconf.h ../nethack-3.2.2/include/unixconf.h
+--- ./include/unixconf.h Wed Dec 11 05:20:08 1996
++++ ../nethack-3.2.2/include/unixconf.h Sun Mar 21 17:25:02 1999
+@@ -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
diff --git a/games/nethack/files/patch-af b/games/nethack/files/patch-af
new file mode 100644
index 000000000000..75c84c235c88
--- /dev/null
+++ b/games/nethack/files/patch-af
@@ -0,0 +1,12 @@
+diff -ruN ./sys/unix/Makefile.doc ../nethack-3.2.2/sys/unix/Makefile.doc
+--- ./sys/unix/Makefile.doc Wed Dec 11 05:20:08 1996
++++ ../nethack-3.2.2/sys/unix/Makefile.doc Sun Mar 21 17:25:02 1999
+@@ -31,7 +31,7 @@
+
+
+ GAME = nethack
+-MANDIR = /usr/man/man6
++MANDIR = ${PREFIX}/man/man6
+ MANEXT = 6
+
+ # manual installation for most BSD-style systems
diff --git a/games/nethack/files/patch-ag b/games/nethack/files/patch-ag
new file mode 100644
index 000000000000..6fbe422824f3
--- /dev/null
+++ b/games/nethack/files/patch-ag
@@ -0,0 +1,40 @@
+diff -ruN ./sys/unix/Makefile.top ../nethack-3.2.2/sys/unix/Makefile.top
+--- ./sys/unix/Makefile.top Wed Dec 11 05:20:10 1996
++++ ../nethack-3.2.2/sys/unix/Makefile.top Sun Mar 21 17:29:27 1999
+@@ -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,13 +32,13 @@
+ # 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}/share/$(GAME)
++SHELLDIR = ${PREFIX}/bin
+
+ # per discussion in Install.X11
+-VARDATND =
++# VARDATND =
+ # VARDATND = x11tiles pet_mark.xbm
+-# VARDATND = x11tiles pet_mark.xbm rip.xpm
++VARDATND = x11tiles pet_mark.xbm rip.xpm
+
+ VARDATD = data oracles options quest.dat rumors
+ VARDAT = $(VARDATD) $(VARDATND)