Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/games In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10870/10.4-transitional/unstable/main/finkinfo/games
Modified Files: warp.info warp.patch Log Message: backport compile cleanups Index: warp.patch =================================================================== RCS file: /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/games/warp.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- warp.patch 24 Jan 2006 02:31:56 -0000 1.1 +++ warp.patch 7 Apr 2006 02:12:07 -0000 1.2 @@ -1,6 +1,28 @@ +diff -Nurd -x'*~' warp7.orig/score.c warp7/score.c +--- warp7.orig/score.c 2001-05-26 22:19:35.000000000 -0400 ++++ warp7/score.c 2006-04-06 21:48:01.000000000 -0400 +@@ -24,6 +24,7 @@ + #include "weapon.h" + #include "INTERN.h" + #include "score.h" ++#include <unistd.h> + + void + score_init() +diff -Nurd -x'*~' warp7.orig/sm.c warp7/sm.c +--- warp7.orig/sm.c 1998-11-04 13:09:23.000000000 -0500 ++++ warp7/sm.c 2006-04-06 21:52:46.000000000 -0400 +@@ -9,6 +9,7 @@ + #include <stdio.h> + #include <ctype.h> + #include "config.h" ++#include <stdlib.h> + + main() + { diff -Nurd -x'*~' warp7.orig/term.h warp7/term.h --- warp7.orig/term.h 2001-05-27 14:30:05.000000000 -0400 -+++ warp7/term.h 2006-01-09 22:42:04.000000000 -0500 ++++ warp7/term.h 2006-04-06 21:34:42.000000000 -0400 @@ -115,7 +115,7 @@ # endif /* lint */ # else /* RDCHK */ @@ -37,10 +59,84 @@ # define read_tty(addr,size) read(0,addr,size) # define input_pending() (FALSE) # endif /* PENDING */ +diff -Nurd -x'*~' warp7.orig/util.c warp7/util.c +--- warp7.orig/util.c 1998-11-04 13:09:09.000000000 -0500 ++++ warp7/util.c 2006-04-06 21:57:18.000000000 -0400 +@@ -20,6 +20,7 @@ + #include "term.h" + #include "INTERN.h" + #include "util.h" ++#include <stdlib.h> + + void + util_init() +@@ -97,7 +98,6 @@ + MEM_SIZE size; + { + char *ptr; +- char *malloc(); + + ptr = malloc(size?size:1); /* malloc(0) is NASTY on our system */ + if (ptr != Nullch) +diff -Nurd -x'*~' warp7.orig/util.h warp7/util.h +--- warp7.orig/util.h 2001-05-27 16:21:51.000000000 -0400 ++++ warp7/util.h 2006-04-06 21:49:44.000000000 -0400 +@@ -6,6 +6,8 @@ + * + */ + ++#include <stdlib.h> ++ + #if RANDBITS < 15 || defined(lint) + #define rand_mod(m) getpid() + #define RANDRAND 0.0 +@@ -15,7 +17,6 @@ + #if RANDBITS == 15 /* 15 bits of rand()? */ + #define RANDRAND 268435456.0 /* that's 2**28 */ + #define HALFRAND 0x4000 /* that's 2**14 */ +-int rand(); + #define myrand() (rand()&32767) + #define rand_mod(m) ((int)((double)myrand() / 32768.0 * ((double)(m)))) + /* pick number in 0..m-1 */ +@@ -25,7 +26,6 @@ + #if RANDBITS < 31 /* 16 bits of rand()? */ + #define RANDRAND 1073741824.0 /* that's 2**30 */ + #define HALFRAND 0x8000 /* that's 2**15 */ +-unsigned rand(); + #define myrand() (rand()&65535) + #define rand_mod(m) ((int)((double)myrand() / 65536.0 * ((double)(m)))) + /* pick number in 0..m-1 */ +@@ -33,7 +33,6 @@ + #else /* assume 31 bits */ + #define RANDRAND 1152921504606846976.0 /* that's 2**60 */ + #define HALFRAND 0x40000000 /* that's 2**30 */ +-long rand(); + #define myrand() rand() + #define rand_mod(m) ((myrand() / 37) % (m)) /* pick number in 0..m-1 */ + /* +diff -Nurd -x'*~' warp7.orig/version.c warp7/version.c +--- warp7.orig/version.c 1998-11-04 13:09:24.000000000 -0500 ++++ warp7/version.c 2006-04-06 21:51:51.000000000 -0400 +@@ -9,6 +9,7 @@ + #include "patchlevel.h" + #include "INTERN.h" + #include "version.h" ++#include <stdio.h> + + /* Print out the version number. */ + diff -Nurd -x'*~' warp7.orig/warp.h warp7/warp.h --- warp7.orig/warp.h 2001-05-21 21:46:36.000000000 -0400 -+++ warp7/warp.h 2006-01-09 22:37:53.000000000 -0500 -@@ -322,16 +322,8 @@ ++++ warp7/warp.h 2006-04-06 21:36:42.000000000 -0400 +@@ -22,6 +22,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <errno.h> ++#include <stdlib.h> + + /* WARPLIB must be readable and writeable by warp, but not by anyone who you + * don't trust. In other words, to set up warp so everyone can play and +@@ -322,16 +323,8 @@ /* various things of type char */ @@ -59,3 +155,12 @@ EXT char buf[LBUFLEN+1]; /* general purpose line buffer */ +@@ -454,7 +447,7 @@ + + EXT char spbuf[512]; + +-char *index(), *ttyname(), *malloc(), *ctime(), *strcpy(); ++char *index(), *ttyname(), *ctime(), *strcpy(); + char *getenv(), cmstore(), *tgoto(); + long atol(); + Index: warp.info =================================================================== RCS file: /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/games/warp.info,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- warp.info 10 Jan 2006 03:57:00 -0000 1.2 +++ warp.info 7 Apr 2006 02:12:07 -0000 1.3 @@ -1,6 +1,6 @@ Package: warp Version: 2002.03.12 -Revision: 12 +Revision: 13 Description: Classic space-war game Source: http://www.engr.usask.ca/~norume/warp/%n-%v-11.tar.gz SourceDirectory: warp7 @@ -11,6 +11,7 @@ # Depends: passwd Patch: %n.patch +PatchScript: perl -ni -e 'print unless m{\.o: /usr/include/}' MacOSX/Makefile InstallScript: << mkdir -p %i/bin mkdir -p %i/share/man/man1 @@ -32,6 +33,12 @@ DescPort: << Minor changes to use modern termios routines and to support operation on local windows (i.e. no serial port delays for timing!). + +dmacks removed the list of make dependencies on system headers because +the list appears out-of-date with respect to the sources and relies on +headers that don't exist. + +dmacks used system headers instead of local declarations. << Maintainer: Eric Norum <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits