summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/glchess/DESCR4
-rw-r--r--games/glchess/MESSAGE13
-rw-r--r--games/glchess/Makefile38
-rw-r--r--games/glchess/PLIST27
-rw-r--r--games/glchess/distinfo6
-rw-r--r--games/glchess/patches/patch-aa12
-rw-r--r--games/glchess/patches/patch-ab16
7 files changed, 116 insertions, 0 deletions
diff --git a/games/glchess/DESCR b/games/glchess/DESCR
new file mode 100644
index 00000000000..be7d79741fb
--- /dev/null
+++ b/games/glchess/DESCR
@@ -0,0 +1,4 @@
+ glChess is a 3D OpenGL based chess game using a GTK interface. The aim
+is to be compatible with chess servers so you can use a 3D board rather
+than a 2D one. Currently human vs. human and human vs. engine is possible.
+Possible chess engines to use are gnuchess and crafty.
diff --git a/games/glchess/MESSAGE b/games/glchess/MESSAGE
new file mode 100644
index 00000000000..fb31d3f55e5
--- /dev/null
+++ b/games/glchess/MESSAGE
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $
+
+ glchess has now been installed in ${PREFIX}. To play against the
+ computer, you need to set up the path to an installed gnuchessx
+ or crafty chess engine.
+
+ To change settings, you need to create ${PKG_SYSCONFDIR}/glchessrc
+ containing system-wide settings or .glchessrc in a user's home
+ directory for per-user configuration. The default configuration
+ can be found in ${PREFIX}/etc/glchessrc.default
+
+===========================================================================
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
new file mode 100644
index 00000000000..8ca5e598b74
--- /dev/null
+++ b/games/glchess/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $
+#
+
+DISTNAME= glchess-0.4.6
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=glchess/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://glchess.sourceforge.net/
+COMMENT= 3D chess interface
+
+USE_BUILDLINK2= YES
+USE_X11= YES
+GNU_CONFIGURE= YES
+INSTALL_DIRS= ${WRKSRC}/src ${WRKSRC}/man ${WRKSRC}/textures
+
+pre-configure:
+ cd ${WRKSRC} && \
+ ${ACLOCAL} && \
+ ${AUTOMAKE} --add-missing && \
+ ${AUTOCONF} && \
+ ${CP} glchessrc glchessrc.dist && \
+ ${SED} -e 's|/usr/local/share/games|${PREFIX}/share|g' \
+ < glchessrc.dist > glchessrc && \
+ ${CP} src/config.c src/config.c.dist && \
+ ${SED} -e 's|/etc|${PKG_SYSCONFDIR}|g' \
+ -e 's|@PKGETC@|${PREFIX}/etc|g' \
+ < src/config.c.dist > src/config.c
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/glchessrc \
+ ${PREFIX}/etc/glchessrc.default
+
+.include "../../graphics/Mesa/buildlink2.mk"
+.include "../../x11/gtkglarea/buildlink2.mk"
+.include "../../x11/gtk/buildlink2.mk"
+.include "../../mk/automake.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/glchess/PLIST b/games/glchess/PLIST
new file mode 100644
index 00000000000..4544df948ee
--- /dev/null
+++ b/games/glchess/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $
+bin/glchess
+etc/glchessrc.default
+man/man6/glchess.6
+share/glchess/textures/1.rgb
+share/glchess/textures/2.rgb
+share/glchess/textures/3.rgb
+share/glchess/textures/4.rgb
+share/glchess/textures/5.rgb
+share/glchess/textures/6.rgb
+share/glchess/textures/7.rgb
+share/glchess/textures/8.rgb
+share/glchess/textures/a.rgb
+share/glchess/textures/b.rgb
+share/glchess/textures/black_board_texture.rgb
+share/glchess/textures/black_piece_texture.rgb
+share/glchess/textures/c.rgb
+share/glchess/textures/d.rgb
+share/glchess/textures/e.rgb
+share/glchess/textures/f.rgb
+share/glchess/textures/g.rgb
+share/glchess/textures/h.rgb
+share/glchess/textures/selected_piece_texture.rgb
+share/glchess/textures/white_board_texture.rgb
+share/glchess/textures/white_piece_texture.rgb
+@dirrm share/glchess/textures
+@dirrm share/glchess
diff --git a/games/glchess/distinfo b/games/glchess/distinfo
new file mode 100644
index 00000000000..8fc933d2640
--- /dev/null
+++ b/games/glchess/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $
+
+SHA1 (glchess-0.4.6.tar.gz) = da8edcb4aaef18885e6ecc04277cf7acd0b79175
+Size (glchess-0.4.6.tar.gz) = 127249 bytes
+SHA1 (patch-aa) = edbaa29af90d4b5fcfff98df27636686bd7bc7b1
+SHA1 (patch-ab) = 8270b9d23c4103045bb72bdcb5d11311722c8db2
diff --git a/games/glchess/patches/patch-aa b/games/glchess/patches/patch-aa
new file mode 100644
index 00000000000..4775e4b1c2b
--- /dev/null
+++ b/games/glchess/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $
+
+--- src/interface.c.orig Mon Mar 25 15:02:08 2002
++++ src/interface.c
+@@ -24,6 +24,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <gtkgl/gtkglarea.h>
++#include <sys/time.h>
+ #include <sys/select.h>
+
+ #include "global.h"
diff --git a/games/glchess/patches/patch-ab b/games/glchess/patches/patch-ab
new file mode 100644
index 00000000000..afceab37f16
--- /dev/null
+++ b/games/glchess/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $
+
+--- src/config.c.orig Sat Oct 12 15:19:12 2002
++++ src/config.c
+@@ -101,6 +101,11 @@ int open_rc(Game * game, const char *fil
+ {
+ fprintf(stderr, "/etc/glchessrc not found, trying ./glchessrc\n");
+ rc = fopen("./glchessrc", "r");
++ if (rc == NULL)
++ {
++ fprintf(stderr, "./glchessrc not found, trying @PKGETC@/glchessrc.default\n");
++ rc = fopen("@PKGETC@/glchessrc.default", "r");
++ }
+ }
+ }
+