9236d32085
From Rhialto in PR 45010.
75 lines
2.7 KiB
Text
75 lines
2.7 KiB
Text
$NetBSD: patch-aa,v 1.10 2011/06/01 11:20:29 wiz Exp $
|
|
|
|
Make configurable.
|
|
|
|
--- include/config.h.orig 2003-12-07 23:39:13.000000000 +0000
|
|
+++ include/config.h
|
|
@@ -42,6 +42,16 @@
|
|
* Define all of those you want supported in your binary.
|
|
* Some combinations make no sense. See the installation document.
|
|
*/
|
|
+#if defined(GTYPE_TTY)
|
|
+# define DEFAULT_WINDOW_SYS "tty"
|
|
+#elif defined(GTYPE_X11)
|
|
+# define X11_GRAPHICS
|
|
+# define DEFAULT_WINDOW_SYS "x11"
|
|
+#elif defined(GTYPE_QT)
|
|
+# define QT_GRAPHICS
|
|
+# define DEFAULT_WINDOW_SYS "Qt"
|
|
+#endif
|
|
+
|
|
#define TTY_GRAPHICS /* good old tty based graphics */
|
|
/* #define X11_GRAPHICS */ /* X11 interface */
|
|
/* #define QT_GRAPHICS */ /* Qt interface */
|
|
@@ -86,7 +96,7 @@
|
|
# define DEFAULT_WC_TILED_MAP /* Default to tiles if users doesn't say wc_ascii_map */
|
|
# define USER_SOUNDS /* Use sounds */
|
|
# ifndef __APPLE__
|
|
-# define USER_SOUNDS_REGEX
|
|
+/*# define USER_SOUNDS_REGEX */
|
|
# endif
|
|
# define USE_XPM /* Use XPM format for images (required) */
|
|
# define GRAPHIC_TOMBSTONE /* Use graphical tombstone (rip.ppm) */
|
|
@@ -126,7 +136,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
|
|
@@ -169,11 +179,11 @@
|
|
|
|
#ifdef UNIX
|
|
/* path and file name extension for compression program */
|
|
-#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
|
|
-#define COMPRESS_EXTENSION ".Z" /* compress's extension */
|
|
+/* #define COMPRESS "/usr/bin/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 "@GZIP_PROGRAM@" /* FSF gzip compression */
|
|
+#define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
|
|
#endif
|
|
|
|
#ifndef COMPRESS
|
|
@@ -204,7 +214,7 @@
|
|
* otherwise it will be the current directory.
|
|
*/
|
|
# ifndef HACKDIR
|
|
-# define HACKDIR "/usr/games/lib/nethackdir"
|
|
+# define HACKDIR "@PREFIX@/share/nethackdir340"
|
|
# endif
|
|
|
|
/*
|
|
@@ -300,7 +310,7 @@ typedef unsigned char uchar;
|
|
* functions that have been macroized.
|
|
*/
|
|
|
|
-/* #define VISION_TABLES */ /* use vision tables generated at compile time */
|
|
+#define VISION_TABLES /* use vision tables generated at compile time */
|
|
#ifndef VISION_TABLES
|
|
# ifndef NO_MACRO_CPATH
|
|
# define MACRO_CPATH /* use clear_path macros instead of functions */
|