Subject: pkg/21753: games/nethack-x11 does not enable tiled mode, does not install nethack font
To: None <gnats-bugs@gnats.netbsd.org>
From: Sergey Svishchev <svs+pr@grep.ru>
List: netbsd-bugs
Date: 06/01/2003 20:27:20
>Number:         21753
>Category:       pkg
>Synopsis:       games/nethack-x11 does not enable tiled mode, does not install nethack font
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 01 16:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6L
>Organization:
>Environment:
	
	
>Description:
	
>How-To-Repeat:
	
>Fix:
	
--- games/nethack-x11/MESSAGE	2002/09/24 12:30:01	1.2
+++ games/nethack-x11/MESSAGE	2003/06/01 16:12:34
@@ -1,6 +1,16 @@
 ===========================================================================
 $NetBSD: MESSAGE,v 1.2 2002/09/24 12:30:01 wiz Exp $
 
-You can run the X11 NetHack by typing "nethack x11"
+You can run the X11 NetHack by typing "nethack x11".
+
+A custom NetHack font was installed.  You must add
+${PREFIX}/lib/X11/fonts/misc to fontpath and set 
+
+NetHack*map*font: nh10 
+
+in ${PREFIX}/lib/X11/app-defaults/NetHack to use it.
+Tiled mode is enabled by:
+
+NetHack.tile_file: x11tiles
 
 ===========================================================================
--- games/nethack-x11/Makefile	2003/03/01 21:12:52	1.20
+++ games/nethack-x11/Makefile	2003/06/01 16:12:34
@@ -20,7 +20,10 @@
 ALLFILES+=		${DISTFILES}
 
 post-install:
-	@${INSTALL_DATA} ${WRKSRC}/dat/x11tiles ${PREFIX}/share/${NETHACK_DIR}
+	${INSTALL_DATA} ${WRKSRC}/dat/x11tiles ${PREFIX}/share/${NETHACK_DIR}
+	${INSTALL_DATA} ${WRKSRC}/win/X11/NetHack.ad ${PREFIX}/lib/X11/app-defaults/NetHack
+	${INSTALL_DATA} ${WRKSRC}/win/X11/nh10.bdf ${PREFIX}/lib/X11/fonts/misc
+	(cd ${X11PREFIX}/lib/X11/fonts/misc && mkfontdir)
 
 .include "../../graphics/xpm/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
--- games/nethack-x11/PLIST	2002/03/25 20:32:29	1.2
+++ games/nethack-x11/PLIST	2003/06/01 16:12:34
@@ -1,3 +1,5 @@
 @comment $NetBSD: PLIST,v 1.2 2002/03/25 20:32:29 pooka Exp $
 bin/nethack-x11
+lib/X11/app-defaults/NetHack
+lib/X11/fonts/misc/nh10.bdf
 share/nethackdir340/x11tiles
--- games/nethack-x11/distinfo	2003/03/01 21:12:52	1.9
+++ games/nethack-x11/distinfo	2003/06/01 16:12:34
@@ -2,7 +2,7 @@
 
 SHA1 (nethack-341.tgz) = 91eec5d20fb0fe676f92e1149e3b0360470aef77
 Size (nethack-341.tgz) = 3492419 bytes
-SHA1 (patch-aa) = 599c00a5499d8e5eb2910e6953ab5d5c14e22080
+SHA1 (patch-aa) = 0b4cd81ccd0c93badb4f37304c8ed128851534d2
 SHA1 (patch-ab) = fa217d8540a550d669a9037c5861ac4d685941ee
 SHA1 (patch-ac) = a2a23324ec9859962064c9f520cad27439442a77
 SHA1 (patch-ae) = b6d0cca1e3d781a2a1f1d4b244e944eaedfec716
--- games/nethack-x11/patches/patch-aa	2003/03/01 21:12:52	1.6
+++ games/nethack-x11/patches/patch-aa	2003/06/01 16:12:35
@@ -22,12 +22,13 @@
  #endif
  
  #ifdef X11_GRAPHICS
-@@ -124,7 +124,7 @@
+@@ -124,7 +124,8 @@
   * 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 */
++# define USE_TILES
  # ifdef USE_XPM
  #  define GRAPHIC_TOMBSTONE	/* Use graphical tombstone (rip.xpm) */
  # endif
>Release-Note:
>Audit-Trail:
>Unformatted: