gnushogi port
This commit is contained in:
parent
0f246437b6
commit
c0b72478d8
45
games/gnushogi/Makefile
Normal file
45
games/gnushogi/Makefile
Normal file
@ -0,0 +1,45 @@
|
||||
# OpenBSD makefile for: gnushogi
|
||||
# Version required: 1.2p03
|
||||
# Date created: May 19 1998
|
||||
# Whom: Angelos D. Keromytis
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/20 03:41:28 angelos Exp $
|
||||
#
|
||||
|
||||
DISTNAME= gnushogi-1.2p03
|
||||
PKGNAME= gnushogi-1.2.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
|
||||
MAINTAINER= angelos@openbsd.org
|
||||
|
||||
DOCFILES= BOOKFILES CHANGES CONTRIB COPYING GENERAL INSTALL PORTING \
|
||||
README-FIRST listserv.ref shogi.rules tutorial1.gam tutorial2.gam
|
||||
MAN6= gnushogi.6
|
||||
|
||||
post-configure:
|
||||
echo "DISTDIR=${WRKDIR}" >> ${WRKSRC}/src/${MAKEFILE}
|
||||
echo "prefix=${PREFIX}" >> ${WRKSRC}/src/${MAKEFILE}
|
||||
|
||||
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/man6/gnushogi.6
|
||||
.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/files/md5
Normal file
1
games/gnushogi/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (gnushogi-1.2p03.tar.gz) = 242571d1c9e6c20fff646a0e5b0bca10
|
44
games/gnushogi/patches/patch-aa
Normal file
44
games/gnushogi/patches/patch-aa
Normal file
@ -0,0 +1,44 @@
|
||||
--- src/Makefile.orig Wed May 24 07:05:26 1995
|
||||
+++ src/Makefile Fri Jan 3 02:57:59 1997
|
||||
@@ -41,22 +41,22 @@
|
||||
DIST= ../README-$(VERS) ../doc ../misc ../src
|
||||
|
||||
# Installation directory
|
||||
-prefix=/usr/local
|
||||
+#prefix=/usr/local
|
||||
#prefix=/public/projects/shogi
|
||||
|
||||
# Change these to something less transitory, like /usr/games, and then
|
||||
# compile. Ask your system admin / unix guru to put gnushogi.{hsh,lng,tbk}
|
||||
# in $(LIBDIR).
|
||||
# Where the binaries live.
|
||||
-BINDIR= $(prefix)/games
|
||||
+BINDIR= $(prefix)/bin
|
||||
#BINDIR=/public/projects/shogi/bin
|
||||
|
||||
# Where language description, our book, and the persistent hash live.
|
||||
-LIBDIR= $(prefix)/games/lib/gnushogi
|
||||
+LIBDIR= $(prefix)/share/gnushogi
|
||||
#LIBDIR=/public/projects/shogi/lib
|
||||
|
||||
# Distribution directory
|
||||
-DISTDIR=/public/projects/shogi
|
||||
+#DISTDIR=/public/projects/shogi
|
||||
|
||||
# Programs being distributed
|
||||
PROGS=gnushogi-$(VERS)
|
||||
@@ -96,7 +96,8 @@
|
||||
#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 -funroll-loops # gnu cc 2.00 on SunOS
|
||||
+CFLAGS= -O2 -m486 -pipe -fno-strength-reduce
|
||||
|
||||
# flags for DJGPP package
|
||||
#COFF2EXE= coff2exe $(GNUSHOGI)
|
||||
@@ -454,3 +455,4 @@
|
||||
-rm -f $(DISTDIR)/gnushogi-$(VERS)/src/gnushogi.bbk
|
||||
-find $(DISTDIR)/gnushogi-$(VERS) \( -name '*.o' -o -name '*~' -o -name 'CL*' -o -name 'PATCH*' -o -name '#*#' -o -name '%*%' -o -name '*orig' -o -name 'CL*' -o -name '*prt' -o -name '*bak' -o -name '*BAK' \) -exec rm -f {} \;
|
||||
|
||||
+DISTDIR=/net/freefall/a/obrien/ports/games/gnushogi/work
|
19
games/gnushogi/patches/patch-ab
Normal file
19
games/gnushogi/patches/patch-ab
Normal file
@ -0,0 +1,19 @@
|
||||
*** src/dspcom.c.orig Tue May 19 23:37:20 1998
|
||||
--- src/dspcom.c Tue May 19 23:38:08 1998
|
||||
***************
|
||||
*** 1567,1573 ****
|
||||
#ifdef NONDSP
|
||||
s[0] = sx[0] = '\0';
|
||||
while (!sx[0])
|
||||
! (void) gets (sx);
|
||||
#else
|
||||
fflush (stdout);
|
||||
#if defined MSDOS || defined THINK_C
|
||||
--- 1567,1573 ----
|
||||
#ifdef NONDSP
|
||||
s[0] = sx[0] = '\0';
|
||||
while (!sx[0])
|
||||
! (void) fgets (sx, 79, stdin);
|
||||
#else
|
||||
fflush (stdout);
|
||||
#if defined MSDOS || defined THINK_C
|
42
games/gnushogi/patches/patch-ac
Normal file
42
games/gnushogi/patches/patch-ac
Normal file
@ -0,0 +1,42 @@
|
||||
*** src/nondsp.c.orig Wed May 24 09:54:13 1995
|
||||
--- src/nondsp.c Tue May 19 23:41:58 1998
|
||||
***************
|
||||
*** 292,301 ****
|
||||
|
||||
NewGame ();
|
||||
|
||||
! gets (s); /* skip "setup" command */
|
||||
for (r = NO_ROWS-1; r >= 0; r--)
|
||||
{
|
||||
! gets (s);
|
||||
for (c = 0; c <= (NO_COLS-1); c++)
|
||||
{
|
||||
ch = s[c];
|
||||
--- 292,301 ----
|
||||
|
||||
NewGame ();
|
||||
|
||||
! fgets (s, 79, stdin); /* skip "setup" command */
|
||||
for (r = NO_ROWS-1; r >= 0; r--)
|
||||
{
|
||||
! fgets (s, 79, stdin);
|
||||
for (c = 0; c <= (NO_COLS-1); c++)
|
||||
{
|
||||
ch = s[c];
|
||||
***************
|
||||
*** 645,651 ****
|
||||
for(;*p != 'X';*q++ = *p++);
|
||||
*q = '\0';
|
||||
/* line empty ask for input */
|
||||
! if(!T[0]){ printz (CP[61]); gets(T); strcat(T,"XX"); }
|
||||
/* skip blackspace */
|
||||
for (p = T; *p == ' '; p++) ;
|
||||
/* could be moves or a fischer clock */
|
||||
--- 645,651 ----
|
||||
for(;*p != 'X';*q++ = *p++);
|
||||
*q = '\0';
|
||||
/* line empty ask for input */
|
||||
! if(!T[0]){ printz (CP[61]); fgets(T, NO_SQUARES-1, stdin); strcat(T,"XX"); }
|
||||
/* skip blackspace */
|
||||
for (p = T; *p == ' '; p++) ;
|
||||
/* could be moves or a fischer clock */
|
1
games/gnushogi/pkg/COMMENT
Normal file
1
games/gnushogi/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
GNU version of Shogi
|
13
games/gnushogi/pkg/DESCR
Normal file
13
games/gnushogi/pkg/DESCR
Normal 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
17
games/gnushogi/pkg/PLIST
Normal file
@ -0,0 +1,17 @@
|
||||
bin/gnushogi
|
||||
bin/gnushogir
|
||||
libexec/gnushogix
|
||||
man/man6/gnushogi.6
|
||||
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
|
Loading…
Reference in New Issue
Block a user