summaryrefslogtreecommitdiff
path: root/games/ccgo
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2003-03-16 03:56:27 +0000
committerrh <rh@pkgsrc.org>2003-03-16 03:56:27 +0000
commitf5ad8eed119b96d092174552272edae73050318f (patch)
tree4f18703c29dd2a821c85c24a2fd4f1060ad56569 /games/ccgo
parent12f3925935f38ddad2b82a60fdd2dc3f29d8377e (diff)
downloadpkgsrc-f5ad8eed119b96d092174552272edae73050318f.tar.gz
Initial import of ccgo-0.3.1, a Go board with IGS and gnugo interface
Diffstat (limited to 'games/ccgo')
-rw-r--r--games/ccgo/DESCR11
-rw-r--r--games/ccgo/Makefile29
-rw-r--r--games/ccgo/PLIST21
-rw-r--r--games/ccgo/distinfo9
-rw-r--r--games/ccgo/patches/patch-aa9
-rw-r--r--games/ccgo/patches/patch-ab21
-rw-r--r--games/ccgo/patches/patch-ac12
-rw-r--r--games/ccgo/patches/patch-ad21
-rw-r--r--games/ccgo/patches/patch-ae15
9 files changed, 148 insertions, 0 deletions
diff --git a/games/ccgo/DESCR b/games/ccgo/DESCR
new file mode 100644
index 00000000000..574dda8a748
--- /dev/null
+++ b/games/ccgo/DESCR
@@ -0,0 +1,11 @@
+ ccGo is a program allows you to play go with gnugo on your computer or
+with other players on the IGS on the internet.
+
+Features
+
+ * low bandwidth IGS client (works fine in quiet mode)
+ * GMP support, to play go with gnugo
+ * SGF Go game record viewer, works with format version FF4
+ * written in C++ using gtkmm-2.0
+ * picture board and stone images support
+ * auto detect and display Chinese, Japanese characters
diff --git a/games/ccgo/Makefile b/games/ccgo/Makefile
new file mode 100644
index 00000000000..f8c3a586cc7
--- /dev/null
+++ b/games/ccgo/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/16 03:56:27 rh Exp $
+#
+
+DISTNAME= ccgo-0.3.1
+CATEGORIES= games
+MASTER_SITES= http://ccdw.org/~cjj/prog/ccgo/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://ccdw.org/~cjj/prog/ccgo/
+COMMENT= Go board with IGS and gnugo interface
+
+BUILD_USES_MSGFMT= YES
+
+USE_BUILDLINK2= YES
+USE_PKGLOCALEDIR= YES
+GNU_CONFIGURE= YES
+
+post-patch:
+.for src in game_setup.cc settings.cc
+ ${CP} ${WRKSRC}/${src} ${WRKSRC}/${src}.old
+ ${SED} -e 's|/usr/games|${PREFIX}/bin|g' < ${WRKSRC}/${src}.old > ${WRKSRC}/${src}
+.endfor
+
+.include "../../textproc/regexx/buildlink2.mk"
+.include "../../converters/libiconv/buildlink2.mk"
+.include "../../devel/gettext-lib/buildlink2.mk"
+.include "../../devel/gconfmm/buildlink2.mk"
+.include "../../x11/gtkmm/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/ccgo/PLIST b/games/ccgo/PLIST
new file mode 100644
index 00000000000..3a62f45aa4b
--- /dev/null
+++ b/games/ccgo/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/16 03:56:27 rh Exp $
+bin/ccgo
+man/man6/ccgo.6
+share/gnome/apps/Games/ccgo.desktop
+${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/ccgo.mo
+${PKGLOCALEDIR}/locale/zh_TW/LC_MESSAGES/ccgo.mo
+share/pixmaps/ccgo.png
+share/pixmaps/ccgo/banner.png
+share/pixmaps/ccgo/black_stone.png
+share/pixmaps/ccgo/board.png
+share/pixmaps/ccgo/gamelist_icon.png
+share/pixmaps/ccgo/igs_icon.png
+share/pixmaps/ccgo/main_icon.png
+share/pixmaps/ccgo/matching_icon.png
+share/pixmaps/ccgo/matchlist_icon.png
+share/pixmaps/ccgo/observing_icon.png
+share/pixmaps/ccgo/playerlist_icon.png
+share/pixmaps/ccgo/playing_icon.png
+share/pixmaps/ccgo/teaching_icon.png
+share/pixmaps/ccgo/white_stone.png
+@dirrm share/pixmaps/ccgo
diff --git a/games/ccgo/distinfo b/games/ccgo/distinfo
new file mode 100644
index 00000000000..c6509d5c874
--- /dev/null
+++ b/games/ccgo/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/16 03:56:27 rh Exp $
+
+SHA1 (ccgo-0.3.1.tar.gz) = 6e83e8d4af5b8f5406446c99b8d809aad467e4f7
+Size (ccgo-0.3.1.tar.gz) = 450845 bytes
+SHA1 (patch-aa) = cb799ba2a360c73b7d62f29195eb780a4f0a1edf
+SHA1 (patch-ab) = 9e2113bc179a6597336c284f0bd915b5c446ecf6
+SHA1 (patch-ac) = 40bbc99e781bc7d46f2b54a1e47f55b9babc203e
+SHA1 (patch-ad) = aa26e60014cf491434b06d1b84b9adda72528a2d
+SHA1 (patch-ae) = d7543945e19a6ec0b29dee702c25f20492ec8cb6
diff --git a/games/ccgo/patches/patch-aa b/games/ccgo/patches/patch-aa
new file mode 100644
index 00000000000..dd66a800693
--- /dev/null
+++ b/games/ccgo/patches/patch-aa
@@ -0,0 +1,9 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/16 03:56:27 rh Exp $
+
+--- igs/datetime.cc.orig 2002-11-22 01:29:41.000000000 +1000
++++ igs/datetime.cc
+@@ -1,3 +1,4 @@
++#include <time.h>
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #include <ctime>
diff --git a/games/ccgo/patches/patch-ab b/games/ccgo/patches/patch-ab
new file mode 100644
index 00000000000..67bb016d948
--- /dev/null
+++ b/games/ccgo/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/03/16 03:56:27 rh Exp $
+
+--- igs/fork.cc.orig 2002-11-24 02:49:32.000000000 +1000
++++ igs/fork.cc
+@@ -15,6 +15,7 @@ extern "C" {
+ #include <sys/fcntl.h>
+ #include <sys/wait.h>
+ #include <unistd.h>
++#include <signal.h>
+ }
+
+ using namespace igs;
+@@ -143,7 +144,7 @@ bool Fork::open_conn(const std::string &
+ close(c2p[0]);
+ close(c2p[1]);
+ close(2); // close cerr
+- char * shell = "/bin/bash";
++ char * shell = "/bin/sh";
+ std::string c = std::string ("exec ") + n;
+ execl(shell, shell, "-c", c.c_str(), 0);
+ std::cerr << "Fail to fork: " << n << std::endl;
diff --git a/games/ccgo/patches/patch-ac b/games/ccgo/patches/patch-ac
new file mode 100644
index 00000000000..ab6eeb7fd04
--- /dev/null
+++ b/games/ccgo/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/03/16 03:56:27 rh Exp $
+
+--- igs/sock.cc.orig 2002-11-27 07:35:46.000000000 +1000
++++ igs/sock.cc
+@@ -16,6 +16,7 @@ extern "C" {
+ #include <sys/socket.h>
+ #include <unistd.h>
+ #include <netdb.h>
++#include <netinet/in.h>
+ }
+ #include <cerrno>
+
diff --git a/games/ccgo/patches/patch-ad b/games/ccgo/patches/patch-ad
new file mode 100644
index 00000000000..2f2d1d33dfe
--- /dev/null
+++ b/games/ccgo/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/03/16 03:56:28 rh Exp $
+
+--- gmp/device.cc.orig 2002-10-31 07:25:00.000000000 +1000
++++ gmp/device.cc
+@@ -14,6 +14,7 @@ extern "C" {
+ #include <sys/fcntl.h>
+ #include <sys/wait.h>
+ #include <unistd.h>
++#include <signal.h>
+ }
+
+ using namespace gmp;
+@@ -356,7 +357,7 @@ bool Device::fork_child(const std::strin
+ close(c2p[0]);
+ close(c2p[1]);
+ // close(2); // close cerr
+- char * shell = "/bin/bash";
++ char * shell = "/bin/sh";
+ std::string c = std::string("exec ") + n;
+ execl(shell, shell, "-c", c.c_str(), 0);
+ // exec failed!
diff --git a/games/ccgo/patches/patch-ae b/games/ccgo/patches/patch-ae
new file mode 100644
index 00000000000..97df83e6a15
--- /dev/null
+++ b/games/ccgo/patches/patch-ae
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/03/16 03:56:28 rh Exp $
+
+--- ccgo.cc.orig 2002-11-30 02:31:16.000000000 +1000
++++ ccgo.cc
+@@ -25,6 +25,10 @@
+ #include <iostream>
+ #include <fstream>
+
++extern "C" {
++#include <locale.h>
++}
++
+ #define _(String) Glib::locale_to_utf8(gettext(String))
+
+ class ccGo :