diff options
author | danfe <danfe@FreeBSD.org> | 2005-12-27 22:10:18 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2005-12-27 22:10:18 +0800 |
commit | 177c509437cf691e51f589e4e776c1a71877bba5 (patch) | |
tree | 9653cc1b9a00a2a0c9ab7a703fd91f6faeb75eba /games/cake/files | |
parent | 02457250e055910e3b21b58211776b96d250e554 (diff) | |
download | freebsd-ports-gnome-177c509437cf691e51f589e4e776c1a71877bba5.tar.gz freebsd-ports-gnome-177c509437cf691e51f589e4e776c1a71877bba5.tar.zst freebsd-ports-gnome-177c509437cf691e51f589e4e776c1a71877bba5.zip |
Update to 2005.12.26, which incorporates some of our patches.
Diffstat (limited to 'games/cake/files')
-rw-r--r-- | games/cake/files/patch-Makefile | 26 | ||||
-rw-r--r-- | games/cake/files/patch-cake::files.cpp | 18 | ||||
-rw-r--r-- | games/cake/files/patch-cake::files.h | 22 | ||||
-rw-r--r-- | games/cake/files/patch-cake::sound.cpp | 242 |
4 files changed, 3 insertions, 305 deletions
diff --git a/games/cake/files/patch-Makefile b/games/cake/files/patch-Makefile index 1433f8646444..020889de38f9 100644 --- a/games/cake/files/patch-Makefile +++ b/games/cake/files/patch-Makefile @@ -1,11 +1,11 @@ --- Makefile.orig Wed Jul 16 19:13:06 2003 +++ Makefile Fri Jul 16 18:03:40 2004 @@ -1,10 +1,11 @@ --INCLUDES = -I/usr/include -I/usr/local/include --CC = g++ +-INCLUDES = -I/usr/include -I/usr/local/include -I/usr/X11R6/include +-CXX = g++ -CXXFLAGS += -g -Wall -W -O2 $(INCLUDES) - --LDFLAGS += -L/usr/lib -lglut -lGLU -lGL -L/usr/X11R6/lib -lm -ldl +-LDFLAGS += -L/usr/lib -L/usr/local/lib -lglut -lGLU -lGL -L/usr/X11R6/lib -lm -ldl -LDFLAGS += -lpthread -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -LDFLAGS += -lcurses -ljpeg -lz -lfmod-3.63 +INCLUDES = -I/usr/include -I$(LOCALBASE)/include -I$(X11BASE)/include @@ -19,23 +19,3 @@ EXE = main SRC_FILES = $(wildcard cake/*.cpp cake/glsetup/*.cpp cake/zip/*.cpp) main.cpp -@@ -14,16 +15,16 @@ - VPATH = ./ - - %.cpp%.o: -- $(CC) -c $(CXXFLAGS) -o $@ $< -+ $(CXX) -c $(CXXFLAGS) -o $@ $< - - $(EXE): $(OBJECTS) -- g++ -o $@ $(OBJECTS) $(LDFLAGS) -+ $(CXX) -o $@ $(OBJECTS) $(LDFLAGS) - - clean: - rm -f $(EXE) $(OBJECTS) $(DEPEND) - - $(DEPEND): -- $(CC) -MM $(CXXFLAGS) $(SRC_FILES) > $@ -+ $(CXX) -MM $(CXXFLAGS) $(SRC_FILES) > $@ - - include $(DEPEND) - diff --git a/games/cake/files/patch-cake::files.cpp b/games/cake/files/patch-cake::files.cpp deleted file mode 100644 index 4140e1e50437..000000000000 --- a/games/cake/files/patch-cake::files.cpp +++ /dev/null @@ -1,18 +0,0 @@ ---- cake/files.cpp.orig Sat Jul 17 20:36:55 2004 -+++ cake/files.cpp Sat Jul 17 20:40:54 2004 -@@ -772,7 +772,6 @@ - - if (handle == NULL) - { -- closedir(handle); - gConsole->Insertln("^1handle == NULL: %d - %s", errno, strerror(errno)); - if (temp_pat) delete [] temp_pat; - temp_pat = NULL; -@@ -860,7 +859,6 @@ - - if (handle == NULL) - { -- closedir(handle); - gConsole->Insertln("^1handle == NULL: %d - %s", errno, strerror(errno)); - if (temp_pat) delete [] temp_pat; - temp_pat = NULL; diff --git a/games/cake/files/patch-cake::files.h b/games/cake/files/patch-cake::files.h deleted file mode 100644 index 25a0301f69b3..000000000000 --- a/games/cake/files/patch-cake::files.h +++ /dev/null @@ -1,22 +0,0 @@ ---- cake/files.h.orig Sat Jul 17 00:32:30 2004 -+++ cake/files.h Sat Jul 17 00:26:42 2004 -@@ -13,6 +13,7 @@ - #include <io.h> - #else - #include <dirent.h> -+ #include <time.h> - - /** - * Following stuff was taken from io.h -@@ -20,11 +21,6 @@ - #ifndef _FSIZE_T_DEFINED - typedef unsigned long _fsize_t; /**< Could be 64 bits for Win32 */ - #define _FSIZE_T_DEFINED -- #endif -- -- #ifndef _TIME_T_DEFINED -- typedef long time_t; /**< time value */ -- #define _TIME_T_DEFINED /**< avoid multiple def's of time_t */ - #endif - - struct _finddata_t diff --git a/games/cake/files/patch-cake::sound.cpp b/games/cake/files/patch-cake::sound.cpp deleted file mode 100644 index 41828ba76efb..000000000000 --- a/games/cake/files/patch-cake::sound.cpp +++ /dev/null @@ -1,242 +0,0 @@ ---- cake/sound.cpp.orig Fri Jul 16 22:11:47 2004 -+++ cake/sound.cpp Sat Jul 17 00:31:09 2004 -@@ -1,8 +1,9 @@ -+#include "sound.h" -+ -+#if ENABLE_SOUND - #define FMOD_DYN_IMPL - #define FMOD_DYN_NOASSERT - --#include "sound.h" -- - #include "cake.h" - #include "vars.h" - #include "commands.h" -@@ -136,12 +137,13 @@ - gConsole->Insertln("usage: %s <value>", argv[0]); - } - } -+#endif - - bool initSoundSystem(void) - { - #if !ENABLE_SOUND - return false; -- #endif -+ #else - - int i; - -@@ -249,13 +251,14 @@ - return false; - } - } -+ #endif - } - - void shutdownSoundSystem(void) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - freeBGMusic(); - freeSound(); -@@ -271,13 +274,14 @@ - gCommands->RemoveCommand("snd_distancefactor"); - gVars->UnregisterVar(snd_mindistance); - gVars->UnregisterVar(snd_maxdistance); -+ #endif - } - - void setBGMusic(const char* filename, bool start_paused) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - freeBGMusic(); - -@@ -409,13 +413,14 @@ - FSOUND_SetVolume(bgmusic[0].channel, musicvolume); - if (!start_paused) FSOUND_SetPaused(bgmusic[0].channel, FALSE); - } -+ #endif - } - - void toggleBGMusicPause(void) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - for (int i = 0; i < BGMUSIC_CHANNELS; ++i) - { -@@ -427,13 +432,14 @@ - FSOUND_SetPaused(bgmusic[i].channel, TRUE); - } - } -+ #endif - } - - void playSound(int num, float x, float y, float z, bool stop_if_playing) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - if (num < 0 || num >= SOUND_CHANNELS) return; - if (!sounds[num].sample || sounds[num].free) return; -@@ -441,13 +447,14 @@ - vec3_t pos; - VectorSet(pos, x, y, z); - playSound(num, pos, stop_if_playing); -+ #endif - } - - void playSound(int num, vec3_t location, bool stop_if_playing) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - if (num < 0 || num >= SOUND_CHANNELS) return; - if (!sounds[num].sample || sounds[num].free) return; -@@ -472,26 +479,28 @@ - } - - FSOUND_SetVolume(sounds[num].channel, soundvolume); -+ #endif - } - - int loadSound(const char *filename, float x, float y, float z, bool loop, bool start_playing, bool start_paused) - { - #if !ENABLE_SOUND - return -1; -- #endif -+ #else - - if (!filename || !strlen(filename)) return -1; - - vec3_t pos; - VectorSet(pos, x, y, z); - return loadSound(filename, pos, loop, start_playing, start_paused); -+ #endif - } - - int loadSound(const char *filename, vec3_t location, bool loop, bool start_playing, bool start_paused) - { - #if !ENABLE_SOUND - return -1; -- #endif -+ #else - - if (!filename || !strlen(filename)) return -1; - -@@ -594,13 +603,14 @@ - } - - return freesound; -+ #endif - } - - int load3DSound(const char *filename, vec3_t location, bool loop, bool start_playing, bool start_paused) - { - #if !ENABLE_SOUND - return -1; -- #endif -+ #else - - if (!filename || !strlen(filename)) return -1; - -@@ -608,13 +618,14 @@ - if (!location) VectorClear(pos); - else VectorCopy(location, pos); - return loadSound(filename, pos, loop, start_playing, start_paused); -+ #endif - } - - void toggleSoundPause(int num) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - if (num < 0 || num >= SOUND_CHANNELS) - { -@@ -630,13 +641,14 @@ - FSOUND_SetPaused(sounds[num].channel, TRUE); - } - } -+ #endif - } - - void SoundUpdate(vec3_t position, vec3_t forward) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - // update background music - if (playing_intro) -@@ -675,13 +687,14 @@ - - FSOUND_3D_Listener_SetAttributes(pos, NULL, forward[0], forward[2], forward[1], 0, 1, 0); - FSOUND_Update(); -+ #endif - } - - void freeBGMusic(int num) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - if (num < 0 || num >= BGMUSIC_CHANNELS) - { -@@ -710,13 +723,14 @@ - bgmusic[num].free = true; - } - } -+ #endif - } - - void freeSound(int num) - { - #if !ENABLE_SOUND - return; -- #endif -+ #else - - if (num < 0 || num >= SOUND_CHANNELS) - { -@@ -745,13 +759,14 @@ - sounds[num].free = true; - } - } -+ #endif - } - - const char* GetSoundErrorString(int errnum) - { - #if !ENABLE_SOUND - return NULL; -- #endif -+ #else - - switch (errnum) - { -@@ -777,4 +792,5 @@ - case FMOD_ERR_NONE: - default: return "^1No errors"; - } -+ #endif - } |