summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-03-09 23:30:40 +0000
committerkristerw <kristerw@pkgsrc.org>2004-03-09 23:30:40 +0000
commit7c03d1427c315cb3c6d74851cf1e6f1b6ae206b8 (patch)
treecc2578d17a25e49f48a7c96d1fe097af76a167b7 /games
parent986127a45969191d3e392fb135d823abbec43831 (diff)
downloadpkgsrc-7c03d1427c315cb3c6d74851cf1e6f1b6ae206b8.tar.gz
Make this package compile and work when not using native threads.
Diffstat (limited to 'games')
-rw-r--r--games/gnuchess/Makefile3
-rw-r--r--games/gnuchess/distinfo3
-rw-r--r--games/gnuchess/patches/patch-aa12
3 files changed, 16 insertions, 2 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index e54b47ab6e6..5e0ff542c10 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2004/03/08 06:03:10 minskim Exp $
+# $NetBSD: Makefile,v 1.23 2004/03/09 23:30:40 kristerw Exp $
# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
#
@@ -37,4 +37,5 @@ post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DOCDIR}
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/games/gnuchess/distinfo b/games/gnuchess/distinfo
index 58bd39f421e..d1c2c6d1d26 100644
--- a/games/gnuchess/distinfo
+++ b/games/gnuchess/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.5 2004/03/08 03:04:36 minskim Exp $
+$NetBSD: distinfo,v 1.6 2004/03/09 23:30:40 kristerw Exp $
SHA1 (gnuchess-5.07.tar.gz) = 7dbaf957bfea9cf37fe393e1fec7306de0162a16
Size (gnuchess-5.07.tar.gz) = 234542 bytes
+SHA1 (patch-aa) = 417c8ca61142d08c827d2ca760b5ffb0c1988099
diff --git a/games/gnuchess/patches/patch-aa b/games/gnuchess/patches/patch-aa
new file mode 100644
index 00000000000..409ecbc6615
--- /dev/null
+++ b/games/gnuchess/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.7 2004/03/09 23:30:40 kristerw Exp $
+
+--- src/iterate.c.orig Tue Mar 9 23:14:23 2004
++++ src/iterate.c Tue Mar 9 23:14:54 2004
+@@ -192,6 +192,7 @@
+ }
+ while (!(flags & TIMEOUT))
+ {
++ sched_yield();
+ if (score > MATE-255)
+ {
+ RootAlpha = score-1;