diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-07 23:23:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-07 23:23:53 +0000 |
commit | eb4200cea581e5feeea9e84f6a52a8ae6c8677d5 (patch) | |
tree | d7d7c51a845d2d48a2bc566965b6721b5e84d63d /games | |
parent | aac728769604e55ff9769daa1ff84e29e486e2b6 (diff) | |
download | pkgsrc-eb4200cea581e5feeea9e84f6a52a8ae6c8677d5.tar.gz |
Fix build on newer NetBSD. DESTDIR support.
Diffstat (limited to 'games')
-rw-r--r-- | games/teg/Makefile | 4 | ||||
-rw-r--r-- | games/teg/distinfo | 5 | ||||
-rw-r--r-- | games/teg/patches/patch-ab | 12 | ||||
-rw-r--r-- | games/teg/patches/patch-ac | 13 | ||||
-rw-r--r-- | games/teg/patches/patch-ad | 20 |
5 files changed, 52 insertions, 2 deletions
diff --git a/games/teg/Makefile b/games/teg/Makefile index 0e28dbd245f..79bceddc644 100644 --- a/games/teg/Makefile +++ b/games/teg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2008/03/06 14:53:50 wiz Exp $ +# $NetBSD: Makefile,v 1.17 2009/02/07 23:23:53 joerg Exp $ DISTNAME= teg-0.11.1 PKGREVISION= 12 @@ -9,6 +9,8 @@ MAINTAINER= wrzymski@gmail.com HOMEPAGE= http://teg.sourceforge.net/ COMMENT= Round-based computer board game +PKG_DESTDIR_SUPPORT= user-destdir + USE_DIRS= xdg-1.2 gnome2-1.5 USE_PKGLOCALEDIR= yes USE_LIBTOOL= yes diff --git a/games/teg/distinfo b/games/teg/distinfo index 4c5a147855b..3c50f3e6ee5 100644 --- a/games/teg/distinfo +++ b/games/teg/distinfo @@ -1,6 +1,9 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/10/23 19:59:53 minskim Exp $ +$NetBSD: distinfo,v 1.2 2009/02/07 23:23:53 joerg Exp $ SHA1 (teg-0.11.1.tar.gz) = dce0e76d3e45390c04bb2fac6f21693d467e48ad RMD160 (teg-0.11.1.tar.gz) = 77ca993f3b38309d5f255a709aa0064b11e2139a Size (teg-0.11.1.tar.gz) = 3805983 bytes SHA1 (patch-aa) = 8df1d95a0634d0683a55948947103ad300c8013e +SHA1 (patch-ab) = afe615fa8df185429ff95d04e86af6aa6206d9e3 +SHA1 (patch-ac) = cff7c1cee55cb7b070591c5f02352f1a92b0cf3d +SHA1 (patch-ad) = 33547b2f4d880e163657d703000a9ba82271f109 diff --git a/games/teg/patches/patch-ab b/games/teg/patches/patch-ab new file mode 100644 index 00000000000..0d144975cb0 --- /dev/null +++ b/games/teg/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1 2009/02/07 23:23:53 joerg Exp $ + +--- common/common.h.orig 2009-02-08 00:05:39.000000000 +0100 ++++ common/common.h +@@ -81,6 +81,7 @@ typedef enum { + } ARMY, *PARMY; + extern char *g_colores[]; + ++#undef RANDOM_MAX + #define RANDOM_MAX(_min,_max) (_min+(int)(((float)(1+_max-_min))*rand() / (RAND_MAX+1.0))) + + #define RANDOM_DEVICE "/dev/random" diff --git a/games/teg/patches/patch-ac b/games/teg/patches/patch-ac new file mode 100644 index 00000000000..426af31ba0a --- /dev/null +++ b/games/teg/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2009/02/07 23:23:53 joerg Exp $ + +--- server/missions.c.orig 2009-02-08 00:10:07.000000000 +0100 ++++ server/missions.c +@@ -20,6 +20,8 @@ + */ + /* checks that the secret missions are accomplished */ + #include <assert.h> ++#include <stdlib.h> ++#include "common.h" + #include "server.h" + + /* Do player pJ accomplished his secret mission ? */ diff --git a/games/teg/patches/patch-ad b/games/teg/patches/patch-ad new file mode 100644 index 00000000000..79bccbcc9e3 --- /dev/null +++ b/games/teg/patches/patch-ad @@ -0,0 +1,20 @@ +$NetBSD: patch-ad,v 1.1 2009/02/07 23:23:53 joerg Exp $ + +--- common/all.h.orig 2009-02-08 00:13:58.000000000 +0100 ++++ common/all.h +@@ -29,6 +29,7 @@ + #ifndef HAVE_INTERNATIONALIZATION + #include "fcintl.h" + #endif ++#include "support.h" + #include "common.h" + #include "tegdebug.h" + #include "share.h" +@@ -36,7 +37,6 @@ + #include "net.h" + #include "parser.h" + #include "version.h" +-#include "support.h" + #include "tarjeta.h" + #include "cont.h" + #include "country.h" |