aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-07-29 23:33:22 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-07-29 23:33:22 +0000
commit71ea9495ad4130fe1ba627c229f7db7721302b6d (patch)
tree7c9c4a9ffa5db4fd3ceade8735cab39d921b1a47
parent058fe5053dcdb95e3cf4a817f77e973117da142c (diff)
downloadports-71ea9495ad4130fe1ba627c229f7db7721302b6d.tar.gz
ports-71ea9495ad4130fe1ba627c229f7db7721302b6d.zip
Notes
-rw-r--r--games/Makefile1
-rw-r--r--games/glchess/Makefile54
-rw-r--r--games/glchess/distinfo1
-rw-r--r--games/glchess/files/patch-Makefile18
-rw-r--r--games/glchess/files/patch-src::Makefile13
-rw-r--r--games/glchess/pkg-comment1
-rw-r--r--games/glchess/pkg-descr9
-rw-r--r--games/glchess/pkg-plist29
8 files changed, 126 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index f46a09181f0a..e79277780c63 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -81,6 +81,7 @@
SUBDIR += gcompris
SUBDIR += gemdropx
SUBDIR += glasteroids
+ SUBDIR += glchess
SUBDIR += gleyes
SUBDIR += glife
SUBDIR += gltron
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
new file mode 100644
index 000000000000..a3e0a963fda5
--- /dev/null
+++ b/games/glchess/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: gleyes
+# Date created: Wed Jul 18 08:35:56 EDT 2001
+# Whom: Patrick Li <pat@databits.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= glchess
+PORTVERSION= 0.3.3
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= pat@databits.net
+
+RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty \
+ gnuchess:${PORTSDIR}/games/gnuchess
+LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GTK= yes
+USE_MESA= yes
+MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
+
+MAN6= ${PORTNAME}.6
+MANCOMPRESSED= yes
+
+pre-patch:
+ @${PERL} -pi.orig -e 's!${LOCALBASE}/share/games/glchess!${DATADIR}!' \
+ ${WRKSRC}/glchessrc.installed
+ @${PERL} -pi.orig -e 's!/etc!${PREFIX}/etc!' \
+ ${WRKSRC}/src/config.c
+
+do-install:
+ @${MKDIR} ${DATADIR}
+ @${MKDIR} ${DATADIR}/textures
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
+ ${PREFIX}/bin
+ @${INSTALL_DATA} ${WRKSRC}/glchessrc.installed \
+ ${PREFIX}/etc/glchessrc
+ @${INSTALL_MAN} ${WRKSRC}/man/glchess.6.gz \
+ ${PREFIX}/man/man6
+ @${INSTALL_DATA} ${WRKSRC}/textures/* \
+ ${DATADIR}/textures
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ChangeLog README TODO
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif #NOPORTDOCS
+
+.include <bsd.port.mk>
diff --git a/games/glchess/distinfo b/games/glchess/distinfo
new file mode 100644
index 000000000000..0a9fee55cfb4
--- /dev/null
+++ b/games/glchess/distinfo
@@ -0,0 +1 @@
+MD5 (glchess-0.3.3.tar.gz) = 2ba3db9aaa20561fbe6d5bf6cedba9f6
diff --git a/games/glchess/files/patch-Makefile b/games/glchess/files/patch-Makefile
new file mode 100644
index 000000000000..53413567dbe1
--- /dev/null
+++ b/games/glchess/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig Wed Jul 18 09:19:16 2001
++++ Makefile Wed Jul 18 09:06:04 2001
+@@ -1,12 +1,11 @@
+-INSTALLDIR = /usr/local/bin
+-MANDIR = /usr/local/man/man6
+-SHAREDIR = /usr/local/share/games/glchess
++INSTALLDIR = ${PREFIX}/bin
++MANDIR = ${PREFIX}/man/man6
++SHAREDIR = ${DATADIR}
+
+ VERSION = 0.3.3
+ DATE = `date "+%Y-%m-%d"`
+
+ all:
+- @clear
+ @echo "Building glChess..."
+ @cd src && make
+ @mv src/glchess .
diff --git a/games/glchess/files/patch-src::Makefile b/games/glchess/files/patch-src::Makefile
new file mode 100644
index 000000000000..6aa63d48800f
--- /dev/null
+++ b/games/glchess/files/patch-src::Makefile
@@ -0,0 +1,13 @@
+--- src/Makefile.orig Tue Jul 17 16:05:53 2001
++++ src/Makefile Sun Jul 29 20:17:58 2001
+@@ -1,7 +1,6 @@
+-CC = gcc
+-CFLAGS = -g -Wall `gtk-config --cflags`
+-
+-LIBS = `gtk-config --libs` -lgtkgl -lGL -lGLU -lm -L/usr/X11R6/lib -lXi -lXmu
++CFLAGS += -g -Wall `${GTK_CONFIG} --cflags` $(INCLDIR) ${PTHREAD_CFLAGS}
++INCLDIR = -I${X11BASE}/include -I${LOCALBASE}/include
++LIBS = `${GTK_CONFIG} --libs` -L${X11BASE}/lib -lgtkgl -lGL -lGLU -lm -lXi -lXmu ${PTHREAD_LIBS}
+
+ OBJS = main.o \
+ animation.o \
diff --git a/games/glchess/pkg-comment b/games/glchess/pkg-comment
new file mode 100644
index 000000000000..4ad608745379
--- /dev/null
+++ b/games/glchess/pkg-comment
@@ -0,0 +1 @@
+A 3D OpenGL based chess game
diff --git a/games/glchess/pkg-descr b/games/glchess/pkg-descr
new file mode 100644
index 000000000000..31891e63246b
--- /dev/null
+++ b/games/glchess/pkg-descr
@@ -0,0 +1,9 @@
+glChess is a 3D OpenGL based chess game that interfaces via the Chess Engine
+Communication Protocol (CECP) by Tim Mann. This means it can currently use
+Crafty and GNU Chess as AIs. You can also play Human vs. Human, but so far
+not over a network.
+
+WWW: http://glchess.sourceforge.net/
+Author: http://glchess.sourceforge.net/#authors
+
+- Patrick Li <pat@databits.net>
diff --git a/games/glchess/pkg-plist b/games/glchess/pkg-plist
new file mode 100644
index 000000000000..a3a1e8e20343
--- /dev/null
+++ b/games/glchess/pkg-plist
@@ -0,0 +1,29 @@
+bin/glchess
+etc/glchessrc
+%%PORTDOCS%%share/doc/glchess/ChangeLog
+%%PORTDOCS%%share/doc/glchess/README
+%%PORTDOCS%%share/doc/glchess/TODO
+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
+%%PORTDOCS%%@dirrm share/doc/glchess