aboutsummaryrefslogtreecommitdiff
path: root/games/glchess
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-04-20 05:34:37 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-04-20 05:34:37 +0000
commit9867ff0ad20ad960c8bd21aeada589172708f43f (patch)
treeed9c39ce6578a6529ecd228438220fc69f873bb9 /games/glchess
parent4b0775b6c11344f47f4827359e49d61f0e2daa27 (diff)
downloadports-9867ff0ad20ad960c8bd21aeada589172708f43f.tar.gz
ports-9867ff0ad20ad960c8bd21aeada589172708f43f.zip
Notes
Diffstat (limited to 'games/glchess')
-rw-r--r--games/glchess/Makefile56
-rw-r--r--games/glchess/distinfo6
-rw-r--r--games/glchess/files/patch-configure.in33
-rw-r--r--games/glchess/files/patch-src::interface.c14
-rw-r--r--games/glchess/pkg-plist54
5 files changed, 50 insertions, 113 deletions
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
index afa7eff7e6d1..3eb1cf8bccb5 100644
--- a/games/glchess/Makefile
+++ b/games/glchess/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= glchess
-PORTVERSION= 0.4.7
-PORTREVISION= 2
+PORTVERSION= 0.9.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,48 +14,35 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A 3D OpenGL based chess game
-LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gdkgl/__init__.py:${PORTSDIR}/x11-toolkits/py-gtkglext
USE_X_PREFIX= yes
-USE_GNOME= gtk12
-USE_GMAKE= yes
-USE_GL= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
-USE_AUTOTOOLS= automake:14 autoconf:213
-USE_REINPLACE= yes
+USE_PYTHON= yes
+NO_BUILD= yes
-MAN6= ${PORTNAME}.6
+PORTDOCS= ChangeLog README TODO
-pre-patch:
- @${REINPLACE_CMD} -e 's!/usr/local/share/games/glchess!${DATADIR}!' \
- ${WRKSRC}/glchessrc
- @${REINPLACE_CMD} -e 's!/etc!${PREFIX}/etc!' \
- ${WRKSRC}/src/config.c
- @${REINPLACE_CMD} -e 's|^aclocal|${ACLOCAL}|; \
- s|^autoconf|${AUTOCONF}|; s|^automake|${AUTOMAKE}|' \
- ${WRKSRC}/autogen.sh
- @${REINPLACE_CMD} -e 's|"gnuchessx"|"gnuchess"|' ${WRKSRC}/src/main.c
-
-pre-configure:
- cd ${WRKSRC}; ${SH} autogen.sh
+post-patch:
+.for file in glchess ui/gtkui/gtkui.py
+ @${REINPLACE_CMD} -e \
+ 's|^python |${PYTHON_CMD} |g ; \
+ s|/usr/share/games/glchess|${DATADIR}|g' ${WRKSRC}/${file}
+.endfor
do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/glchess ${PREFIX}/bin
@${MKDIR} ${DATADIR}
- @${MKDIR} ${DATADIR}/textures
- @${INSTALL_PROGRAM} ${WRKSRC}/src/glchess \
- ${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/glchessrc \
- ${PREFIX}/etc
- @${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 \
- ${PREFIX}/man/man6
- @${INSTALL_DATA} ${WRKSRC}/textures/*.rgb \
- ${DATADIR}/textures
-.ifndef(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR}
+ @${MKDIR} ${DATADIR}/gui
+ ${INSTALL_DATA} ${WRKSRC}/ui/gtkui/*.glade ${DATADIR}/gui
+ @${MKDIR} ${DATADIR}/ui
+ ${INSTALL_DATA} ${WRKSRC}/ui/*.py ${DATADIR}/ui
+ @${MKDIR} ${DATADIR}/ui/gtkui
+ ${INSTALL_DATA} ${WRKSRC}/ui/gtkui/*.py ${DATADIR}/ui/gtkui
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README TODO
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif #NOPORTDOCS
@${CAT} ${PKGMESSAGE}
diff --git a/games/glchess/distinfo b/games/glchess/distinfo
index b947e339cdae..1221746a893a 100644
--- a/games/glchess/distinfo
+++ b/games/glchess/distinfo
@@ -1,3 +1,3 @@
-MD5 (glchess-0.4.7.tar.gz) = d4b852cb870be605dfb37646e6fa90b8
-SHA256 (glchess-0.4.7.tar.gz) = 6ef03273022b7f31c34435ea06763fce4ba0b90bb3d58d24a31ed852b3e2b2e0
-SIZE (glchess-0.4.7.tar.gz) = 126979
+MD5 (glchess-0.9.0.tar.gz) = d665b86fb7ea3462e2130eb2d0e3d313
+SHA256 (glchess-0.9.0.tar.gz) = 2f48530cd1f42391cf03edfc8af9415db5a44de54ca093fe606617d79fbf0e6b
+SIZE (glchess-0.9.0.tar.gz) = 74712
diff --git a/games/glchess/files/patch-configure.in b/games/glchess/files/patch-configure.in
deleted file mode 100644
index bdb4094594f8..000000000000
--- a/games/glchess/files/patch-configure.in
+++ /dev/null
@@ -1,33 +0,0 @@
---- configure.in.orig Thu Jan 10 15:36:21 2002
-+++ configure.in Fri Jan 11 16:47:02 2002
-@@ -21,8 +21,8 @@
- GL_LDOPTS="-L$with_GL_prefix/lib"
- fi
-
--AC_CHECK_LIB(MesaGL, glBegin, have_MesaGL=yes, , $GTK_LIBS $GL_LDOPTS)
--AC_CHECK_LIB(GL, glBegin, have_GL=yes, , $GTK_LIBS $GL_LDOPTS)
-+AC_CHECK_LIB(MesaGL, glBegin, have_MesaGL=yes, , $GTK_LIBS $GL_LDOPTS $PTHREAD_LIBS)
-+AC_CHECK_LIB(GL, glBegin, have_GL=yes, , $GTK_LIBS $GL_LDOPTS $PTHREAD_LIBS)
-
- if test "$with_lib_GL" = yes; then
-
-@@ -62,7 +62,7 @@
- fi
-
- AC_CHECK_LIB(gtkgl, gtk_gl_area_make_current, gtkgl_ok=yes, ,
-- ${GTKGL_LDOPTS} ${GTK_LIBS} ${GL_LIBS})
-+ ${GTKGL_LDOPTS} ${GTK_LIBS} ${GL_LIBS} $PTHREAD_LIBS)
-
- if test "$gtkgl_ok" = yes; then
- GTKGL_LIBS="${GTKGL_LDOPTS} -lgtkgl"
-@@ -75,8 +75,8 @@
- AC_C_CONST
- AC_TYPE_SIZE_T
-
--CFLAGS="$GTK_CFLAGS $GL_CFLAGS $GTKGL_CFLAGS"
--LIBS="$GTKGL_LIBS $GTK_LIBS $GL_LIBS $IMG_LIBS"
-+CFLAGS="$GTK_CFLAGS $GL_CFLAGS $GTKGL_CFLAGS $PTHREAD_CFLAGS"
-+LIBS="$GTKGL_LIBS $GTK_LIBS $GL_LIBS $IMG_LIBS $PTHREAD_LIBS"
-
- AC_OUTPUT(src/Makefile man/Makefile textures/Makefile Makefile)
-
diff --git a/games/glchess/files/patch-src::interface.c b/games/glchess/files/patch-src::interface.c
deleted file mode 100644
index 0158fae35388..000000000000
--- a/games/glchess/files/patch-src::interface.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/interface.c.orig Mon Mar 25 00:02:08 2002
-+++ src/interface.c Wed Mar 27 02:03:28 2002
-@@ -23,8 +23,10 @@
-
- #include <stdio.h>
- #include <stdlib.h>
-+#include <sys/types.h>
-+#include <sys/time.h>
-+#include <unistd.h>
- #include <gtkgl/gtkglarea.h>
--#include <sys/select.h>
-
- #include "global.h"
- #include "interface.h"
diff --git a/games/glchess/pkg-plist b/games/glchess/pkg-plist
index a3a1e8e20343..2ce569fa3619 100644
--- a/games/glchess/pkg-plist
+++ b/games/glchess/pkg-plist
@@ -1,29 +1,27 @@
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
+%%DATADIR%%/ai.py
+%%DATADIR%%/builtin_models.py
+%%DATADIR%%/cecp.py
+%%DATADIR%%/chess_board.py
+%%DATADIR%%/game.py
+%%DATADIR%%/glchess.py
+%%DATADIR%%/pgn.py
+%%DATADIR%%/san.py
+%%DATADIR%%/scene.py
+%%DATADIR%%/gui/chess_view.glade
+%%DATADIR%%/gui/error_dialog.glade
+%%DATADIR%%/gui/glchess.glade
+%%DATADIR%%/gui/load_game.glade
+%%DATADIR%%/gui/network_game.glade
+%%DATADIR%%/gui/new_game.glade
+%%DATADIR%%/gui/new_game_simple.glade
+%%DATADIR%%/gui/save_game.glade
+%%DATADIR%%/gui/splashscreen.glade
+%%DATADIR%%/ui/__init__.py
+%%DATADIR%%/ui/ui.py
+%%DATADIR%%/ui/gtkui/gtkui.py
+%%DATADIR%%/ui/gtkui/__init__.py
+@dirrm %%DATADIR%%/ui/gtkui
+@dirrm %%DATADIR%%/ui
+@dirrm %%DATADIR%%/gui
+@dirrm %%DATADIR%%