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.

370 lines
11 KiB

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