Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2014 16:31:20 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372365 - in head/japanese/nethack34: . files
Message-ID:  <201411091631.sA9GVKua061294@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Nov  9 16:31:19 2014
New Revision: 372365
URL: https://svnweb.freebsd.org/changeset/ports/372365
QAT: https://qat.redports.org/buildarchive/r372365/

Log:
  japanese/nethack34: Fix segfault on amd64 among other things
  
  PR:		194611
  Submitted by:	WATANABE Kazuhiro

Added:
  head/japanese/nethack34/files/patch-include__xwindow.h   (contents, props changed)
  head/japanese/nethack34/files/patch-win__X11__JNetHack.ad   (contents, props changed)
Modified:
  head/japanese/nethack34/Makefile
  head/japanese/nethack34/files/patch-include-config.h
  head/japanese/nethack34/files/patch-sys-unix-Makefile.top
  head/japanese/nethack34/pkg-plist

Modified: head/japanese/nethack34/Makefile
==============================================================================
--- head/japanese/nethack34/Makefile	Sun Nov  9 16:29:07 2014	(r372364)
+++ head/japanese/nethack34/Makefile	Sun Nov  9 16:31:19 2014	(r372365)
@@ -3,7 +3,7 @@
 
 PORTNAME=	nethack
 PORTVERSION=	3.4.3
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	japanese games
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.//g}-src
@@ -68,6 +68,8 @@ do-configure:
 post-install:
 	(cd ${WRKSRC}/doc && \
 		${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} manpages)
+	${INSTALL_DATA} ${WRKSRC}/win/X11/JNetHack.ad \
+		${STAGEDIR}${PREFIX}/lib/X11/app-defaults/JNetHack
 .if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC} && ${INSTALL_DATA} README.j ChangeLog.j INSTALL.j \

Modified: head/japanese/nethack34/files/patch-include-config.h
==============================================================================
--- head/japanese/nethack34/files/patch-include-config.h	Sun Nov  9 16:29:07 2014	(r372364)
+++ head/japanese/nethack34/files/patch-include-config.h	Sun Nov  9 16:31:19 2014	(r372365)
@@ -1,5 +1,14 @@
---- include/config.h.orig	2014-08-28 15:09:32.000000000 +0900
-+++ include/config.h	2014-08-28 15:10:15.000000000 +0900
+--- include/config.h.orig	2014-10-18 21:39:21.000000000 +0900
++++ include/config.h	2014-10-18 21:48:34.000000000 +0900
+@@ -133,7 +133,7 @@
+  * 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 */
+ # ifdef USE_XPM
+ #  define GRAPHIC_TOMBSTONE	/* Use graphical tombstone (rip.xpm) */
+ #  define X11LARGETILE		/* Large tile for X11 */
 @@ -219,7 +219,7 @@
   * otherwise it will be the current directory.
   */

Added: head/japanese/nethack34/files/patch-include__xwindow.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/japanese/nethack34/files/patch-include__xwindow.h	Sun Nov  9 16:31:19 2014	(r372365)
@@ -0,0 +1,12 @@
+--- include/xwindow.h.orig	2003-12-08 08:39:13.000000000 +0900
++++ include/xwindow.h	2014-10-17 22:46:12.000000000 +0900
+@@ -78,6 +78,9 @@
+ 
+ extern XFontStruct *WindowFontStruct(/* Widget */);
+ extern Font WindowFont(/* Widget */);
++#ifdef XI18N
++extern XFontSet WindowFontSet(/* Widget */);
++#endif
+ 
+ #define XtCWindowResource "WindowResource"
+ #define XtCRows			"Rows"

Modified: head/japanese/nethack34/files/patch-sys-unix-Makefile.top
==============================================================================
--- head/japanese/nethack34/files/patch-sys-unix-Makefile.top	Sun Nov  9 16:29:07 2014	(r372364)
+++ head/japanese/nethack34/files/patch-sys-unix-Makefile.top	Sun Nov  9 16:31:19 2014	(r372365)
@@ -1,5 +1,5 @@
---- sys/unix/Makefile.top.orig	2014-09-01 22:34:32.000000000 +0900
-+++ sys/unix/Makefile.top	2014-09-01 22:36:34.000000000 +0900
+--- sys/unix/Makefile.top.orig	2014-10-22 13:50:35.000000000 +0900
++++ sys/unix/Makefile.top	2014-10-22 13:52:56.000000000 +0900
 @@ -14,7 +14,6 @@
  # MAKE = make
  
@@ -112,7 +112,7 @@
  	touch $(VARDIR)/perm $(VARDIR)/record
  # and a reminder
  	@echo You may also want to install the man pages via the doc Makefile.
-@@ -241,20 +223,15 @@
+@@ -241,20 +223,14 @@
  install: $(GAME) recover $(VARDAT) dungeon spec_levs
  # set up the directories
  # not all mkdirs have -p; those that don't will create a -p directory
@@ -126,7 +126,6 @@
 -	-$(CHOWN) $(GAMEUID) $(GAMEDIR) $(VARDIR) $(VARDIR)/save
 -	$(CHGRP) $(GAMEGRP) $(GAMEDIR) $(VARDIR) $(VARDIR)/save
 -	chmod $(DIRPERM) $(GAMEDIR) $(VARDIR) $(VARDIR)/save
-+	-chmod $(DIRPERM) ${DESTDIR}$(GAMEDIR) ${DESTDIR}$(VARDIR) ${DESTDIR}$(VARDIR)/save
  # set up the game files
  	( $(MAKE) dofiles )
  # set up some additional files

Added: head/japanese/nethack34/files/patch-win__X11__JNetHack.ad
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/japanese/nethack34/files/patch-win__X11__JNetHack.ad	Sun Nov  9 16:31:19 2014	(r372365)
@@ -0,0 +1,61 @@
+--- win/X11/JNetHack.ad.orig	2014-10-18 21:32:38.000000000 +0900
++++ win/X11/JNetHack.ad	2014-10-18 21:36:57.000000000 +0900
+@@ -22,11 +22,10 @@
+ ! the custom format - to enlarge an XPM file, use processing tools
+ ! such as XV or preferably PBMplus.
+ !
+-!JNetHack.tile_file: x11tiles32j
+-JNetHack.tile_file: t32-1024.xpm
+-JNetHack.tile_width: 32
+-JNetHack.tile_height: 32
+-!JNetHack.double_tile_size: True
++!JNetHack.tile_file: x11tiles
++!JNetHack.tile_width: 16
++!JNetHack.tile_height: 16
++!!JNetHack.double_tile_size: True
+ !
+ ! The annotation of pets.
+ JNetHack.pet_mark_bitmap: pet_mark.xbm
+@@ -132,6 +131,42 @@
+ JNetHack*player_selection*quit.accelerators: #override\n\
+ 				<Key>Escape:	set() notify() unset()
+ 
++JNetHack*race_selection*random.borderColor:	blue
++JNetHack*race_selection*random.borderWidth:	2
++JNetHack*race_selection*random.foreground:	blue
++JNetHack*race_selection*random.accelerators: #override\n\
++				<Key>Return:	set() notify() unset()
++JNetHack*race_selection*quit.borderColor:	blue
++JNetHack*race_selection*quit.foreground:		blue
++JNetHack*race_selection*Command.borderColor:	red
++JNetHack*race_selection*Command.foreground:	red
++JNetHack*race_selection*quit.accelerators: #override\n\
++				<Key>Escape:	set() notify() unset()
++
++JNetHack*gender_selection*random.borderColor:	blue
++JNetHack*gender_selection*random.borderWidth:	2
++JNetHack*gender_selection*random.foreground:	blue
++JNetHack*gender_selection*random.accelerators: #override\n\
++				<Key>Return:	set() notify() unset()
++JNetHack*gender_selection*quit.borderColor:	blue
++JNetHack*gender_selection*quit.foreground:	blue
++JNetHack*gender_selection*Command.borderColor:	red
++JNetHack*gender_selection*Command.foreground:	red
++JNetHack*gender_selection*quit.accelerators: #override\n\
++				<Key>Escape:	set() notify() unset()
++
++JNetHack*alignment_selection*random.borderColor:	blue
++JNetHack*alignment_selection*random.borderWidth:	2
++JNetHack*alignment_selection*random.foreground:	blue
++JNetHack*alignment_selection*random.accelerators: #override\n\
++				<Key>Return:	set() notify() unset()
++JNetHack*alignment_selection*quit.borderColor:	blue
++JNetHack*alignment_selection*quit.foreground:	blue
++JNetHack*alignment_selection*Command.borderColor: red
++JNetHack*alignment_selection*Command.foreground:	red
++JNetHack*alignment_selection*quit.accelerators: #override\n\
++				<Key>Escape:	set() notify() unset()
++
+ JNetHack*extended_commands*dismiss.borderColor:	blue
+ JNetHack*extended_commands*dismiss.foreground:	blue
+ JNetHack*extended_commands*help.borderColor:	blue

Modified: head/japanese/nethack34/pkg-plist
==============================================================================
--- head/japanese/nethack34/pkg-plist	Sun Nov  9 16:29:07 2014	(r372364)
+++ head/japanese/nethack34/pkg-plist	Sun Nov  9 16:31:19 2014	(r372365)
@@ -148,6 +148,7 @@ bin/%%HACKNAME%%
 @mode
 @owner
 @group
+lib/X11/app-defaults/JNetHack
 man/man6/dgn_comp.6.gz
 man/man6/dlb.6.gz
 man/man6/lev_comp.6.gz
@@ -158,8 +159,5 @@ man/man6/recover.6.gz
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL.j
 %%PORTDOCS%%%%DOCSDIR%%/README.j
 %%PORTDOCS%%%%DOCSDIR%%/jGuidebook.txt
-@exec chown games:games %D/%%DATADIR%%/save %D/%%DATADIR%% 
-@exec chmod 0775 %D/%%DATADIR%%/save %D/%%DATADIR%% 
-@dirrmtry %%DATADIR%%/save
-@dirrmtry %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dir(games,games,0775) %%DATADIR%%
+@dir(games,games,0775) %%DATADIR%%/save



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411091631.sA9GVKua061294>