diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2003-02-10 15:13:40 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2003-02-10 15:13:40 +0000 |
commit | 51c65fff8cf8b2341340d899cbc60c124b67632d (patch) | |
tree | 5e9e46757ae73c32b2ee257d9f3e3ea4c4124620 /games/uhexen/files | |
parent | Fix version number in pkg-comment (diff) |
Add uhexen 0.601, yet another port of Hexen.
Notes
Notes:
svn path=/head/; revision=75244
Diffstat (limited to 'games/uhexen/files')
-rw-r--r-- | games/uhexen/files/patch-Makefile | 59 | ||||
-rw-r--r-- | games/uhexen/files/patch-include::h2def.h | 17 | ||||
-rw-r--r-- | games/uhexen/files/patch-src::h2_main.c | 14 | ||||
-rw-r--r-- | games/uhexen/files/patch-src::i_video.c | 15 | ||||
-rw-r--r-- | games/uhexen/files/patch-src::w_wad.c | 14 |
5 files changed, 119 insertions, 0 deletions
diff --git a/games/uhexen/files/patch-Makefile b/games/uhexen/files/patch-Makefile new file mode 100644 index 000000000000..7436906e9055 --- /dev/null +++ b/games/uhexen/files/patch-Makefile @@ -0,0 +1,59 @@ + +$FreeBSD$ + +--- Makefile.orig Tue Dec 4 17:49:22 2001 ++++ Makefile Mon Feb 10 16:55:40 2003 +@@ -2,14 +2,14 @@ + + + #For FreeBSD +-#CC=gcc +-#BINARY=uhexen +-#SDL_INCLUDES=-I/usr/local/include/SDL +-#SDL_LIBS=-L/usr/local/lib ++CC?=gcc ++BINARY=uhexen ++SDL_INCLUDES=$(shell $(SDL_CONFIG) --cflags) ++SDL_LIBS=$(shell $(SDL_CONFIG) --libs) + #EXTRA_INCLUDES= + #EXTRA_LIBS=-L/usr/local/kde/lib -L/usr/local/qt/lib + #EXTRA_INCLUDES= +-#EXTRA_CFLAGS=-DUSE_SDL -DFBSD_CONSOLE -pthread ++EXTRA_CFLAGS=-DUSE_SDL -DFBSD_CONSOLE + + #For Linux + #CC=gcc +@@ -22,14 +22,14 @@ + #EXTRA_CFLAGS=-DUSE_SDL + + #For OpenBSD +-CC=gcc +-BINARY=uhexen +-SDL_INCLUDES=-I/usr/local/include/SDL +-SDL_LIBS=-L/usr/local/lib +-EXTRA_INCLUDES= +-EXTRA_LIBS=-L/usr/local/kde/lib -L/usr/local/qt/lib -L/usr/X11R6/lib +-EXTRA_INCLUDES= +-EXTRA_CFLAGS=-DUSE_SDL -pthread ++#CC=gcc ++#BINARY=uhexen ++#SDL_INCLUDES=-I/usr/local/include/SDL ++#SDL_LIBS=-L/usr/local/lib ++#EXTRA_INCLUDES= ++#EXTRA_LIBS=-L/usr/local/kde/lib -L/usr/local/qt/lib -L/usr/X11R6/lib ++#EXTRA_INCLUDES= ++#EXTRA_CFLAGS=-DUSE_SDL -pthread + + # For Windows (cross-compiler) + #CC=/usr/local/cross-tools/i386-mingw32msvc/bin/gcc +@@ -41,8 +41,8 @@ + #EXTRA_CFLAGS=-mwindows -DUSE_SDL -DMUSTDIE -Dmain=SDL_main -DHAVE_OPENGL + + +-CFLAGS=-Iinclude -O3 -fomit-frame-pointer -Wall -DNORMALUNIX $(SDL_INCLUDES) $(EXTRA_INCLUDES) $(EXTRA_CFLAGS) +-LIBS=-lm -lSDL -lSDL_mixer ++CFLAGS+=-DPREFIX=\"${PREFIX}\" -Iinclude -fomit-frame-pointer -Wall -DNORMALUNIX $(SDL_INCLUDES) $(EXTRA_INCLUDES) $(EXTRA_CFLAGS) ++LIBS=-lSDL_mixer + LDFLAGS=$(SDL_LIBS) $(LIBS) $(EXTRA_LIBS) + + # subdirectory for objects diff --git a/games/uhexen/files/patch-include::h2def.h b/games/uhexen/files/patch-include::h2def.h new file mode 100644 index 000000000000..dda5deabb790 --- /dev/null +++ b/games/uhexen/files/patch-include::h2def.h @@ -0,0 +1,17 @@ + +$FreeBSD$ + +--- include/h2def.h 2003/02/10 14:43:33 1.1 ++++ include/h2def.h 2003/02/10 14:46:37 +@@ -26,7 +26,11 @@ + + /* XXX ifdefs */ + ++#ifndef __FreeBSD__ + typedef unsigned int uint; ++#else ++#include <sys/types.h> ++#endif + + // Uncomment, to enable all timebomb stuff + //#define TIMEBOMB diff --git a/games/uhexen/files/patch-src::h2_main.c b/games/uhexen/files/patch-src::h2_main.c new file mode 100644 index 000000000000..2e55366d713c --- /dev/null +++ b/games/uhexen/files/patch-src::h2_main.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- src/h2_main.c.orig Tue Dec 4 18:11:47 2001 ++++ src/h2_main.c Mon Feb 10 16:56:31 2003 +@@ -127,7 +127,7 @@ + static char *wadfiles[MAXWADFILES] = + { + "hexen.wad", +- "/usr/local/share/games/uhexen/hexen.wad" ++ PREFIX "/share/uhexen/hexen.wad" + }; + #else + static char *wadfiles[MAXWADFILES] = diff --git a/games/uhexen/files/patch-src::i_video.c b/games/uhexen/files/patch-src::i_video.c new file mode 100644 index 000000000000..b1a72d193132 --- /dev/null +++ b/games/uhexen/files/patch-src::i_video.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- src/i_video.c 2003/02/10 15:10:49 1.1 ++++ src/i_video.c 2003/02/10 15:11:08 +@@ -54,7 +54,8 @@ + } + + void I_ShutdownGraphics(void) { +- SW_ShutdownGraphics(); ++ if (SW_ShutdownGraphics) ++ SW_ShutdownGraphics(); + } + + void I_StartTic(void) { diff --git a/games/uhexen/files/patch-src::w_wad.c b/games/uhexen/files/patch-src::w_wad.c new file mode 100644 index 000000000000..fd925cb8a06e --- /dev/null +++ b/games/uhexen/files/patch-src::w_wad.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- src/w_wad.c 2003/02/10 14:47:45 1.1 ++++ src/w_wad.c 2003/02/10 14:47:58 +@@ -13,7 +13,7 @@ + // HEADER FILES ------------------------------------------------------------ + + #include <sys/types.h> +-#include <malloc.h> ++#include <stdlib.h> + #include <fcntl.h> + #include <unistd.h> + #include <sys/stat.h> |