OpenSDE Packages Database (without history before r20070)
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.

369 lines
11 KiB

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