summaryrefslogtreecommitdiff
path: root/games/xshogi
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-11-17 11:53:34 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-11-17 11:53:34 +0000
commit9f312008ed02a7c4f1ab8afaebb231177f26f45d (patch)
tree1745b7b8f966bc21cd66304a8a28bbfddab29be5 /games/xshogi
parentThis sucker will beat you in shogi. Closes PR 1885/2018. (diff)
X frontend to GNU shogi. Closes PR 1886/2028.
Submitted by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
Notes
Notes: svn path=/head/; revision=4547
Diffstat (limited to 'games/xshogi')
-rw-r--r--games/xshogi/Makefile28
-rw-r--r--games/xshogi/distinfo1
-rw-r--r--games/xshogi/files/patch-aa79
-rw-r--r--games/xshogi/files/patch-ab19
-rw-r--r--games/xshogi/pkg-comment1
-rw-r--r--games/xshogi/pkg-descr3
-rw-r--r--games/xshogi/pkg-plist2
7 files changed, 133 insertions, 0 deletions
diff --git a/games/xshogi/Makefile b/games/xshogi/Makefile
new file mode 100644
index 000000000000..89f1e2b88b19
--- /dev/null
+++ b/games/xshogi/Makefile
@@ -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>
diff --git a/games/xshogi/distinfo b/games/xshogi/distinfo
new file mode 100644
index 000000000000..7b3a99d6f877
--- /dev/null
+++ b/games/xshogi/distinfo
@@ -0,0 +1 @@
+MD5 (xshogi-1.2p03.tar.gz) = 3dd09a7528e588782cfd5c6dbada2ea1
diff --git a/games/xshogi/files/patch-aa b/games/xshogi/files/patch-aa
new file mode 100644
index 000000000000..d0316e6fbb4e
--- /dev/null
+++ b/games/xshogi/files/patch-aa
@@ -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\"
+
diff --git a/games/xshogi/files/patch-ab b/games/xshogi/files/patch-ab
new file mode 100644
index 000000000000..05b984ec8ee8
--- /dev/null
+++ b/games/xshogi/files/patch-ab
@@ -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) {
diff --git a/games/xshogi/pkg-comment b/games/xshogi/pkg-comment
new file mode 100644
index 000000000000..b8c21d1ba23d
--- /dev/null
+++ b/games/xshogi/pkg-comment
@@ -0,0 +1 @@
+The Japanese chess-like game for X Window System.
diff --git a/games/xshogi/pkg-descr b/games/xshogi/pkg-descr
new file mode 100644
index 000000000000..c0c3e9ed4e85
--- /dev/null
+++ b/games/xshogi/pkg-descr
@@ -0,0 +1,3 @@
+The Japanese chess-like game for X Window System.
+
+
diff --git a/games/xshogi/pkg-plist b/games/xshogi/pkg-plist
new file mode 100644
index 000000000000..aefd66e72044
--- /dev/null
+++ b/games/xshogi/pkg-plist
@@ -0,0 +1,2 @@
+bin/xshogi
+man/man1/xshogi.1.gz