This sucker will beat you in shogi. Closes PR 1885/2018.

Submitted by:	Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
This commit is contained in:
Satoshi Asami 1996-11-17 11:44:57 +00:00
parent 92ddbfd59f
commit 8125428f34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4546
6 changed files with 126 additions and 0 deletions

41
games/gnushogi/Makefile Normal file
View file

@ -0,0 +1,41 @@
# New ports collection makefile for: gnushogi
# Version required: 1.2p03
# Date created: 9 October 1996
# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $Id$
#
DISTNAME= gnushogi-1.2p03
PKGNAME= gnushogi-1.2.3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU}
MAINTAINER= Nakai@Mlab.t.u-tokyo.ac.jp
DOCFILES= BOOKFILES CHANGES CONTRIB COPYING GENERAL INSTALL PORTING \
README-FIRST listserv.ref shogi.rules tutorial1.gam tutorial2.gam
MAN1= gnushogi.1
do-build:
(cd ${WRKSRC}/src; \
make gnushogir; \
make gnushogi.bbk; \
make gnushogi; \
make gnushogix )
do-install:
@${MKDIR} ${PREFIX}/share/gnushogi
${INSTALL_PROGRAM} ${WRKSRC}/src/gnushogi ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/gnushogir ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/gnushogix ${PREFIX}/libexec
${INSTALL_DATA} ${WRKSRC}/src/gnushogi.bbk ${PREFIX}/share/gnushogi
${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/gnushogi
.for doc in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${PREFIX}/share/doc/gnushogi
.endfor
.endif
.include <bsd.port.mk>

1
games/gnushogi/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (gnushogi-1.2p03.tar.gz) = 242571d1c9e6c20fff646a0e5b0bca10

View file

@ -0,0 +1,53 @@
*** src/Makefile.orig Wed May 24 14:05:26 1995
--- src/Makefile Tue Oct 22 20:00:44 1996
***************
*** 48,62 ****
# compile. Ask your system admin / unix guru to put gnushogi.{hsh,lng,tbk}
# in $(LIBDIR).
# Where the binaries live.
! BINDIR= $(prefix)/games
#BINDIR=/public/projects/shogi/bin
# Where language description, our book, and the persistent hash live.
! LIBDIR= $(prefix)/games/lib/gnushogi
#LIBDIR=/public/projects/shogi/lib
# Distribution directory
! DISTDIR=/public/projects/shogi
# Programs being distributed
PROGS=gnushogi-$(VERS)
--- 48,62 ----
# compile. Ask your system admin / unix guru to put gnushogi.{hsh,lng,tbk}
# in $(LIBDIR).
# Where the binaries live.
! BINDIR= $(prefix)/bin
#BINDIR=/public/projects/shogi/bin
# Where language description, our book, and the persistent hash live.
! LIBDIR= $(prefix)/share/gnushogi
#LIBDIR=/public/projects/shogi/lib
# Distribution directory
! DISTDIR=/usr/ports/games/gnushogi/work
# Programs being distributed
PROGS=gnushogi-$(VERS)
***************
*** 96,102 ****
#CFLAGS= -O2 -funroll-loops -traditional-cpp -DNO_STRING_INCLUDE -DNOFIONREAD # gnu cc 2.00 (hawk)
#CFLAGS= -O2 -funroll-loops -DSEVENBIT # djgpp
#CFLAGS= -g -funroll-loops # gnu cc 2.00 on SunOS with debug
! CFLAGS= -O2 -funroll-loops # gnu cc 2.00 on SunOS
# flags for DJGPP package
#COFF2EXE= coff2exe $(GNUSHOGI)
--- 96,103 ----
#CFLAGS= -O2 -funroll-loops -traditional-cpp -DNO_STRING_INCLUDE -DNOFIONREAD # gnu cc 2.00 (hawk)
#CFLAGS= -O2 -funroll-loops -DSEVENBIT # djgpp
#CFLAGS= -g -funroll-loops # gnu cc 2.00 on SunOS with debug
! #CFLAGS= -O2 -funroll-loops # gnu cc 2.00 on SunOS
! CFLAGS= -O2 -m486 -pipe -fno-strength-reduce
# flags for DJGPP package
#COFF2EXE= coff2exe $(GNUSHOGI)

View file

@ -0,0 +1 @@
GNU version of Shogi

13
games/gnushogi/pkg-descr Normal file
View file

@ -0,0 +1,13 @@
GNU version of Shogi, a game of Japanese chess.
Gnushogi is an updated version of the gnuchess program.
It has a simple alpha-numeric board display, or it can be
compiled for use with the chesstool program on a SUN work-
station or with the xshogi program under X-windows. The
program gets its opening moves from the file gnushogi.book
which is located in a directory specified in the makefile.
To invoke the program type:
gnushogi
Yukihiro Nakai<Nakai@Mlab.t.u-tokyo.ac.jp>

17
games/gnushogi/pkg-plist Normal file
View file

@ -0,0 +1,17 @@
bin/gnushogi
bin/gnushogir
libexec/gnushogix
man/man1/gnushogi.1.gz
share/doc/gnushogi/BOOKFILES
share/doc/gnushogi/CHANGES
share/doc/gnushogi/CONTRIB
share/doc/gnushogi/COPYING
share/doc/gnushogi/GENERAL
share/doc/gnushogi/INSTALL
share/doc/gnushogi/PORTING
share/doc/gnushogi/README-FIRST
share/doc/gnushogi/listserv.ref
share/doc/gnushogi/shogi.rules
share/doc/gnushogi/tutorial1.gam
share/doc/gnushogi/tutorial2.gam
share/gnushogi/gnushogi.bbk