summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/uhexen/Makefile32
-rw-r--r--games/uhexen/distinfo1
-rw-r--r--games/uhexen/files/patch-Makefile59
-rw-r--r--games/uhexen/files/patch-include::h2def.h17
-rw-r--r--games/uhexen/files/patch-src::h2_main.c14
-rw-r--r--games/uhexen/files/patch-src::i_video.c15
-rw-r--r--games/uhexen/files/patch-src::w_wad.c14
-rw-r--r--games/uhexen/pkg-comment1
-rw-r--r--games/uhexen/pkg-descr4
-rw-r--r--games/uhexen/pkg-plist3
11 files changed, 161 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 7274b0235de2..cd839fd2ea79 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -325,6 +325,7 @@
SUBDIR += tuxtype
SUBDIR += tvp
SUBDIR += twitch
+ SUBDIR += uhexen
SUBDIR += uox3
SUBDIR += utserver
SUBDIR += utserver-asu
diff --git a/games/uhexen/Makefile b/games/uhexen/Makefile
new file mode 100644
index 000000000000..3269d4f76e26
--- /dev/null
+++ b/games/uhexen/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: uhexen
+# Date created: 10 February 2003
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uhexen
+PORTVERSION= 0.601
+CATEGORIES= games
+MASTER_SITES= http://uhexen.sourceforge.net/
+DISTNAME= ${PORTNAME}-latest
+
+MAINTAINER= ports@FreeBSD.org
+
+LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
+ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/uhexen ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ ${TOUCH} ${DATADIR}/.keep_me
+
+.include <bsd.port.mk>
diff --git a/games/uhexen/distinfo b/games/uhexen/distinfo
new file mode 100644
index 000000000000..9f30203461d6
--- /dev/null
+++ b/games/uhexen/distinfo
@@ -0,0 +1 @@
+MD5 (uhexen-latest.tar.gz) = 28fb8421206a973165b698a2b4383408
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>
diff --git a/games/uhexen/pkg-comment b/games/uhexen/pkg-comment
new file mode 100644
index 000000000000..51bbc0b1b777
--- /dev/null
+++ b/games/uhexen/pkg-comment
@@ -0,0 +1 @@
+Yet another port of Hexen, popular game from Raven Softrware
diff --git a/games/uhexen/pkg-descr b/games/uhexen/pkg-descr
new file mode 100644
index 000000000000..d6d63bb5552f
--- /dev/null
+++ b/games/uhexen/pkg-descr
@@ -0,0 +1,4 @@
+U-Hexen is yet another port of Hexen, popular game from Raven Softrware to
+Simple Directmedia Layer (SDL) library.
+
+WWW: http://uhexen.sourceforge.net/
diff --git a/games/uhexen/pkg-plist b/games/uhexen/pkg-plist
new file mode 100644
index 000000000000..3ada5adac1ba
--- /dev/null
+++ b/games/uhexen/pkg-plist
@@ -0,0 +1,3 @@
+bin/uhexen
+share/uhexen/.keep_me
+@dirrm share/uhexen