pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/abuse Make build with gcc3. Patches gleaned from...
details: https://anonhg.NetBSD.org/pkgsrc/rev/04f740bc1c6f
branches: trunk
changeset: 477895:04f740bc1c6f
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Jul 11 00:11:26 2004 +0000
description:
Make build with gcc3. Patches gleaned from abuse-sdl project.
Use CXX instead of CC for linking c++ code.
diffstat:
games/abuse/distinfo | 6 ++++--
games/abuse/patches/patch-ab | 17 +++++++++++++----
games/abuse/patches/patch-am | 22 ++++++++++++++++++++++
games/abuse/patches/patch-an | 13 +++++++++++++
4 files changed, 52 insertions(+), 6 deletions(-)
diffs (99 lines):
diff -r b1ea2decb923 -r 04f740bc1c6f games/abuse/distinfo
--- a/games/abuse/distinfo Sat Jul 10 23:45:59 2004 +0000
+++ b/games/abuse/distinfo Sun Jul 11 00:11:26 2004 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.4 2002/07/16 14:26:20 agc Exp $
+$NetBSD: distinfo,v 1.5 2004/07/11 00:11:26 wiz Exp $
SHA1 (abuse_pd.tgz) = 52a703abea31d6f00937d4cc0160af7a454e6630
Size (abuse_pd.tgz) = 2525552 bytes
SHA1 (abuse_data.tar.gz) = 2e7fad6b866fbbc8f34e3ac68cf2689c91596e48
Size (abuse_data.tar.gz) = 1593160 bytes
SHA1 (patch-aa) = 971c7d24af2388a0c6ab12636a209bd8f3282ae1
-SHA1 (patch-ab) = 09461b393ca4956e3f582a853465368e0a965861
+SHA1 (patch-ab) = a0128146a6a4129c7f5c4ae6193dd72a601660a9
SHA1 (patch-ac) = b30031db9a89d7bf7c025674e549b08d637a89ff
SHA1 (patch-ad) = 9003fe5ddd04be69c1d40b96ba995f453429ccb8
SHA1 (patch-ae) = 3720352c2b73ed62e943d3c271a8e6c1f7f896d1
@@ -16,3 +16,5 @@
SHA1 (patch-aj) = e23fb30a64303de78ba708ce1d35adbdd6bd01ee
SHA1 (patch-ak) = 93b3a07045bd00e3f4e0515526513fd057a0b048
SHA1 (patch-al) = 657bb4544d5cabd8df3c2af1943bc72a855566f3
+SHA1 (patch-am) = 6520c422349f3c0d2bad4d861dc391abda734ae2
+SHA1 (patch-an) = 35c22e102679e7fa6742762a4acc1a33c877be8d
diff -r b1ea2decb923 -r 04f740bc1c6f games/abuse/patches/patch-ab
--- a/games/abuse/patches/patch-ab Sat Jul 10 23:45:59 2004 +0000
+++ b/games/abuse/patches/patch-ab Sun Jul 11 00:11:26 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.2 2001/07/02 15:30:59 abs Exp $
+$NetBSD: patch-ab,v 1.3 2004/07/11 00:11:26 wiz Exp $
---- abuse/Makefile.in.orig Wed Jul 9 08:55:21 1997
+--- abuse/Makefile.in.orig 1997-07-09 09:55:21.000000000 +0200
+++ abuse/Makefile.in
-@@ -37,10 +37,10 @@
+@@ -37,10 +37,10 @@ AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
@@ -17,7 +17,16 @@
transform = @program_transform_name@
NORMAL_INSTALL = true
-@@ -239,11 +239,11 @@
+@@ -170,7 +170,7 @@ abuse_x11R6_LDFLAGS =
+ SCRIPTS = $(bin_SCRIPTS)
+
+ CFLAGS = @CFLAGS@
+-LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
++LINK = $(CXX) $(CFLAGS) $(LDFLAGS) -o $@
+ DATA = $(pkgdata_DATA)
+
+ DIST_COMMON = Makefile.am Makefile.in abuse.in acinclude.m4 aclocal.m4 \
+@@ -239,11 +239,11 @@ maintainer-clean-pkglibPROGRAMS:
install-pkglibPROGRAMS: $(pkglib_PROGRAMS)
@$(NORMAL_INSTALL)
diff -r b1ea2decb923 -r 04f740bc1c6f games/abuse/patches/patch-am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/abuse/patches/patch-am Sun Jul 11 00:11:26 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-am,v 1.1 2004/07/11 00:11:26 wiz Exp $
+
+--- abuse/src/gamma.c.orig 1996-04-14 22:14:21.000000000 +0200
++++ abuse/src/gamma.c
+@@ -136,12 +136,11 @@ void gamma_correct(palette *&pal, int fo
+ pal=new palette;
+ for (int i=0;i<256;i++)
+ {
+- double r,g,b;
+- uchar or,og,ob;
+- old_pal->get(i,or,og,ob);
+- pal->set(i,(int)(pow(or/255.0,gamma)*255),
+- (int)(pow(og/255.0,gamma)*255),
+- (int)(pow(ob/255.0,gamma)*255));
++ uchar oldr,oldg,oldb;
++ old_pal->get(i,oldr,oldg,oldb);
++ pal->set(i,(int)(pow(oldr/255.0,gamma)*255),
++ (int)(pow(oldg/255.0,gamma)*255),
++ (int)(pow(oldb/255.0,gamma)*255));
+ }
+
+ pal->load();
diff -r b1ea2decb923 -r 04f740bc1c6f games/abuse/patches/patch-an
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/abuse/patches/patch-an Sun Jul 11 00:11:26 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-an,v 1.1 2004/07/11 00:11:26 wiz Exp $
+
+--- abuse/src/ant.c.orig 1996-04-12 02:12:14.000000000 +0200
++++ abuse/src/ant.c
+@@ -234,7 +234,7 @@ void *ant_ai()
+ {
+ o->set_state(stopped);
+ o->set_aistate(ANT_RUNNING);
+- return ant_ai;
++ return (void *)ant_ai;
+ }
+ }
+ } break;
Home |
Main Index |
Thread Index |
Old Index