From bce574d114c93cde459c12be0b23ba4ed4b71830 Mon Sep 17 00:00:00 2001 From: snj Date: Sat, 17 Apr 2004 20:40:45 +0000 Subject: Convert to buildlink3. While here, fix build with gcc3. --- games/battleball/Makefile | 6 +++--- games/battleball/distinfo | 4 +++- games/battleball/patches/patch-ac | 16 ++++++++++++++++ games/battleball/patches/patch-ad | 12 ++++++++++++ 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 games/battleball/patches/patch-ac create mode 100644 games/battleball/patches/patch-ad (limited to 'games/battleball') diff --git a/games/battleball/Makefile b/games/battleball/Makefile index 943e0bc3d09..5207d154c32 100644 --- a/games/battleball/Makefile +++ b/games/battleball/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2004/01/20 12:15:39 agc Exp $ +# $NetBSD: Makefile,v 1.14 2004/04/17 20:40:45 snj Exp $ DISTNAME= battleball.21.src PKGNAME= battleball-2.1 @@ -11,7 +11,7 @@ HOMEPAGE= http://www.cs.utexas.edu/users/pahardin/bb.html COMMENT= 3d game of soccer, with tanks WRKSRC= ${WRKDIR}/battleball-2.1-src -USE_BUILDLINK2= YES +USE_BUILDLINK3= YES USE_X11= YES USE_GCC_SHLIB= YES @@ -27,7 +27,7 @@ do-install: .include "../../mk/bsd.prefs.mk" .if defined(BATTLEBALL_USE_MESA) -.include "../../graphics/MesaLib/buildlink2.mk" +.include "../../graphics/MesaLib/buildlink3.mk" .else CPPFLAGS+= -DNO_OPENGL SED_CMDS+= -e '/^GLINCS/s|^|\#|' -e '/^GLLIBS/s|^|\#|' diff --git a/games/battleball/distinfo b/games/battleball/distinfo index 6426b54c89f..5823ba43839 100644 --- a/games/battleball/distinfo +++ b/games/battleball/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.3 2002/10/20 12:59:07 wiz Exp $ +$NetBSD: distinfo,v 1.4 2004/04/17 20:40:45 snj Exp $ SHA1 (battleball.21.src.tar.gz) = 5bc651d513d378d449c117488ef54af5f3381072 Size (battleball.21.src.tar.gz) = 102001 bytes SHA1 (patch-aa) = 96728a9548fb46fcc84e75ed57a074613a1e81d2 SHA1 (patch-ab) = 477a8860a8f65a10b163846f184c39e7916712ff +SHA1 (patch-ac) = 2c192f32eb0d732ad88d934e68321ee21a90ae4f +SHA1 (patch-ad) = 6257ea75af46d4ff29e9c4f1532470c3808c78fa diff --git a/games/battleball/patches/patch-ac b/games/battleball/patches/patch-ac new file mode 100644 index 00000000000..c52a25bca7e --- /dev/null +++ b/games/battleball/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.3 2004/04/17 20:40:45 snj Exp $ + +--- lib3d/general.h.orig 2004-04-17 13:31:57.000000000 -0700 ++++ lib3d/general.h 2004-04-17 13:33:01.000000000 -0700 +@@ -25,9 +25,11 @@ typedef unsigned char uchar; + typedef unsigned int uint; + typedef unsigned long ulong; + ++#if defined(__GNUC__) && __GNUC__ < 3 + #define and && + #define or || + #define not ! ++#endif + + #define forii(limit) for (int i= 0; i