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 | |
parent | 02457250e055910e3b21b58211776b96d250e554 (diff) | |
download | freebsd-ports-graphics-177c509437cf691e51f589e4e776c1a71877bba5.tar.gz freebsd-ports-graphics-177c509437cf691e51f589e4e776c1a71877bba5.tar.zst freebsd-ports-graphics-177c509437cf691e51f589e4e776c1a71877bba5.zip |
Update to 2005.12.26, which incorporates some of our patches.
Diffstat (limited to 'games/cake')
-rw-r--r-- | games/cake/Makefile | 2 | ||||
-rw-r--r-- | games/cake/distinfo | 6 | ||||
-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 |
6 files changed, 7 insertions, 309 deletions
diff --git a/games/cake/Makefile b/games/cake/Makefile index b1321161c45..0f90c080a71 100644 --- a/games/cake/Makefile +++ b/games/cake/Makefile @@ -6,7 +6,7 @@ # PORTNAME= cake -PORTVERSION= 2005.10.23 +PORTVERSION= 2005.12.26 CATEGORIES= games MASTER_SITES= http://www.calodox.scene.org:8080/morbac/cake/download/ \ http://freebsd.nsu.ru/distfiles/ diff --git a/games/cake/distinfo b/games/cake/distinfo index ec3b38d762a..b6109676e00 100644 --- a/games/cake/distinfo +++ b/games/cake/distinfo @@ -1,3 +1,3 @@ -MD5 (cake_src_20051023.zip) = ff0a0995ab932c94ae07420d9e54fb60 -SHA256 (cake_src_20051023.zip) = 3584eb7275ca537b2d44fbfc98d33ec7eb122f4bdd2a71cb8ee19246af4678e5 -SIZE (cake_src_20051023.zip) = 649774 +MD5 (cake_src_20051226.zip) = 9355aa8d26bc608b2ea05af0613533db +SHA256 (cake_src_20051226.zip) = 7f31d162a3a35b3c374ae18e4309b41d917fde79f033d28a2dc19734d08aff56 +SIZE (cake_src_20051226.zip) = 649781 diff --git a/games/cake/files/patch-Makefile b/games/cake/files/patch-Makefile index 1433f864644..020889de38f 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 4140e1e5043..00000000000 --- 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 25a0301f69b..00000000000 --- 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 41828ba76ef..00000000000 --- 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 - } |