diff options
author | 2003-09-10 05:27:31 +0000 | |
---|---|---|
committer | 2003-09-10 05:27:31 +0000 | |
commit | 0c0186e57f9c188f3c71c04a35825c8e134cf141 (patch) | |
tree | 764612f703bdba5335d790064606b1f53a330c24 /games-strategy/freecnc/files | |
parent | minor version update. resolves bug 27641 (diff) | |
download | gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.tar.gz gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.tar.bz2 gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.zip |
mmm strategy games
Diffstat (limited to 'games-strategy/freecnc/files')
9 files changed, 226 insertions, 0 deletions
diff --git a/games-strategy/freecnc/files/0.2.0-gentoo-paths.patch b/games-strategy/freecnc/files/0.2.0-gentoo-paths.patch new file mode 100644 index 000000000000..bfaa03d0cd14 --- /dev/null +++ b/games-strategy/freecnc/files/0.2.0-gentoo-paths.patch @@ -0,0 +1,29 @@ +--- src/freecnc.cpp.orig 2003-07-31 21:17:53.000000000 -0400 ++++ src/freecnc.cpp 2003-07-31 21:18:07.000000000 -0400 +@@ -42,7 +42,7 @@ + exit(1); + } + // default to only showing errors on stdout +- logger = new Logger("freecnc.log",0); ++ logger = new Logger("GENTOO_LOGDIR/freecnc.log",0); + #if !defined _WIN32 + // maybe some win32 specific checks for running as the Administrator + // account or something +--- src/vfs/vfs.cpp.orig 2003-07-31 21:50:05.000000000 -0400 ++++ src/vfs/vfs.cpp 2002-07-29 08:59:44.000000000 -0400 +@@ -32,10 +32,13 @@ + + externals = new ExternalFiles(); + +- externals->loadArchive("conf/"); ++ sprintf(tempstr, "%s/.freecnc/", getenv("HOME")); ++ externals->loadArchive(tempstr); ++ externals->loadArchive("GENTOO_CONFDIR"); + #if !defined WIN32 + +- externals->loadArchive("/etc/freecnc/"); ++ externals->loadArchive("GENTOO_DATADIR/conf/"); ++ externals->loadArchive("GENTOO_DATADIR/"); + #endif + + try { diff --git a/games-strategy/freecnc/files/0.2.0-makefile-cflags.patch b/games-strategy/freecnc/files/0.2.0-makefile-cflags.patch new file mode 100644 index 000000000000..fd80e34c64f6 --- /dev/null +++ b/games-strategy/freecnc/files/0.2.0-makefile-cflags.patch @@ -0,0 +1,94 @@ +diff -ur freecnc++.orig/src/Makefile freecnc++/src/Makefile +--- freecnc++.orig/src/Makefile 2002-07-29 08:59:44.000000000 -0400 ++++ freecnc++/src/Makefile 2003-07-31 20:43:21.000000000 -0400 +@@ -26,12 +26,11 @@ + + #EFENCE = -lefence + +-CFLAGS = $(DEBUG_FLAGS) -Werror -Wall -I./include `sdl-config --cflags` ++CFLAGS = -Wall -I./include `sdl-config --cflags` $(EXTRACFLAGS) + LIBS = -lSDL_net + + # comment this out if your compiler isn't ANSI + # needed on OSX and some gcc systems. +-CFLAGS += -ansi -pedantic + + # uncomment these lines if compiling on OSX + #CFLAGS += -DDARWIN -D_WITHOUT_STRCASECMP +diff -ur freecnc++.orig/src/vfs/vfs_mix/Makefile freecnc++/src/vfs/vfs_mix/Makefile +--- freecnc++.orig/src/vfs/vfs_mix/Makefile 2002-07-29 08:59:44.000000000 -0400 ++++ freecnc++/src/vfs/vfs_mix/Makefile 2003-07-31 20:42:58.000000000 -0400 +@@ -8,8 +8,7 @@ + #DEBUG_FLAGS += -D_DEBUG -DSTRICT_DEBUG + #LDFLAGS += ../../misc/memtrack.o + +-CFLAGS = $(DEBUG_FLAGS) -Werror -Wall -I.. -I../../include `sdl-config --cflags` +-CFLAGS += -ansi -pedantic ++CFLAGS = -Wall -I.. -I../../include `sdl-config --cflags` $(EXTRACFLAGS) + # uncomment these lines if compiling on OSX + #CFLAGS += -D_WITHOUT_STRCASECMP + #LDFLAGS += -bundle -flat_namespace -undefined suppress +diff -ur freecnc++.orig/src/vfs/vfs_tgz/Makefile freecnc++/src/vfs/vfs_tgz/Makefile +--- freecnc++.orig/src/vfs/vfs_tgz/Makefile 2002-07-29 08:59:45.000000000 -0400 ++++ freecnc++/src/vfs/vfs_tgz/Makefile 2003-07-31 20:43:08.000000000 -0400 +@@ -8,8 +8,7 @@ + #DEBUG_FLAGS += -D_DEBUG -DSTRICT_DEBUG + #LDFLAGS += ../../misc/memtrack.o + +-CFLAGS = $(DEBUG_FLAGS) -Werror -Wall -I.. -I../../include `sdl-config --cflags` +-CFLAGS += -ansi -pedantic ++CFLAGS = -Wall -I.. -I../../include `sdl-config --cflags` $(EXTRACFLAGS) + # uncomment these lines if compiling on OSX + #CFLAGS += -D_WITHOUT_STRCASECMP + #LDFLAGS += -bundle -flat_namespace -undefined suppress +diff -ur freecnc++.orig/tools/audplay/Makefile freecnc++/tools/audplay/Makefile +--- freecnc++.orig/tools/audplay/Makefile 2002-07-20 09:20:15.000000000 -0400 ++++ freecnc++/tools/audplay/Makefile 2003-07-31 20:42:05.000000000 -0400 +@@ -9,10 +9,9 @@ + LOCALOBJS = $(LOCALSRC:.cpp=.o) + OBJECTS = $(SRC:.cpp=.o) + +-CFLAGS = -g -Werror -Wall -I. -I../../src/include `sdl-config --cflags` ++CFLAGS = -Wall -I. -I../../src/include `sdl-config --cflags` $(EXTRACFLAGS) + + #if your compiler is really broken and doesn't understand ANSI, comment this out +-CFLAGS += -ansi -pedantic + + #if your compiler is partially broken and allows the use of str(n)casecmp + #even when compiling with -ansi -pedantic (it shouldn't), uncomment this: +diff -ur freecnc++.orig/tools/mixshell/Makefile freecnc++/tools/mixshell/Makefile +--- freecnc++.orig/tools/mixshell/Makefile 2002-07-20 09:20:15.000000000 -0400 ++++ freecnc++/tools/mixshell/Makefile 2003-07-31 20:42:18.000000000 -0400 +@@ -10,4 +10,4 @@ + + .SUFFIXES: .cpp .o + .cpp.o: +- g++ -Wall -c $< `sdl-config --cflags` ++ g++ -Wall -c $< `sdl-config --cflags` $(EXTRACFLAGS) +diff -ur freecnc++.orig/tools/shpview/Makefile freecnc++/tools/shpview/Makefile +--- freecnc++.orig/tools/shpview/Makefile 2002-07-20 09:20:15.000000000 -0400 ++++ freecnc++/tools/shpview/Makefile 2003-07-31 20:42:30.000000000 -0400 +@@ -9,10 +9,9 @@ + LOCALOBJS = $(LOCALSRC:.cpp=.o) + OBJECTS = $(SRC:.cpp=.o) + +-CFLAGS = -g -Werror -Wall -I. -I../../src/include `sdl-config --cflags` ++CFLAGS = -Wall -I. -I../../src/include `sdl-config --cflags` $(EXTRACFLAGS) + + #if your compiler is really broken and doesn't understand ANSI, comment this out +-CFLAGS += -ansi -pedantic + + #if your compiler is partially broken and allows the use of str(n)casecmp + #even when compiling with -ansi -pedantic (it shouldn't), uncomment this: +diff -ur freecnc++.orig/tools/tmpinied/Makefile freecnc++/tools/tmpinied/Makefile +--- freecnc++.orig/tools/tmpinied/Makefile 2002-07-20 09:20:15.000000000 -0400 ++++ freecnc++/tools/tmpinied/Makefile 2003-07-31 20:42:41.000000000 -0400 +@@ -7,7 +7,7 @@ + + OBJECTS = $(SRC:.cpp=.o) + +-CFLAGS = -g -Wall -I../../src/include `sdl-config --cflags` ++CFLAGS = -Wall -I../../src/include `sdl-config --cflags` $(EXTRACFLAGS) + + all: $(OBJECTS) + g++ -o tmpinied -g `sdl-config --libs` $(OBJECTS) diff --git a/games-strategy/freecnc/files/0.2.0-remove-root.patch b/games-strategy/freecnc/files/0.2.0-remove-root.patch new file mode 100644 index 000000000000..b65d56c646c2 --- /dev/null +++ b/games-strategy/freecnc/files/0.2.0-remove-root.patch @@ -0,0 +1,18 @@ +--- src/freecnc.cpp.orig 2003-07-31 21:14:06.000000000 -0400 ++++ src/freecnc.cpp 2003-07-31 21:14:28.000000000 -0400 +@@ -46,6 +46,7 @@ + #if !defined _WIN32 + // maybe some win32 specific checks for running as the Administrator + // account or something ++/* + if (getuid() == 0) { + fprintf(stderr,"WARNING WARNING WARNING WARNING!\n" + "\tYOU ARE RUNNING FREECNC AS ROOT.\n" +@@ -58,6 +59,7 @@ + "PLEASE DO NOT DO SO, ROOT PRIVILEGES ARE NOT NEEDED.\n"); + exit(1); + } ++*/ + #endif + args = new Args(); + /* VFS will exit(1) here if and only if it can not find files.ini. */ diff --git a/games-strategy/freecnc/files/0.2.1.31072003-gentoo-paths.patch b/games-strategy/freecnc/files/0.2.1.31072003-gentoo-paths.patch new file mode 100644 index 000000000000..b134072c04d8 --- /dev/null +++ b/games-strategy/freecnc/files/0.2.1.31072003-gentoo-paths.patch @@ -0,0 +1,41 @@ +--- src/freecnc.cpp.orig 2003-07-31 22:53:04.000000000 -0400 ++++ src/freecnc.cpp 2003-07-31 22:54:06.000000000 -0400 +@@ -79,8 +79,8 @@ + #endif + args = new Args(); + binpath = determineBinaryLocation(argv[0]); +- lf = new char[strlen(binpath)+strlen("freecnc.log")+2]; +- sprintf(lf, "freecnc.log"); ++ lf = new char[strlen("GENTOO_LOGDIR")+strlen("freecnc.log")+2]; ++ sprintf(lf, "GENTOO_LOGDIR/freecnc.log"); + VFS_PreInit(binpath); + // Log level is so that only errors are shown on stdout by default + logger = new Logger(lf,0); +--- src/vfs/vfs.cpp.orig 2003-07-31 22:53:14.000000000 -0400 ++++ src/vfs/vfs.cpp 2003-07-31 22:55:02.000000000 -0400 +@@ -52,7 +52,11 @@ + #if defined _WIN32 + #elif defined(macintosh) + #else +- externals->loadArchive("/etc/freecnc/"); ++ char f[1024];sprintf(f, "%s/.freecnc/", getenv("HOME")); ++ externals->loadArchive(f); ++ externals->loadArchive("GENTOO_CONFDIR"); ++ externals->loadArchive("GENTOO_DATADIR/conf/"); ++ externals->loadArchive("GENTOO_DATADIR/"); + #endif + + try { +--- tools/audplay/audplay.cpp.orig 2003-07-31 22:57:04.000000000 -0400 ++++ tools/audplay/audplay.cpp 2003-07-31 22:57:20.000000000 -0400 +@@ -35,8 +35,8 @@ + exit(1); + } + binpath = determineBinaryLocation(argv[0]); +- lf = new char[strlen(binpath)+strlen("audplay.log")+2]; +- sprintf(lf, "%s/audplay.log", binpath); ++ lf = new char[strlen("GENTOO_LOGDIR")+strlen("audplay.log")+2]; ++ sprintf(lf, "GENTOO_LOGDIR/audplay.log", binpath); + VFS_PreInit(binpath); + logger = new Logger(lf,0); + delete[] lf; diff --git a/games-strategy/freecnc/files/0.2.1.31072003-makefile-cflags.patch b/games-strategy/freecnc/files/0.2.1.31072003-makefile-cflags.patch new file mode 100644 index 000000000000..6ca3ead15d6b --- /dev/null +++ b/games-strategy/freecnc/files/0.2.1.31072003-makefile-cflags.patch @@ -0,0 +1,17 @@ +--- Makefile.orig 2003-07-31 22:49:19.000000000 -0400 ++++ Makefile 2003-07-31 22:50:10.000000000 -0400 +@@ -9,13 +9,10 @@ + # + linux: + + $(MAKE) -j2 -C src freecnc-bin \ +- "EXTRACFLAGS = -ansi -pedantic -Werror" \ + "LIBS = -lSDL_net" + + $(MAKE) -j2 -C src plugins \ +- "EXTRACFLAGS = -ansi -pedantic -fPIC -Werror" \ + "LDFLAGS = -shared" +- + $(MAKE) -j2 -C tools \ +- "EXTRACFLAGS = -ansi -pedantic" ++ + $(MAKE) -j2 -C tools + + linux-nonet: + + $(MAKE) -j2 -C src freecnc-bin \ diff --git a/games-strategy/freecnc/files/0.2.1.31072003-remove-root.patch b/games-strategy/freecnc/files/0.2.1.31072003-remove-root.patch new file mode 100644 index 000000000000..890d5f47ac63 --- /dev/null +++ b/games-strategy/freecnc/files/0.2.1.31072003-remove-root.patch @@ -0,0 +1,18 @@ +--- src/freecnc.cpp.orig 2003-07-31 22:51:34.000000000 -0400 ++++ src/freecnc.cpp 2003-07-31 22:51:45.000000000 -0400 +@@ -62,6 +62,7 @@ + #elif defined(__BEOS__) + // BeOS runs everything as root + #else ++/* + if (getuid() == 0) { + fprintf(stderr,"WARNING WARNING WARNING WARNING!\n" + "\tYOU ARE RUNNING FREECNC AS ROOT.\n" +@@ -74,6 +75,7 @@ + "PLEASE DO NOT DO SO, ROOT PRIVILEGES ARE NOT NEEDED.\n"); + exit(1); + } ++*/ + #endif + args = new Args(); + binpath = determineBinaryLocation(argv[0]); diff --git a/games-strategy/freecnc/files/digest-freecnc-0.2.0 b/games-strategy/freecnc/files/digest-freecnc-0.2.0 new file mode 100644 index 000000000000..b96e2cca1aa2 --- /dev/null +++ b/games-strategy/freecnc/files/digest-freecnc-0.2.0 @@ -0,0 +1,3 @@ +MD5 9d43ea387f370b8108e7a870a82017d5 freecnc++-0.2.0-src.tar.bz2 264419 +MD5 7d770d38618e20796fbe642037f08de5 cc1demo1.zip 9367945 +MD5 bbe489d259c4e6d6cadb4a2544b764aa cc1demo2.zip 17797920 diff --git a/games-strategy/freecnc/files/digest-freecnc-0.2.1.31072003 b/games-strategy/freecnc/files/digest-freecnc-0.2.1.31072003 new file mode 100644 index 000000000000..f3b071e5d57b --- /dev/null +++ b/games-strategy/freecnc/files/digest-freecnc-0.2.1.31072003 @@ -0,0 +1,3 @@ +MD5 3179192e8e6efc5672b940d1bcda424d freecnc++-0.2.1.31072003-src.tar.bz2 271980 +MD5 7d770d38618e20796fbe642037f08de5 cc1demo1.zip 9367945 +MD5 bbe489d259c4e6d6cadb4a2544b764aa cc1demo2.zip 17797920 diff --git a/games-strategy/freecnc/files/freecnc b/games-strategy/freecnc/files/freecnc new file mode 100644 index 000000000000..5cbf438349b8 --- /dev/null +++ b/games-strategy/freecnc/files/freecnc @@ -0,0 +1,3 @@ +#!/bin/sh +cd GENTOO_DIR +exec ./freecnc "$@" |