mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

377 lines
11 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/blindcoder/nethack/nethack.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. createpatch () {
  23. cd sys/unix/ ; sh setup.sh ; cd ../..
  24. xx=$builddir/config.patch
  25. # Creating common patch
  26. cat >$xx<<-EEE
  27. --- nethack-3.4.0/include/unixconf.h Thu Mar 21 00:42:56 2002
  28. +++ nethack-3.4.0_my/include/unixconf.h Tue Oct 29 10:59:21 2002
  29. @@ -36,7 +36,7 @@
  30. * including Solaris 2+ */
  31. #define NETWORK /* if running on a networked system */
  32. /* e.g. Suns sharing a playground through NFS */
  33. /* #define SUNOS4 */ /* SunOS 4.x */
  34. -/* #define LINUX */ /* Another Unix clone */
  35. +#define LINUX /* Another Unix clone */
  36. /* #define CYGWIN32 */ /* Unix on Win32 -- use with case sensitive defines */
  37. /* #define GENIX */ /* Yet Another Unix Clone */
  38. EEE
  39. # Timed Delay
  40. if [ "$ROCKCFG_PKG_NETHACK_DEL" == "1" ] ; then
  41. cat >>$xx<<-EEE
  42. @@ -132,7 +132,7 @@
  43. * "extra output" method is used, but not all systems provide access to
  44. * a fine-grained timer.
  45. */
  46. -/* #define TIMED_DELAY */ /* usleep() */
  47. +#define TIMED_DELAY /* usleep() */
  48. #endif
  49. /*
  50. EEE
  51. fi
  52. # Adding source files for UIs
  53. if [ "$ROCKCFG_PKG_NETHACK_TTY" == "0" ] ; then
  54. winsrc=""
  55. winobj=""
  56. winlib=""
  57. else
  58. winsrc='$(WINTTYSRC)'
  59. winobj='$(WINTTYOBJ)'
  60. winlib='$(WINTTYLIB)'
  61. fi
  62. if [ "$ROCKCFG_PKG_NETHACK_X11" == "1" ] ; then
  63. winsrc="$winsrc "'$(WINX11SRC)'
  64. winobj="$winobj "'$(WINX11OBJ)'
  65. winlib="$winlib "'$(WINX11LIB)'
  66. fi
  67. if [ "$ROCKCFG_PKG_NETHACK_QT" == "1" ] ; then
  68. winsrc="$winsrc "'$(WINQTSRC)'
  69. winobj="$winobj "'$(WINQTOBJ)'
  70. winlib="$winlib "'$(WINQTLIB)'
  71. fi
  72. if [ "$ROCKCFG_PKG_NETHACK_GNO" == "1" ] ; then
  73. winsrc="$winsrc "'$(WINGNOMESRC)'
  74. winobj="$winobj "'$(WINGNOMEOBJ)'
  75. winlib="$winlib "'$(WINGNOMELIB)'
  76. fi
  77. cat >>$xx<<-EEE
  78. --- nethack-3.4.0/src/Makefile Fri Nov 8 11:20:35 2002
  79. +++ nethack-3.4.0_my/src/Makefile Tue Oct 29 10:58:25 2002
  80. @@ -207,2 +207,2 @@
  81. -WINSRC = \$(WINTTYSRC)
  82. -WINOBJ = \$(WINTTYOBJ)
  83. +WINSRC = $winsrc
  84. +WINOBJ = $winobj tile.o
  85. EEE
  86. # more common things
  87. cat >>$xx<<-EEE
  88. @@ -219,8 +219,8 @@
  89. # WINTTYLIB = -ltermcap
  90. # WINTTYLIB = -lcurses
  91. # WINTTYLIB = -lcurses16
  92. -# WINTTYLIB = -lncurses
  93. -WINTTYLIB = -ltermlib
  94. +WINTTYLIB = -lncurses
  95. +#WINTTYLIB = -ltermlib
  96. #
  97. # libraries for X11
  98. # If USE_XPM is defined in config.h, you will also need -lXpm here.
  99. EEE
  100. # Use libXpm?
  101. if [ "$ROCKCFG_PKG_NETHACK_XPM" == "1" ] ; then
  102. cat >>$xx<<-EEE
  103. @@ -225,5 +225,5 @@
  104. # libraries for X11
  105. # If USE_XPM is defined in config.h, you will also need -lXpm here.
  106. -WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
  107. +WINX11LIB = -L/usr/X11R6/lib -lXaw -lXmu -lXext -lXt -lX11 -lXpm
  108. # WINX11LIB = -lXaw -lXmu -lXt -lX11
  109. # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
  110. @@ -248,1 +248,1 @@
  111. -WINLIB = \$(WINTTYLIB)
  112. +WINLIB = $winlib
  113. EEE
  114. fi
  115. # Tiles for Qt
  116. if [ "$ROCKCFG_PKG_NETHACK_QT" == "1" ] ; then
  117. cat >>$xx<<-EEE
  118. --- ./Makefile 2003-06-08 13:13:32.000000000 +0200
  119. +++ ./Makefile 2003-06-08 21:24:48.000000000 +0200
  120. @@ -40,7 +40,7 @@ VARDIR = \$(GAMEDIR)
  121. SHELLDIR = \$(PREFIX)/games
  122. # per discussion in Install.X11 and Install.Qt
  123. -VARDATND =
  124. +VARDATND = x11tiles rip.xpm nhsplash.xpm pet_mark.xbm
  125. # VARDATND = x11tiles pet_mark.xbm
  126. # VARDATND = x11tiles pet_mark.xbm rip.xpm
  127. # for Atari/Gem
  128. EEE
  129. fi
  130. cat >>$xx<<-EEE
  131. --- nethack-3.4.0/include/config.h Fri Nov 8 11:20:35 2002
  132. +++ nethack-3.4.0/include/config.h Tue Oct 29 10:58:25 2002
  133. EEE
  134. #more User Interfaces
  135. if [ "$ROCKCFG_PKG_NETHACK_TTY" == "0" -o \
  136. "$ROCKCFG_PKG_NETHACK_X11" == "1" -o \
  137. "$ROCKCFG_PKG_NETHACK_QT" == "1" -o \
  138. "$ROCKCFG_PKG_NETHACK_GNO" == "1" ] ; then
  139. cat >>$xx<<-EEE
  140. @@ -43,7 +43,7 @@
  141. * Some combinations make no sense. See the installation document.
  142. */
  143. EEE
  144. if [ "$ROCKCFG_PKG_NETHACK_TTY" == "0" ] ; then
  145. cat >>$xx<<-EEE
  146. -#define TTY_GRAPHICS /* good old tty based graphics */
  147. +/* #define TTY_GRAPHICS */ /* good old tty based graphics */
  148. EEE
  149. else
  150. cat >>$xx<<-EEE
  151. #define TTY_GRAPHICS /* good old tty based graphics */
  152. EEE
  153. fi
  154. if [ "$ROCKCFG_PKG_NETHACK_X11" == "1" ] ; then
  155. cat >>$xx<<-EEE
  156. -/* #define X11_GRAPHICS */ /* X11 interface */
  157. +#define X11_GRAPHICS /* X11 interface */
  158. EEE
  159. else
  160. cat >>$xx<<-EEE
  161. /* #define X11_GRAPHICS */ /* X11 interface */
  162. EEE
  163. fi
  164. if [ "$ROCKCFG_PKG_NETHACK_QT" == "1" ] ; then
  165. cat >>$xx<<-EEE
  166. -/* #define QT_GRAPHICS */ /* Qt interface */
  167. +#define QT_GRAPHICS /* Qt interface */
  168. EEE
  169. else
  170. cat >>$xx<<-EEE
  171. /* #define QT_GRAPHICS */ /* Qt interface */
  172. EEE
  173. fi
  174. if [ "$ROCKCFG_PKG_NETHACK_GNO" == "1" ] ; then
  175. cat >>$xx<<-EEE
  176. -/* #define GNOME_GRAPHICS */ /* Gnome interface */
  177. +#define GNOME_GRAPHICS /* Gnome interface */
  178. EEE
  179. else
  180. cat >>$xx<<-EEE
  181. /* #define GNOME_GRAPHICS */ /* Gnome interface */
  182. EEE
  183. fi
  184. cat >>$xx<<-EEE
  185. /* #define MSWIN_GRAPHICS */ /* Windows NT, CE, Graphics */
  186. EEE
  187. fi
  188. # Wizard name, logfile, news
  189. if [ "$ROCKCFG_PKG_NETHACK_WIZ" != "wizard" ] ; then
  190. cat >>$xx<<-EEE
  191. @@ -139,8 +139,8 @@
  192. #ifndef WIZARD /* allow for compile-time or Makefile changes */
  193. # ifndef KR1ED
  194. -# define WIZARD "wizard" /* the person allowed to use the -D option */
  195. +# define WIZARD "$ROCKCFG_PKG_NETHACK_WIZ" /* the person allowed to use the -D option */
  196. # else
  197. # define WIZARD
  198. -# define WIZARD_NAME "wizard"
  199. +# define WIZARD_NAME "$ROCKCFG_PKG_NETHACK_WIZ"
  200. # endif
  201. #endif
  202. EEE
  203. fi
  204. if [ "$ROCKCFG_PKG_NETHACK_LOG" != "logfile" ] ; then
  205. cat >>$xx<<-EEE
  206. @@ -151,1 +151,1 @@
  207. -#define LOGFILE "logfile" /* larger file for debugging purposes */
  208. +#define LOGFILE "$ROCKCFG_PKG_NETHACK_LOG" /* larger file for debugging purposes */
  209. EEE
  210. fi
  211. if [ "$ROCKCFG_PKG_NETHACK_NEW" != "news" ] ; then
  212. cat >>$xx<<-EEE
  213. @@ -152,1 +152,1 @@
  214. -#define NEWS "news" /* the file containing the latest hack news */
  215. +#define NEWS "$ROCKCFG_PKG_NETHACK_NEW" /* the file containing the latest hack news */
  216. EEE
  217. fi
  218. # Compression
  219. if [ "$ROCKCFG_PKG_NETHACK_USE_COM" == "1" ] ; then
  220. if [ "$ROCKCFG_PKG_NETHACK_COM" != "/usr/bin/compress" ] ; then
  221. cat >>$xx<<-EEE
  222. @@ -170,1 +170,1 @@
  223. -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
  224. +#define COMPRESS "$ROCKCFG_PKG_NETHACK_COM" /* Lempel-Ziv compression */
  225. EEE
  226. fi
  227. if [ "$ROCKCFG_PKG_NETHACK_EXT" != ".Z" ] ; then
  228. cat >>$xx<<-EEE
  229. @@ -171,1 +171,1 @@
  230. -#define COMPRESS_EXTENSION ".Z" /* compress's extension */
  231. +#define COMPRESS_EXTENSION "$ROCKCFG_PKG_NETHACK_COM_EXT" /* compress's extension */
  232. EEE
  233. fi
  234. else
  235. cat >>$xx<<-EEE
  236. @@ -164,8 +164,8 @@
  237. #ifdef UNIX
  238. /* path and file name extension for compression program */
  239. -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
  240. -#define COMPRESS_EXTENSION ".Z" /* compress's extension */
  241. +/* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */
  242. +/* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */
  243. /* An example of one alternative you might want to use: */
  244. /* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */
  245. /* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */
  246. #endif
  247. EEE
  248. fi
  249. #Hackdir
  250. if [ "$ROCKCFG_PKG_NETHACK_HACKDIR" != "/usr/games/lib/nethackdir" ] ; then
  251. cat >>$xx<<-EEE
  252. @@ -203,3 +203,3 @@
  253. # ifndef HACKDIR
  254. -# define HACKDIR "/usr/games/lib/nethackdir"
  255. +# define HACKDIR "$ROCKCFG_PKG_NETHACK_HACKDIR"
  256. # endif
  257. EEE
  258. fi
  259. #Max number of players
  260. if [ $ROCKCFG_PKG_NETHACK_MAX -gt 0 ] ; then
  261. cat >>$xx<<-EEE
  262. @@ -215,7 +215,7 @@
  263. -/* #define SECURE */ /* do setuid(getuid()) after chdir() */
  264. +#define SECURE /* do setuid(getuid()) after chdir() */
  265. /*
  266. * If it is desirable to limit the number of people that can play Hack
  267. - * simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS.
  268. - * #define MAX_NR_OF_PLAYERS 6
  269. - */
  270. + * simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS. */
  271. + #define MAX_NR_OF_PLAYERS $ROCKCFG_PKG_NETHACK_MAX
  272. + /* */
  273. EEE
  274. fi
  275. # dungeon features
  276. if [ "$ROCKCFG_PKG_NETHACK_SINKS" == "0" ] ; then
  277. cat >>$xx<<-EEE
  278. @@ -317,1 +317,1 @@
  279. -#define SINKS /* Kitchen sinks - Janet Walz */
  280. +/*#define SINKS */ /* Kitchen sinks - Janet Walz */
  281. EEE
  282. fi
  283. if [ "$ROCKCFG_PKG_NETHACK_MAZES" == "0" ] ; then
  284. cat >>$xx<<-EEE
  285. @@ -319,1 +319,1 @@
  286. -#define WALLIFIED_MAZE /* Fancy mazes - Jean-Christophe Collet */
  287. +/* #define WALLIFIED_MAZE */ /* Fancy mazes - Jean-Christophe Collet */
  288. EEE
  289. fi
  290. if [ "$ROCKCFG_PKG_NETHACK_REINCARNATION" == "0" ] ; then
  291. cat >>$xx<<-EEE
  292. @@ -320,1 +320,1 @@
  293. -#define REINCARNATION /* Special Rogue-like levels */
  294. +/* #define REINCARNATION */ /* Special Rogue-like levels */
  295. EEE
  296. fi
  297. if [ "$ROCKCFG_PKG_NETHACK_KOPS" == "0" ] ; then
  298. cat >>$xx<<-EEE
  299. @@ -322,1 +322,1 @@
  300. -#define KOPS /* Keystone Kops by Scott R. Turner */
  301. +/* #define KOPS */ /* Keystone Kops by Scott R. Turner */
  302. EEE
  303. fi
  304. if [ "$ROCKCFG_PKG_NETHACK_SEDUCE" == "0" ] ; then
  305. cat >>$xx<<-EEE
  306. @@ -323,1 +323,1 @@
  307. -#define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */
  308. + /* #define SEDUCE */ /* Succubi/incubi seduction, by KAA, suggested by IM */
  309. EEE
  310. fi
  311. if [ "$ROCKCFG_PKG_NETHACK_STEED" == "0" ] ; then
  312. cat >>$xx<<-EEE
  313. @@ -324,1 +324,1 @@
  314. -#define STEED /* Riding steeds */
  315. +/* #define STEED */ /* Riding steeds */
  316. EEE
  317. fi
  318. if [ "$ROCKCFG_PKG_NETHACK_TOURIST" == "0" ] ; then
  319. cat >>$xx<<-EEE
  320. @@ -325,1 +325,1 @@
  321. -#define TOURIST /* Tourist players with cameras and Hawaiian shirts */
  322. +/* #define TOURIST */ /* Tourist players with cameras and Hawaiian shirts */
  323. EEE
  324. fi
  325. if [ "$ROCKCFG_PKG_NETHACK_ELBERETH" == "0" ] ; then
  326. cat >>$xx<<-EEE
  327. @@ -327,1 +327,1 @@
  328. -#define ELBERETH /* Engraving the E-word repels monsters */
  329. +/* #define ELBERETH */ /* Engraving the E-word repels monsters */
  330. EEE
  331. fi
  332. if [ "$ROCKCFG_PKG_NETHACK_EXP" == "0" ] ; then
  333. cat >>$xx<<-EEE
  334. @@ -338,1 +338,1 @@
  335. -#define EXP_ON_BOTL /* Show experience on bottom line */
  336. +/* #define EXP_ON_BOTL */ /* Show experience on bottom line */
  337. EEE
  338. fi
  339. if [ "$ROCKCFG_PKG_NETHACK_SCORE" == "1" ] ; then
  340. cat >>$xx<<-EEE
  341. @@ -339,1 +339,1 @@
  342. -/* #define SCORE_ON_BOTL */ /* added by Gary Erickson (erickson@ucivax) */
  343. +#define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */
  344. EEE
  345. fi
  346. if [ "$ROCKCFG_PKG_NETHACK_GOLD" == "1" ] ; then
  347. cat >>$xx<<-EEE
  348. @@ -349,1 +349,1 @@
  349. -/*#define GOLDOBJ */ /* Gold is kept on obj chains - Helge Hafting */
  350. +#define GOLDOBJ /* Gold is kept on obj chains - Helge Hafting */
  351. EEE
  352. fi
  353. }
  354. runconf='0'
  355. prepatch="createpatch"
  356. patchfiles="$patchfiles $builddir/config.patch"