aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-11-17 19:44:57 +0800
committerasami <asami@FreeBSD.org>1996-11-17 19:44:57 +0800
commitd089147ffa683f7fa500d28c35a842f4848f7b8b (patch)
tree082c584c9f8ed76413b8d924522023d1dacd3524
parent81d4477a488aa49e82200d7b77ea2c78025d14e0 (diff)
downloadfreebsd-ports-gnome-d089147ffa683f7fa500d28c35a842f4848f7b8b.tar.gz
freebsd-ports-gnome-d089147ffa683f7fa500d28c35a842f4848f7b8b.tar.zst
freebsd-ports-gnome-d089147ffa683f7fa500d28c35a842f4848f7b8b.zip
This sucker will beat you in shogi. Closes PR 1885/2018.
Submitted by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
-rw-r--r--games/gnushogi/Makefile41
-rw-r--r--games/gnushogi/distinfo1
-rw-r--r--games/gnushogi/files/patch-aa53
-rw-r--r--games/gnushogi/pkg-comment1
-rw-r--r--games/gnushogi/pkg-descr13
-rw-r--r--games/gnushogi/pkg-plist17
6 files changed, 126 insertions, 0 deletions
diff --git a/games/gnushogi/Makefile b/games/gnushogi/Makefile
new file mode 100644
index 000000000000..6e013b9dd2b2
--- /dev/null
+++ b/games/gnushogi/Makefile
@@ -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>
diff --git a/games/gnushogi/distinfo b/games/gnushogi/distinfo
new file mode 100644
index 000000000000..72a85537bb6b
--- /dev/null
+++ b/games/gnushogi/distinfo
@@ -0,0 +1 @@
+MD5 (gnushogi-1.2p03.tar.gz) = 242571d1c9e6c20fff646a0e5b0bca10
diff --git a/games/gnushogi/files/patch-aa b/games/gnushogi/files/patch-aa
new file mode 100644
index 000000000000..b4e14618bc0f
--- /dev/null
+++ b/games/gnushogi/files/patch-aa
@@ -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)
diff --git a/games/gnushogi/pkg-comment b/games/gnushogi/pkg-comment
new file mode 100644
index 000000000000..8a708f7070a8
--- /dev/null
+++ b/games/gnushogi/pkg-comment
@@ -0,0 +1 @@
+GNU version of Shogi
diff --git a/games/gnushogi/pkg-descr b/games/gnushogi/pkg-descr
new file mode 100644
index 000000000000..c78f91683552
--- /dev/null
+++ b/games/gnushogi/pkg-descr
@@ -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>
diff --git a/games/gnushogi/pkg-plist b/games/gnushogi/pkg-plist
new file mode 100644
index 000000000000..dc5a62252470
--- /dev/null
+++ b/games/gnushogi/pkg-plist
@@ -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