1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../nethack/nethack.conf
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
17 cd sys/unix/; sh setup.sh; cd ../..
18 xx=$builddir/config.patch
19 # Creating common patch
21 --- nethack-3.4.0/include/unixconf.h Thu Mar 21 00:42:56 2002
22 +++ nethack-3.4.0_my/include/unixconf.h Tue Oct 29 10:59:21 2002
24 * including Solaris 2+ */
25 #define NETWORK /* if running on a networked system */
26 /* e.g. Suns sharing a playground through NFS */
27 /* #define SUNOS4 */ /* SunOS 4.x */
28 -/* #define LINUX */ /* Another Unix clone */
29 +#define LINUX /* Another Unix clone */
30 /* #define CYGWIN32 */ /* Unix on Win32 -- use with case sensitive defines */
31 /* #define GENIX */ /* Yet Another Unix Clone */
35 if [ "$SDECFG_PKG_NETHACK_DEL" == "1" ]; then
38 * "extra output" method is used, but not all systems provide access to
39 * a fine-grained timer.
41 -/* #define TIMED_DELAY */ /* usleep() */
42 +#define TIMED_DELAY /* usleep() */
48 # Adding source files for UIs
49 if [ "$SDECFG_PKG_NETHACK_TTY" == "0" ]; then
58 if [ "$SDECFG_PKG_NETHACK_X11" == "1" ]; then
59 winsrc="$winsrc "'$(WINX11SRC)'
60 winobj="$winobj "'$(WINX11OBJ)'
61 winlib="$winlib "'$(WINX11LIB)'
63 if [ "$SDECFG_PKG_NETHACK_QT" == "1" ]; then
64 winsrc="$winsrc "'$(WINQTSRC)'
65 winobj="$winobj "'$(WINQTOBJ)'
66 winlib="$winlib "'$(WINQTLIB)'
68 if [ "$SDECFG_PKG_NETHACK_GNO" == "1" ]; then
69 winsrc="$winsrc "'$(WINGNOMESRC)'
70 winobj="$winobj "'$(WINGNOMEOBJ)'
71 winlib="$winlib "'$(WINGNOMELIB)'
74 --- nethack-3.4.0/src/Makefile Fri Nov 8 11:20:35 2002
75 +++ nethack-3.4.0_my/src/Makefile Tue Oct 29 10:58:25 2002
77 -WINSRC = \$(WINTTYSRC)
78 -WINOBJ = \$(WINTTYOBJ)
80 +WINOBJ = $winobj tile.o
86 # WINTTYLIB = -ltermcap
87 # WINTTYLIB = -lcurses
88 # WINTTYLIB = -lcurses16
89 -# WINTTYLIB = -lncurses
90 -WINTTYLIB = -ltermlib
91 +WINTTYLIB = -lncurses
92 +#WINTTYLIB = -ltermlib
95 # If USE_XPM is defined in config.h, you will also need -lXpm here.
98 if [ "$SDECFG_PKG_NETHACK_XPM" == "1" ]; then
102 # If USE_XPM is defined in config.h, you will also need -lXpm here.
103 -WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
104 +WINX11LIB = -L/usr/X11R6/lib -lXaw -lXmu -lXext -lXt -lX11 -lXpm
105 # WINX11LIB = -lXaw -lXmu -lXt -lX11
106 # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
108 -WINLIB = \$(WINTTYLIB)
113 if [ "$SDECFG_PKG_NETHACK_QT" == "1" ]; then
115 --- ./Makefile 2003-06-08 13:13:32.000000000 +0200
116 +++ ./Makefile 2003-06-08 21:24:48.000000000 +0200
117 @@ -40,7 +40,7 @@ VARDIR = \$(GAMEDIR)
118 SHELLDIR = \$(PREFIX)/games
120 # per discussion in Install.X11 and Install.Qt
122 +VARDATND = x11tiles rip.xpm nhsplash.xpm pet_mark.xbm
123 # VARDATND = x11tiles pet_mark.xbm
124 # VARDATND = x11tiles pet_mark.xbm rip.xpm
129 --- nethack-3.4.0/include/config.h Fri Nov 8 11:20:35 2002
130 +++ nethack-3.4.0/include/config.h Tue Oct 29 10:58:25 2002
132 #more User Interfaces
133 if [ "$SDECFG_PKG_NETHACK_TTY" == "0" -o \
134 "$SDECFG_PKG_NETHACK_X11" == "1" -o \
135 "$SDECFG_PKG_NETHACK_QT" == "1" -o \
136 "$SDECFG_PKG_NETHACK_GNO" == "1" ]; then
139 * Some combinations make no sense. See the installation document.
142 if [ "$SDECFG_PKG_NETHACK_TTY" == "0" ]; then
144 -#define TTY_GRAPHICS /* good old tty based graphics */
145 +/* #define TTY_GRAPHICS */ /* good old tty based graphics */
149 #define TTY_GRAPHICS /* good old tty based graphics */
152 if [ "$SDECFG_PKG_NETHACK_X11" == "1" ]; then
154 -/* #define X11_GRAPHICS */ /* X11 interface */
155 +#define X11_GRAPHICS /* X11 interface */
159 /* #define X11_GRAPHICS */ /* X11 interface */
162 if [ "$SDECFG_PKG_NETHACK_QT" == "1" ]; then
164 -/* #define QT_GRAPHICS */ /* Qt interface */
165 +#define QT_GRAPHICS /* Qt interface */
169 /* #define QT_GRAPHICS */ /* Qt interface */
172 if [ "$SDECFG_PKG_NETHACK_GNO" == "1" ]; then
174 -/* #define GNOME_GRAPHICS */ /* Gnome interface */
175 +#define GNOME_GRAPHICS /* Gnome interface */
179 /* #define GNOME_GRAPHICS */ /* Gnome interface */
183 /* #define MSWIN_GRAPHICS */ /* Windows NT, CE, Graphics */
186 # Wizard name, logfile, news
187 if [ "$SDECFG_PKG_NETHACK_WIZ" != "wizard" ]; then
190 #ifndef WIZARD /* allow for compile-time or Makefile changes */
192 -# define WIZARD "wizard" /* the person allowed to use the -D option */
193 +# define WIZARD "$SDECFG_PKG_NETHACK_WIZ" /* the person allowed to use the -D option */
196 -# define WIZARD_NAME "wizard"
197 +# define WIZARD_NAME "$SDECFG_PKG_NETHACK_WIZ"
202 if [ "$SDECFG_PKG_NETHACK_LOG" != "logfile" ]; then
205 -#define LOGFILE "logfile" /* larger file for debugging purposes */
206 +#define LOGFILE "$SDECFG_PKG_NETHACK_LOG" /* larger file for debugging purposes */
209 if [ "$SDECFG_PKG_NETHACK_NEW" != "news" ]; then
211 -#define NEWS "news" /* the file containing the latest hack news */
212 +#define NEWS "$SDECFG_PKG_NETHACK_NEW" /* the file containing the latest hack news */
216 if [ "$SDECFG_PKG_NETHACK_USE_COM" == "1" ]; then
217 if [ "$SDECFG_PKG_NETHACK_COM" != "/usr/bin/compress" ]; then
220 -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
221 +#define COMPRESS "$SDECFG_PKG_NETHACK_COM" /* Lempel-Ziv compression */
224 if [ "$SDECFG_PKG_NETHACK_EXT" != ".Z" ]; then
227 -#define COMPRESS_EXTENSION ".Z" /* compress's extension */
228 +#define COMPRESS_EXTENSION "$SDECFG_PKG_NETHACK_COM_EXT" /* compress's extension */
235 /* path and file name extension for compression program */
236 -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
237 -#define COMPRESS_EXTENSION ".Z" /* compress's extension */
238 +/* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */
239 +/* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */
240 /* An example of one alternative you might want to use: */
241 /* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */
242 /* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */
247 if [ "$SDECFG_PKG_NETHACK_HACKDIR" != "/usr/games/lib/nethackdir" ]; then
251 -# define HACKDIR "/usr/games/lib/nethackdir"
252 +# define HACKDIR "$SDECFG_PKG_NETHACK_HACKDIR"
257 #Max number of players
258 if [ $SDECFG_PKG_NETHACK_MAX -gt 0 ]; then
261 -/* #define SECURE */ /* do setuid(getuid()) after chdir() */
262 +#define SECURE /* do setuid(getuid()) after chdir() */
265 * If it is desirable to limit the number of people that can play Hack
266 - * simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS.
267 - * #define MAX_NR_OF_PLAYERS 6
269 + * simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS. */
270 + #define MAX_NR_OF_PLAYERS $SDECFG_PKG_NETHACK_MAX
275 if [ "$SDECFG_PKG_NETHACK_SINKS" == "0" ]; then
278 -#define SINKS /* Kitchen sinks - Janet Walz */
279 +/*#define SINKS */ /* Kitchen sinks - Janet Walz */
283 if [ "$SDECFG_PKG_NETHACK_MAZES" == "0" ]; then
286 -#define WALLIFIED_MAZE /* Fancy mazes - Jean-Christophe Collet */
287 +/* #define WALLIFIED_MAZE */ /* Fancy mazes - Jean-Christophe Collet */
291 if [ "$SDECFG_PKG_NETHACK_REINCARNATION" == "0" ]; then
294 -#define REINCARNATION /* Special Rogue-like levels */
295 +/* #define REINCARNATION */ /* Special Rogue-like levels */
299 if [ "$SDECFG_PKG_NETHACK_KOPS" == "0" ]; then
302 -#define KOPS /* Keystone Kops by Scott R. Turner */
303 +/* #define KOPS */ /* Keystone Kops by Scott R. Turner */
307 if [ "$SDECFG_PKG_NETHACK_SEDUCE" == "0" ]; then
310 -#define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */
311 + /* #define SEDUCE */ /* Succubi/incubi seduction, by KAA, suggested by IM */
315 if [ "$SDECFG_PKG_NETHACK_STEED" == "0" ]; then
318 -#define STEED /* Riding steeds */
319 +/* #define STEED */ /* Riding steeds */
323 if [ "$SDECFG_PKG_NETHACK_TOURIST" == "0" ]; then
326 -#define TOURIST /* Tourist players with cameras and Hawaiian shirts */
327 +/* #define TOURIST */ /* Tourist players with cameras and Hawaiian shirts */
331 if [ "$SDECFG_PKG_NETHACK_ELBERETH" == "0" ]; then
334 -#define ELBERETH /* Engraving the E-word repels monsters */
335 +/* #define ELBERETH */ /* Engraving the E-word repels monsters */
339 if [ "$SDECFG_PKG_NETHACK_EXP" == "0" ]; then
342 -#define EXP_ON_BOTL /* Show experience on bottom line */
343 +/* #define EXP_ON_BOTL */ /* Show experience on bottom line */
347 if [ "$SDECFG_PKG_NETHACK_SCORE" == "1" ]; then
350 -/* #define SCORE_ON_BOTL */ /* added by Gary Erickson (erickson@ucivax) */
351 +#define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */
355 if [ "$SDECFG_PKG_NETHACK_GOLD" == "1" ]; then
358 -/*#define GOLDOBJ */ /* Gold is kept on obj chains - Helge Hafting */
359 +#define GOLDOBJ /* Gold is kept on obj chains - Helge Hafting */
366 hook_add prepatch 5 "createpatch"
367 patchfiles="$patchfiles $builddir/config.patch"