pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/teg Fix build on newer NetBSD. DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bd2fac5ef67
branches:  trunk
changeset: 554077:0bd2fac5ef67
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Feb 07 23:23:53 2009 +0000

description:
Fix build on newer NetBSD. DESTDIR support.

diffstat:

 games/teg/Makefile         |   4 +++-
 games/teg/distinfo         |   5 ++++-
 games/teg/patches/patch-ab |  12 ++++++++++++
 games/teg/patches/patch-ac |  13 +++++++++++++
 games/teg/patches/patch-ad |  20 ++++++++++++++++++++
 5 files changed, 52 insertions(+), 2 deletions(-)

diffs (89 lines):

diff -r 039f129734b6 -r 0bd2fac5ef67 games/teg/Makefile
--- a/games/teg/Makefile        Sat Feb 07 23:21:05 2009 +0000
+++ b/games/teg/Makefile        Sat Feb 07 23:23:53 2009 +0000
@@ -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 @@
 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 -r 039f129734b6 -r 0bd2fac5ef67 games/teg/distinfo
--- a/games/teg/distinfo        Sat Feb 07 23:21:05 2009 +0000
+++ b/games/teg/distinfo        Sat Feb 07 23:23:53 2009 +0000
@@ -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 -r 039f129734b6 -r 0bd2fac5ef67 games/teg/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/teg/patches/patch-ab        Sat Feb 07 23:23:53 2009 +0000
@@ -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 -r 039f129734b6 -r 0bd2fac5ef67 games/teg/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/teg/patches/patch-ac        Sat Feb 07 23:23:53 2009 +0000
@@ -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 -r 039f129734b6 -r 0bd2fac5ef67 games/teg/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/teg/patches/patch-ad        Sat Feb 07 23:23:53 2009 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index