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.

376 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 - 2003 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. -#define NEWS "news" /* the file containing the latest hack news */
  214. +#define NEWS "$ROCKCFG_PKG_NETHACK_NEW" /* the file containing the latest hack news */
  215. EEE
  216. fi
  217. # Compression
  218. if [ "$ROCKCFG_PKG_NETHACK_USE_COM" == "1" ] ; then
  219. if [ "$ROCKCFG_PKG_NETHACK_COM" != "/usr/bin/compress" ] ; then
  220. cat >>$xx<<-EEE
  221. @@ -170,1 +170,1 @@
  222. -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
  223. +#define COMPRESS "$ROCKCFG_PKG_NETHACK_COM" /* Lempel-Ziv compression */
  224. EEE
  225. fi
  226. if [ "$ROCKCFG_PKG_NETHACK_EXT" != ".Z" ] ; then
  227. cat >>$xx<<-EEE
  228. @@ -171,1 +171,1 @@
  229. -#define COMPRESS_EXTENSION ".Z" /* compress's extension */
  230. +#define COMPRESS_EXTENSION "$ROCKCFG_PKG_NETHACK_COM_EXT" /* compress's extension */
  231. EEE
  232. fi
  233. else
  234. cat >>$xx<<-EEE
  235. @@ -164,8 +164,8 @@
  236. #ifdef UNIX
  237. /* path and file name extension for compression program */
  238. -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
  239. -#define COMPRESS_EXTENSION ".Z" /* compress's extension */
  240. +/* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */
  241. +/* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */
  242. /* An example of one alternative you might want to use: */
  243. /* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */
  244. /* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */
  245. #endif
  246. EEE
  247. fi
  248. #Hackdir
  249. if [ "$ROCKCFG_PKG_NETHACK_HACKDIR" != "/usr/games/lib/nethackdir" ] ; then
  250. cat >>$xx<<-EEE
  251. @@ -203,3 +203,3 @@
  252. # else
  253. -# define HACKDIR "/usr/games/lib/nethackdir"
  254. +# define HACKDIR "$ROCKCFG_PKG_NETHACK_HACKDIR"
  255. # endif
  256. EEE
  257. fi
  258. #Max number of players
  259. if [ $ROCKCFG_PKG_NETHACK_MAX -gt 0 ] ; then
  260. cat >>$xx<<-EEE
  261. @@ -215,7 +215,7 @@
  262. -/* #define SECURE */ /* do setuid(getuid()) after chdir() */
  263. +#define SECURE /* do setuid(getuid()) after chdir() */
  264. /*
  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
  268. - */
  269. + * simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS. */
  270. + #define MAX_NR_OF_PLAYERS $ROCKCFG_PKG_NETHACK_MAX
  271. + /* */
  272. EEE
  273. fi
  274. # dungeon features
  275. if [ "$ROCKCFG_PKG_NETHACK_SINKS" == "0" ] ; then
  276. cat >>$xx<<-EEE
  277. @@ -317,1 +317,1 @@
  278. -#define SINKS /* Kitchen sinks - Janet Walz */
  279. +/*#define SINKS */ /* Kitchen sinks - Janet Walz */
  280. EEE
  281. fi
  282. if [ "$ROCKCFG_PKG_NETHACK_MAZES" == "0" ] ; then
  283. cat >>$xx<<-EEE
  284. @@ -319,1 +319,1 @@
  285. -#define WALLIFIED_MAZE /* Fancy mazes - Jean-Christophe Collet */
  286. +/* #define WALLIFIED_MAZE */ /* Fancy mazes - Jean-Christophe Collet */
  287. EEE
  288. fi
  289. if [ "$ROCKCFG_PKG_NETHACK_REINCARNATION" == "0" ] ; then
  290. cat >>$xx<<-EEE
  291. @@ -320,1 +320,1 @@
  292. -#define REINCARNATION /* Special Rogue-like levels */
  293. +/* #define REINCARNATION */ /* Special Rogue-like levels */
  294. EEE
  295. fi
  296. if [ "$ROCKCFG_PKG_NETHACK_KOPS" == "0" ] ; then
  297. cat >>$xx<<-EEE
  298. @@ -322,1 +322,1 @@
  299. -#define KOPS /* Keystone Kops by Scott R. Turner */
  300. +/* #define KOPS */ /* Keystone Kops by Scott R. Turner */
  301. EEE
  302. fi
  303. if [ "$ROCKCFG_PKG_NETHACK_SEDUCE" == "0" ] ; then
  304. cat >>$xx<<-EEE
  305. @@ -323,1 +323,1 @@
  306. -#define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */
  307. + /* #define SEDUCE */ /* Succubi/incubi seduction, by KAA, suggested by IM */
  308. EEE
  309. fi
  310. if [ "$ROCKCFG_PKG_NETHACK_STEED" == "0" ] ; then
  311. cat >>$xx<<-EEE
  312. @@ -324,1 +324,1 @@
  313. -#define STEED /* Riding steeds */
  314. +/* #define STEED */ /* Riding steeds */
  315. EEE
  316. fi
  317. if [ "$ROCKCFG_PKG_NETHACK_TOURIST" == "0" ] ; then
  318. cat >>$xx<<-EEE
  319. @@ -325,1 +325,1 @@
  320. -#define TOURIST /* Tourist players with cameras and Hawaiian shirts */
  321. +/* #define TOURIST */ /* Tourist players with cameras and Hawaiian shirts */
  322. EEE
  323. fi
  324. if [ "$ROCKCFG_PKG_NETHACK_ELBERETH" == "0" ] ; then
  325. cat >>$xx<<-EEE
  326. @@ -327,1 +327,1 @@
  327. -#define ELBERETH /* Engraving the E-word repels monsters */
  328. +/* #define ELBERETH */ /* Engraving the E-word repels monsters */
  329. EEE
  330. fi
  331. if [ "$ROCKCFG_PKG_NETHACK_EXP" == "0" ] ; then
  332. cat >>$xx<<-EEE
  333. @@ -338,1 +338,1 @@
  334. -#define EXP_ON_BOTL /* Show experience on bottom line */
  335. +/* #define EXP_ON_BOTL */ /* Show experience on bottom line */
  336. EEE
  337. fi
  338. if [ "$ROCKCFG_PKG_NETHACK_SCORE" == "1" ] ; then
  339. cat >>$xx<<-EEE
  340. @@ -339,1 +339,1 @@
  341. -/* #define SCORE_ON_BOTL */ /* added by Gary Erickson (erickson@ucivax) */
  342. +#define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */
  343. EEE
  344. fi
  345. if [ "$ROCKCFG_PKG_NETHACK_GOLD" == "1" ] ; then
  346. cat >>$xx<<-EEE
  347. @@ -349,1 +349,1 @@
  348. -/*#define GOLDOBJ */ /* Gold is kept on obj chains - Helge Hafting */
  349. +#define GOLDOBJ /* Gold is kept on obj chains - Helge Hafting */
  350. EEE
  351. fi
  352. }
  353. runconf='0'
  354. prepatch="createpatch"
  355. patchfiles="$patchfiles $builddir/config.patch"