aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-09-30 11:18:29 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-09-30 11:18:29 +0800
commit42b200dbd0ed29c60dfc01c5b7e04dc09f9d1421 (patch)
tree445e7726db9891016688597279c3983a0a6099c4 /games
parentdddac2a55a5ff6c0919ca4bb423771e193ad003b (diff)
downloadfreebsd-ports-gnome-42b200dbd0ed29c60dfc01c5b7e04dc09f9d1421.tar.gz
freebsd-ports-gnome-42b200dbd0ed29c60dfc01c5b7e04dc09f9d1421.tar.zst
freebsd-ports-gnome-42b200dbd0ed29c60dfc01c5b7e04dc09f9d1421.zip
Import of wmminichess.
A dockapp that puts the power of gnu chess in a windowmaker dockapp. *warning*: severe eye strain if you play this! PR: 13942 Submitted by: Will Andrews <andrews@technologist.com>
Diffstat (limited to 'games')
-rw-r--r--games/wmminichess/Makefile25
-rw-r--r--games/wmminichess/distinfo1
-rw-r--r--games/wmminichess/files/patch-aa60
-rw-r--r--games/wmminichess/pkg-comment1
-rw-r--r--games/wmminichess/pkg-descr24
-rw-r--r--games/wmminichess/pkg-plist5
6 files changed, 116 insertions, 0 deletions
diff --git a/games/wmminichess/Makefile b/games/wmminichess/Makefile
new file mode 100644
index 000000000000..39882066a603
--- /dev/null
+++ b/games/wmminichess/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: (wm)miniCHESS
+# Version required: 0.8
+# Date created: 24 Sep 1999
+# Whom: Will Andrews <andrews@technologist.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= miniCHESS-0.8
+PKGNAME= wmminichess-0.8
+CATEGORIES= games
+MASTER_SITES= http://www.electricrain.com/edavis/miniCHESS/
+
+MAINTAINER= andrews@technologist.com
+
+LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
+RUN_DEPENDS= ${LOCALBASE}/bin/gnuchessx:${PORTSDIR}/games/gnuchess
+
+USE_GMAKE= YES
+USE_X_PREFIX= YES
+MAKE_ENV= PREFIX="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ LOCAL="${LOCALBASE}" MKDIR="${MKDIR}" \
+ INSTALL_DATA="${INSTALL_DATA}"
+
+.include <bsd.port.mk>
diff --git a/games/wmminichess/distinfo b/games/wmminichess/distinfo
new file mode 100644
index 000000000000..16fecc4daa4a
--- /dev/null
+++ b/games/wmminichess/distinfo
@@ -0,0 +1 @@
+MD5 (miniCHESS-0.8.tar.gz) = 173422ee5651032e4d150ddc6e9f17c8
diff --git a/games/wmminichess/files/patch-aa b/games/wmminichess/files/patch-aa
new file mode 100644
index 000000000000..7f68bd6d8e3f
--- /dev/null
+++ b/games/wmminichess/files/patch-aa
@@ -0,0 +1,60 @@
+--- Makefile.orig Wed Jul 28 21:59:39 1999
++++ Makefile Wed Sep 29 20:13:10 1999
+@@ -20,34 +20,43 @@
+ # (See COPYING / GPL-2.0)
+ #
+
++# PREFIX on FreeBSD
++PREFIX ?= /usr/X11R6
++LOCAL = ${LOCALBASE}
++
++# Other stuff.
++SHARE_DIR = $(PREFIX)/share/wmminichess
++#INSTALL_DATA = install -c -o root -g wheel -m 644
++#INSTALL_PROGRAM = install -c -s -o root -g wheel -m 755
+
+ # Specify the location of gnuchessx on your system.
+-GNUCHESS = /usr/local/bin/gnuchessx
++GNUCHESS = $(LOCAL)/bin/gnuchessx
+
+ # Where do you want the binary installed?
+-DESTDIR = /usr/local/bin
++DESTDIR = $(PREFIX)/bin
+
+ # What do you want to name the binary?
+ BIN_NAME = minichess
+
+-# Uncomment this line if your using Solaris.
+-#SOLARIS_LIBS = -lsocket
+-
+-CFLAGS = -ansi -I/usr/X11R6/include
+-LIBDIR = -L/usr/X11R6/lib
+-LIBS = -lXpm -lXext -lX11 $(SOLARIS_LIBS)
++CFLAGS += -I$(PREFIX)/include
++LIBDIR = -L$(PREFIX)/lib
++LIBS = -lXpm -lXext -lX11
+ OBJS = chess.o xgen.o
+
+ .c.o:
+- gcc $(CFLAGS) -DENGINE=\"$(GNUCHESS)\" -c $< -o $*.o
++ ${CC} $(CFLAGS) -DENGINE=\"$(GNUCHESS)\" -c $< -o $*.o
++
++all: $(BIN_NAME)
+
+ $(BIN_NAME): $(OBJS)
+- gcc $(CFLAGS) -o $(BIN_NAME) $(OBJS) $(LIBDIR) $(LIBS)
++ ${CC} $(CFLAGS) -o $(BIN_NAME) $(OBJS) $(LIBDIR) $(LIBS)
+
+ clean:
+ rm -f $(OBJS) $(BIN_NAME)
+
+-install:
+- cp -f $(BIN_NAME) $(DESTDIR)
+- chmod 755 $(DESTDIR)/$(BIN_NAME)
+-
++install: $(BIN_NAME)
++ $(MKDIR) $(SHARE_DIR)
++ $(INSTALL_PROGRAM) $(BIN_NAME) $(DESTDIR)
++ $(INSTALL_DATA) README $(SHARE_DIR)
++ $(INSTALL_DATA) TODO $(SHARE_DIR)
++ $(INSTALL_DATA) COPYING $(SHARE_DIR)
diff --git a/games/wmminichess/pkg-comment b/games/wmminichess/pkg-comment
new file mode 100644
index 000000000000..5259f7d7d610
--- /dev/null
+++ b/games/wmminichess/pkg-comment
@@ -0,0 +1 @@
+WindowMaker chess dockapp game.
diff --git a/games/wmminichess/pkg-descr b/games/wmminichess/pkg-descr
new file mode 100644
index 000000000000..bd65bc9e0c9f
--- /dev/null
+++ b/games/wmminichess/pkg-descr
@@ -0,0 +1,24 @@
+miniCHESS, or as I've christened it in this port, wmminichess,
+is a rather interesting dockapp that puts the power of gnuchess
+in a windowmaker dockapp.
+
+However, be warned:
+
+ [quote]
+
+ miniCHESS was born out of boredom. I warn you... if your a chess
+enthusiast and play a lot then please use xboard or some other chess
+gui. Even though miniCHESS has that kinda cool factor, it does get hard
+on the eyes. I like using miniCHESS for games in which I'm in no hurry
+to finish and go on for a couple days. Sorry but miniCHESS has no
+save/restore features yet.
+
+ [end quote]
+
+The README in /usr/X11R6/share/wmminichess/ should explain how to
+play. It really does a nice job of that.
+
+WWW: http://www.electricrain.com/edavis/miniCHESS/
+Author: Eric Davis <ead@pobox.com>
+
+- Will <andrews@technologist.com>
diff --git a/games/wmminichess/pkg-plist b/games/wmminichess/pkg-plist
new file mode 100644
index 000000000000..f41eb27b72dc
--- /dev/null
+++ b/games/wmminichess/pkg-plist
@@ -0,0 +1,5 @@
+bin/minichess
+share/wmminichess/README
+share/wmminichess/COPYING
+share/wmminichess/TODO
+@dirrm share/wmminichess