summaryrefslogtreecommitdiff
path: root/games/pokerth/patches
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2009-01-31 03:04:37 +0000
committerahoka <ahoka@pkgsrc.org>2009-01-31 03:04:37 +0000
commit9eb9ecf8688224fa67eae74e2f308bd92b40f9de (patch)
tree9b0b2d743741ab501740e1755b9b71046636eff7 /games/pokerth/patches
parent25595783606f4b579fad66acb9d9c5363df5e2da (diff)
downloadpkgsrc-9eb9ecf8688224fa67eae74e2f308bd92b40f9de.tar.gz
Import pokerth-0.6.3.2 as games/pokerth.
PokerTH is a poker game written in C++/QT4. You can play the popular "Texas Hold'em" poker variant against up to six computer-opponents or play network games with people all over the world. This poker engine is available for Linux, Windows, and MacOSX and BSD.
Diffstat (limited to 'games/pokerth/patches')
-rw-r--r--games/pokerth/patches/patch-aa44
-rw-r--r--games/pokerth/patches/patch-ab13
-rw-r--r--games/pokerth/patches/patch-ac22
-rw-r--r--games/pokerth/patches/patch-ad51
-rw-r--r--games/pokerth/patches/patch-ae23
5 files changed, 153 insertions, 0 deletions
diff --git a/games/pokerth/patches/patch-aa b/games/pokerth/patches/patch-aa
new file mode 100644
index 00000000000..8c15832d947
--- /dev/null
+++ b/games/pokerth/patches/patch-aa
@@ -0,0 +1,44 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/31 03:04:37 ahoka Exp $
+
+--- pokerth_game.pro.orig 2009-01-04 00:18:19.000000000 +0100
++++ pokerth_game.pro
+@@ -319,38 +319,7 @@ unix : !mac {
+
+ LIBPATH += lib
+
+- LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64
+- BOOST_FS = boost_filesystem boost_filesystem-mt
+- BOOST_THREAD = boost_thread boost_thread-mt
+- BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt
+-
+-
+- for(dir, LIB_DIRS){
+- exists($$dir){
+- for(lib, BOOST_THREAD){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_THREAD = -l$$lib
+- }
+- }
+- for(lib, BOOST_FS){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_FS = -l$$lib
+- }
+- }
+- for(lib, BOOST_IOSTREAMS){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_IOSTREAMS = -l$$lib
+- }
+- }
+- }
+- }
+- BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_IOSTREAMS
+- !count(BOOST_LIBS, 3){
+- error("libboost (version >= 1.34.1) --> http://www.boost.org/")
+- }
++ LIBS += -lboost_filesystem-mt -lboost_thread-mt -lboost_iostreams-mt
+
+ if($$system(sdl-config --version)){
+ error("libSDL_mixer, libSDL --> http://www.libsdl.org/")
diff --git a/games/pokerth/patches/patch-ab b/games/pokerth/patches/patch-ab
new file mode 100644
index 00000000000..a9fed120d5c
--- /dev/null
+++ b/games/pokerth/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/01/31 03:04:37 ahoka Exp $
+
+--- src/third_party/libircclient/include/config.h.orig 2009-01-04 00:17:02.000000000 +0100
++++ src/third_party/libircclient/include/config.h
+@@ -2,7 +2,7 @@
+ /* include/config.h.in. Generated from configure.in by autoheader. */
+
+ /* Define to 1 if you have the `gethostbyname_r' function. */
+-#if !defined(__APPLE__) && !defined(__OpenBSD__)
++#if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
+ #define HAVE_GETHOSTBYNAME_R 1
+ #endif
+
diff --git a/games/pokerth/patches/patch-ac b/games/pokerth/patches/patch-ac
new file mode 100644
index 00000000000..33a06640951
--- /dev/null
+++ b/games/pokerth/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/01/31 03:04:37 ahoka Exp $
+
+--- src/core/linux/convhelper.cpp.orig 2009-01-04 00:17:01.000000000 +0100
++++ src/core/linux/convhelper.cpp
+@@ -37,7 +37,7 @@ ConvHelper::NativeToUtf8(const std::stri
+ {
+ string retStr(inStr);
+ size_t insize = inStr.length();
+-#if defined(__APPLE__) || defined(__FreeBSD__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+ const char *inbuf = inStr.data();
+ #else
+ char *inbuf = const_cast<char *>(inStr.data());
+@@ -72,7 +72,7 @@ ConvHelper::Utf8ToNative(const std::stri
+ {
+ string retStr(inStr);
+ size_t insize = inStr.length();
+-#if defined(__APPLE__) || defined(__FreeBSD__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+ const char *inbuf = inStr.data();
+ #else
+ char *inbuf = const_cast<char *>(inStr.data());
diff --git a/games/pokerth/patches/patch-ad b/games/pokerth/patches/patch-ad
new file mode 100644
index 00000000000..351f7aa6709
--- /dev/null
+++ b/games/pokerth/patches/patch-ad
@@ -0,0 +1,51 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/01/31 03:04:37 ahoka Exp $
+
+--- pokerth_server.pro.orig 2009-01-31 00:19:52.000000000 +0100
++++ pokerth_server.pro
+@@ -163,44 +163,8 @@ unix : !mac {
+
+ LIBPATH += lib
+
+- LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64
+- BOOST_FS = boost_filesystem boost_filesystem-mt
+- BOOST_THREAD = boost_thread boost_thread-mt
+- BOOST_PROGRAM_OPTIONS = boost_program_options boost_program_options-mt
+- BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt
+-
+- for(dir, LIB_DIRS){
+- exists($$dir){
+- for(lib, BOOST_THREAD){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_THREAD = -l$$lib
+- }
+- }
+- for(lib, BOOST_FS){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_FS = -l$$lib
+- }
+- }
+- for(lib, BOOST_PROGRAM_OPTIONS){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_PROGRAM_OPTIONS = -l$$lib
+- }
+- }
+- for(lib, BOOST_IOSTREAMS){
+- exists($${dir}/lib$${lib}.so*){
+- message("Found $$lib")
+- BOOST_IOSTREAMS = -l$$lib
+- }
+- }
+- }
+- }
+- BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_PROGRAM_OPTIONS $$BOOST_IOSTREAMS
+- !count(BOOST_LIBS, 4){
+- error( libboost (version >= 1.34.1) --> http://www.boost.org/")
+- }
++ LIBS += -lboost_filesystem-mt -lboost_thread-mt
++ LIBS += -lboost_program_options-mt -lboost_iostreams-mt
+
+ UNAME = $$system(uname -s)
+ BSD = $$find(UNAME, "BSD")
diff --git a/games/pokerth/patches/patch-ae b/games/pokerth/patches/patch-ae
new file mode 100644
index 00000000000..70402aa0355
--- /dev/null
+++ b/games/pokerth/patches/patch-ae
@@ -0,0 +1,23 @@
+$NetBSD: patch-ae,v 1.1.1.1 2009/01/31 03:04:37 ahoka Exp $
+
+--- src/core/openssl_wrapper.h.orig 2009-01-04 00:17:01.000000000 +0100
++++ src/core/openssl_wrapper.h
+@@ -40,15 +40,8 @@
+ #undef X509_NAME // Again for Windows - conflict with WinCrypt.h.
+ #endif
+
+-#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+- // For BSD-Systems, we assume that OpenSSL is part of the operating system.
+- #include <openssl/ssl.h>
+- #include <openssl/md5.h>
+- #include <openssl/rand.h>
+-#else
+- // For all other systems, we use GnuTLS.
+- #include <gnutls/openssl.h>
+- #define PKTH_USE_GNUTLS
+-#endif
++#include <openssl/ssl.h>
++#include <openssl/md5.h>
++#include <openssl/rand.h>
+
+ #endif