ports/64468: Update port: games/xshogi to 1.3

KATO Tsuguru tkato at prontomail.com
Fri Mar 19 16:40:16 UTC 2004


>Number:         64468
>Category:       ports
>Synopsis:       Update port: games/xshogi to 1.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 19 08:40:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 1.3

Remove file:
distinfo
files/patch-aa
files/patch-ab

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/xshogi/Makefile games/xshogi/Makefile
--- /usr/ports/games/xshogi/Makefile	Fri Feb  6 10:11:31 2004
+++ games/xshogi/Makefile	Fri Mar 19 11:56:56 2004
@@ -6,30 +6,30 @@
 #
 
 PORTNAME=	xshogi
-PORTVERSION=	1.2.3
+PORTVERSION=	${GNUSHOGI_PORTVERSION}
 CATEGORIES=	games
-MASTER_SITES=	${MASTER_SITE_GNU}
-MASTER_SITE_SUBDIR=	xshogi
-DISTNAME=	xshogi-1.2p03
+MASTER_SITES=	${GNUSHOGI_MASTER_SITES}
+MASTER_SITE_SUBDIR=	${GNUSHOGI_MASTER_SITE_SUBDIR}
+DISTNAME=	${GNUSHOGI_DISTNAME}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	The Japanese chess-like game for X Window System
 
-RUN_DEPENDS=	${LOCALBASE}/libexec/gnushogix:${PORTSDIR}/games/gnushogi
+RUN_DEPENDS=	gnushogi:${PORTSDIR}/games/gnushogi
+
+BUILD_WRKSRC=	${WRKSRC}/xshogi
 
 USE_X_PREFIX=	yes
-MAKEFILE=	Makefile.custom
+GNU_CONFIGURE=	yes
+
 MAN6=		xshogi.6
 PLIST_FILES=	bin/xshogi
 
-post-configure:
-	@${ECHO_CMD} "DISTDIR=${WRKDIR}" >> ${WRKSRC}/${MAKEFILE}
-	@${ECHO_CMD} "LOCALBASE=${LOCALBASE}" >> ${WRKSRC}/${MAKEFILE}
-
-post-install:
-	@${STRIP_CMD} ${PREFIX}/bin/xshogi
-	@${CHMOD} 755 ${PREFIX}/bin/xshogi
-	@${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/bin/xshogi
-	${INSTALL_MAN} ${WRKSRC}/xshogi.man ${PREFIX}/man/man6/xshogi.6
+.include "${.CURDIR}/../../games/gnushogi/Makefile.common"
+.include <bsd.port.pre.mk>
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/xshogi/xshogi ${PREFIX}/bin/xshogi
+	${INSTALL_MAN} ${WRKSRC}/doc/xshogi.6 ${MANPREFIX}/man/man6/xshogi.6
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/games/xshogi/distinfo games/xshogi/distinfo
--- /usr/ports/games/xshogi/distinfo	Thu Jan 29 20:25:35 2004
+++ games/xshogi/distinfo	Thu Jan  1 09:00:00 1970
@@ -1,2 +0,0 @@
-MD5 (xshogi-1.2p03.tar.gz) = 3dd09a7528e588782cfd5c6dbada2ea1
-SIZE (xshogi-1.2p03.tar.gz) = 129660
diff -urN /usr/ports/games/xshogi/files/patch-aa games/xshogi/files/patch-aa
--- /usr/ports/games/xshogi/files/patch-aa	Sun Jan 10 19:05:01 1999
+++ games/xshogi/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,50 +0,0 @@
---- Makefile.custom.orig	Wed May 24 09:12:05 1995
-+++ Makefile.custom	Sun Sep 27 12:04:31 1998
-@@ -28,18 +28,18 @@
- VERS = 1.2p03
- 
- # Installation directory
--prefix=/usr/local
-+prefix=$(PREFIX)
- #prefix=/public/projects/shogi
- 
- # Change these to something less transitory, like /usr/games, and then
- # compile. 
- # Where the binaries live (especially gnushogix).
--BINDIR= $(prefix)/games
-+BINDIR= $(prefix)/bin
- #BINDIR=/public/projects/shogi/bin
- 
- 
- # Distribution directory
--DISTDIR=/public/projects/shogi
-+#DISTDIR=/public/projects/shogi
- 
- # Compress program
- COMPRESS = gzip
-@@ -73,8 +73,12 @@
- #CCOPTIONS= -g 
- #LDOPTIONS= -lXaw -lXmu -lXt -lXext -lX11
- # This is for cc on SunOS with debug
--CCOPTIONS= -g -I/usr/include
--LDOPTIONS= -L/usr/lib -lXaw -lXmu -lXt -lXext -lX11
-+CCOPTIONS= -g ${CFLAGS} -fno-strength-reduce \
-+	-I/usr/include -I$(PREFIX)/include 
-+LDOPTIONS= -L/usr/lib -L$(PREFIX)/lib -lXaw -lXmu -lXt -lXext -lX11
-+.if ${PORTOBJFORMAT} == "elf"
-+LDOPTIONS+=-Wl,-rpath,$(X11BASE)/lib
-+.endif
- 
- # Options for xshogi
- # Use -DSENDTIME with at least gnushogix 1.2 patchlevel 3
-@@ -88,8 +92,8 @@
- # The option -DISS compiles xshogi for supporting the Internet Shogi Server. 
- OPT = -DHAS_GETTIMEOFDAY -DSENDTIME -DISS -DTOP_PART_BITMAPS # -DBOTH_BITMAPS -DWESTERN_BITMAPS
- 
--FIRST_PROGRAM  = -DFIRST_CHESS_PROGRAM=\"$(BINDIR)/gnushogix\"
--SECOND_PROGRAM = -DSECOND_CHESS_PROGRAM=\"$(BINDIR)/gnushogix\"
-+FIRST_PROGRAM  = -DFIRST_CHESS_PROGRAM=\"$(LOCALBASE)/libexec/gnushogix\"
-+SECOND_PROGRAM = -DSECOND_CHESS_PROGRAM=\"$(LOCALBASE)/libexec/gnushogix\"
- FIRST_HOST     = -DFIRST_HOST=\"localhost\"
- SECOND_HOST    = -DSECOND_HOST=\"localhost\"
- 
diff -urN /usr/ports/games/xshogi/files/patch-ab games/xshogi/files/patch-ab
--- /usr/ports/games/xshogi/files/patch-ab	Sun Nov 17 20:53:34 1996
+++ games/xshogi/files/patch-ab	Thu Jan  1 09:00:00 1970
@@ -1,19 +0,0 @@
-*** xshogi.c.org	Tue Oct  8 01:04:00 1996
---- xshogi.c	Tue Oct  8 01:04:26 1996
-***************
-*** 7132,7138 ****
-          XtInputId *id;
-  {
-  	char message[MSG_SIZ], *end_str, *number, *name;
-!         extern char *sys_errlist[];
-  
-  	if (fgets(message, MSG_SIZ, fp) == NULL) {
-  		if (fp == fromFirstProgFP) {
---- 7132,7138 ----
-          XtInputId *id;
-  {
-  	char message[MSG_SIZ], *end_str, *number, *name;
-!         /*extern char *sys_errlist[];*/
-  
-  	if (fgets(message, MSG_SIZ, fp) == NULL) {
-  		if (fp == fromFirstProgFP) {
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list