Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/games
In directory sc8-pr-cvs1:/tmp/cvs-serv13961
Added Files:
glchess-0.4.6-3.info glchess-0.4.6-3.patch
Removed Files:
glchess-0.4.6-2.info glchess-0.4.6-2.patch
Log Message:
Fix man page location
--- NEW FILE: glchess-0.4.6-3.info ---
Package: glchess
Version: 0.4.6
Revision: 3
Depends: gtk+, libgl, gtkglarea
BuildDepends: automake, dlcompat-dev
Source: http://unc.dl.sourceforge.net/%n/%n-%v.tar.gz
Patch: %f.patch
PatchScript: <<
perl -pi -e 's|(/etc/glchessrc)|%p\1|' src/config.c
perl -pi -e 's|/usr/local(.*)/games|%p\1|' glchessrc
<<
ConfigureParams: --mandir=%i/share/man
CompileScript:<<
./autogen.sh
./configure %c
make
<<
DocFiles: AUTHORS BUGS COPYING ChangeLog NEWS README TODO
Description: 3D Chess Interface
DescDetail: <<
glChess is an OpenGL based 3D Chess Interface to chess engines
or for human play. It's not the most functional or full-featured
chess board, but graphically very neat.
<<
DescPort: <<
The (nonstandard) configure script that came with the source is pretty
much worthless regarding portability, so we're patching the Makefiles
directly.
<<
License: GPL
Maintainer: Matthias Neeracher <[EMAIL PROTECTED]>
Homepage: http://glchess.sourceforge.net
--- NEW FILE: glchess-0.4.6-3.patch ---
diff -ru glchess-0.4.6-orig/Makefile.am glchess-0.4.6/Makefile.am
--- glchess-0.4.6-orig/Makefile.am Wed Jan 8 10:28:00 2003
+++ glchess-0.4.6/Makefile.am Wed Jan 8 10:29:50 2003
@@ -3,8 +3,9 @@
SUBDIRS = src man textures
-install:
- cp glchessrc /etc/
+install: install-recursive
+ mkdir -p ${sysconfdir}
+ cp glchessrc ${sysconfdir}
uninstall:
rm /etc/glchessrc
Only in glchess-0.4.6: Makefile.am~
diff -ru glchess-0.4.6-orig/src/engine.c glchess-0.4.6/src/engine.c
--- glchess-0.4.6-orig/src/engine.c Wed Jan 8 10:28:00 2003
+++ glchess-0.4.6/src/engine.c Wed Jan 8 10:29:50 2003
@@ -25,7 +25,7 @@
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
-#include <sys/poll.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
@@ -119,22 +119,20 @@
int read_char(char *ch)
{
int ret;
- struct pollfd pfd;
+ fd_set fds;
+ struct timeval delay;
- pfd.fd = INPUT;
- pfd.events = POLLIN | POLLERR | POLLHUP;
-
- /* If time runs out and there's still no char, we guess there won't be
- * any more */
- if (poll(&pfd, 1, TIME_OUT) < 0)
- {
- return (-1);
- }
-
- if ((pfd.revents & (POLLERR | POLLHUP)) != 0)
- return (-1);
-
- if ((pfd.revents & POLLIN) != 0)
+ FD_ZERO(&fds);
+ FD_SET(INPUT, &fds);
+
+ delay.tv_sec = TIME_OUT / 1000;
+ delay.tv_usec= (TIME_OUT % 1000) * 1000;
+
+ ret = select(INPUT+1, &fds, NULL, NULL, &delay);
+
+ if (ret == -1)
+ return -1;
+ else if (ret == 1)
ret = read(INPUT, ch, 1);
else
ret = 0;
@@ -148,6 +146,7 @@
char *bin = NULL;
char *args[2];
char sd[10];
+ char *argv[2];
switch (engine)
{
diff -ru glchess-0.4.6-orig/src/interface.c glchess-0.4.6/src/interface.c
--- glchess-0.4.6-orig/src/interface.c Wed Jan 8 10:28:00 2003
+++ glchess-0.4.6/src/interface.c Wed Jan 8 10:29:50 2003
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <gtkgl/gtkglarea.h>
#include <sys/select.h>
-
+#include <sys/time.h>
#include "global.h"
#include "interface.h"
#include "menu.h"
@@ -386,6 +386,10 @@
GDK_GL_NONE
};
+ /* The GtkGLArea must be created first to initialize OpenGL */
+ glcwidget->glarea = gtk_gl_area_new(attrlist);
+ gtk_widget_set_usize(GTK_WIDGET(glcwidget->glarea), 400, 400);
+
glcwidget->game = game;
glcwidget->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(glcwidget->window), "glChess " VERSION);
@@ -441,10 +445,6 @@
gtk_container_add(GTK_CONTAINER(glcwidget->scrolled_window),
glcwidget->clist);
-
- /* The GtkGLArea */
- glcwidget->glarea = gtk_gl_area_new(attrlist);
- gtk_widget_set_usize(GTK_WIDGET(glcwidget->glarea), 400, 400);
/* Signals */
gtk_widget_set_events(glcwidget->glarea,
Only in glchess-0.4.6/src: interface.c~
--- glchess-0.4.6-2.info DELETED ---
--- glchess-0.4.6-2.patch DELETED ---
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits