X frontend to GNU shogi. Closes PR 1886/2028.
Submitted by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
This commit is contained in:
parent
8125428f34
commit
9f312008ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4547
7 changed files with 133 additions and 0 deletions
28
games/xshogi/Makefile
Normal file
28
games/xshogi/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# New ports collection makefile for: xshogi
|
||||
# Version required: 1.2p03
|
||||
# Date created: 20 October 1996
|
||||
# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= xshogi-1.2p03
|
||||
PKGNAME= xshogi-1.2.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
|
||||
MAINTAINER= Nakai@Mlab.t.u-tokyo.ac.jp
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/libexec/gnushogix:${PORTSDIR}/games/gnushogi
|
||||
|
||||
USE_X11= yes
|
||||
MAKEFILE= Makefile.custom
|
||||
MAN1= xshogi.1
|
||||
|
||||
post-install:
|
||||
@strip ${PREFIX}/bin/xshogi
|
||||
@chmod 755 ${PREFIX}/bin/xshogi
|
||||
@chown bin.bin ${PREFIX}/bin/xshogi
|
||||
${INSTALL_MAN} ${WRKSRC}/xshogi.man ${PREFIX}/man/man1/xshogi.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
games/xshogi/distinfo
Normal file
1
games/xshogi/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (xshogi-1.2p03.tar.gz) = 3dd09a7528e588782cfd5c6dbada2ea1
|
79
games/xshogi/files/patch-aa
Normal file
79
games/xshogi/files/patch-aa
Normal file
|
@ -0,0 +1,79 @@
|
|||
*** Makefile.custom.orig Wed May 24 14:12:05 1995
|
||||
--- Makefile.custom Fri Oct 25 06:38:10 1996
|
||||
***************
|
||||
*** 28,45 ****
|
||||
VERS = 1.2p03
|
||||
|
||||
# Installation directory
|
||||
! prefix=/usr/local
|
||||
#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=/public/projects/shogi/bin
|
||||
|
||||
-
|
||||
# Distribution directory
|
||||
! DISTDIR=/public/projects/shogi
|
||||
|
||||
# Compress program
|
||||
COMPRESS = gzip
|
||||
--- 28,44 ----
|
||||
VERS = 1.2p03
|
||||
|
||||
# Installation directory
|
||||
! prefix=/usr/X11R6
|
||||
#prefix=/public/projects/shogi
|
||||
|
||||
# Change these to something less transitory, like /usr/games, and then
|
||||
# compile.
|
||||
# Where the binaries live (especially gnushogix).
|
||||
! BINDIR= $(prefix)/bin
|
||||
#BINDIR=/public/projects/shogi/bin
|
||||
|
||||
# Distribution directory
|
||||
! DISTDIR=/usr/ports/games/xshogi/work
|
||||
|
||||
# Compress program
|
||||
COMPRESS = gzip
|
||||
***************
|
||||
*** 73,80 ****
|
||||
#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
|
||||
|
||||
# Options for xshogi
|
||||
# Use -DSENDTIME with at least gnushogix 1.2 patchlevel 3
|
||||
--- 72,80 ----
|
||||
#CCOPTIONS= -g
|
||||
#LDOPTIONS= -lXaw -lXmu -lXt -lXext -lX11
|
||||
# This is for cc on SunOS with debug
|
||||
! CCOPTIONS= -g -O2 -m486 -pipe -fno-strength-reduce \
|
||||
! -I/usr/include -I/usr/X11R6/include
|
||||
! LDOPTIONS= -L/usr/lib -L/usr/X11R6/lib -lXaw -lXmu -lXt -lXext -lX11
|
||||
|
||||
# Options for xshogi
|
||||
# Use -DSENDTIME with at least gnushogix 1.2 patchlevel 3
|
||||
***************
|
||||
*** 88,95 ****
|
||||
# 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_HOST = -DFIRST_HOST=\"localhost\"
|
||||
SECOND_HOST = -DSECOND_HOST=\"localhost\"
|
||||
|
||||
--- 88,95 ----
|
||||
# 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=\"/usr/local/libexec/gnushogix\"
|
||||
! SECOND_PROGRAM = -DSECOND_CHESS_PROGRAM=\"/usr/local/libexec/gnushogix\"
|
||||
FIRST_HOST = -DFIRST_HOST=\"localhost\"
|
||||
SECOND_HOST = -DSECOND_HOST=\"localhost\"
|
||||
|
19
games/xshogi/files/patch-ab
Normal file
19
games/xshogi/files/patch-ab
Normal file
|
@ -0,0 +1,19 @@
|
|||
*** 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) {
|
1
games/xshogi/pkg-comment
Normal file
1
games/xshogi/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
The Japanese chess-like game for X Window System.
|
3
games/xshogi/pkg-descr
Normal file
3
games/xshogi/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
The Japanese chess-like game for X Window System.
|
||||
|
||||
|
2
games/xshogi/pkg-plist
Normal file
2
games/xshogi/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
|||
bin/xshogi
|
||||
man/man1/xshogi.1.gz
|
Loading…
Reference in a new issue