From 340885b9175d9f158345bf63f317d56ecb86338c Mon Sep 17 00:00:00 2001 From: rh Date: Sun, 16 Mar 2003 03:56:27 +0000 Subject: Initial import of ccgo-0.3.1, a Go board with IGS and gnugo interface --- games/ccgo/DESCR | 11 +++++++++++ games/ccgo/Makefile | 29 +++++++++++++++++++++++++++++ games/ccgo/PLIST | 21 +++++++++++++++++++++ games/ccgo/distinfo | 9 +++++++++ games/ccgo/patches/patch-aa | 9 +++++++++ games/ccgo/patches/patch-ab | 21 +++++++++++++++++++++ games/ccgo/patches/patch-ac | 12 ++++++++++++ games/ccgo/patches/patch-ad | 21 +++++++++++++++++++++ games/ccgo/patches/patch-ae | 15 +++++++++++++++ 9 files changed, 148 insertions(+) create mode 100644 games/ccgo/DESCR create mode 100644 games/ccgo/Makefile create mode 100644 games/ccgo/PLIST create mode 100644 games/ccgo/distinfo create mode 100644 games/ccgo/patches/patch-aa create mode 100644 games/ccgo/patches/patch-ab create mode 100644 games/ccgo/patches/patch-ac create mode 100644 games/ccgo/patches/patch-ad create mode 100644 games/ccgo/patches/patch-ae 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 + #define _XOPEN_SOURCE + #define _GNU_SOURCE + #include 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 + #include + #include ++#include + } + + 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 + #include + #include ++#include + } + #include + 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 + #include + #include ++#include + } + + 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 + #include + ++extern "C" { ++#include ++} ++ + #define _(String) Glib::locale_to_utf8(gettext(String)) + + class ccGo : -- cgit v1.2.3