summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-04-17 17:58:38 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-04-17 17:58:38 +0000
commiteda03dc080553abee67a7858bcde295061662153 (patch)
tree56e71774325f7adeb19d08e528f48948db9ff1c4 /games
parentUpdate to 4197 (diff)
When WITH_SDL is defined use devel/sdl12 instead of devel/sdl10.
Notes
Notes: svn path=/head/; revision=57821
Diffstat (limited to 'games')
-rw-r--r--games/heretic/Makefile3
-rw-r--r--games/heretic/files/patch-graphics::i_sdl.c14
-rw-r--r--games/heretic/files/patch-graphics::i_sdl_gl.c14
3 files changed, 31 insertions, 0 deletions
diff --git a/games/heretic/Makefile b/games/heretic/Makefile
index 6c5439eaaad0..0dee74e51641 100644
--- a/games/heretic/Makefile
+++ b/games/heretic/Makefile
@@ -33,7 +33,10 @@ BINARY= xaheretic
.if defined(WITH_SDL)
ALL_TARGET= sdl
BINARY= sdlheretic
+SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
LIB_DEPENDS= SDL-1.0.2:${PORTSDIR}/devel/sdl10
+MAKE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
+CFLAGS+= `${SDL_CONFIG} --cflags`
.endif
.if defined(WITHOUT_WAD)
diff --git a/games/heretic/files/patch-graphics::i_sdl.c b/games/heretic/files/patch-graphics::i_sdl.c
new file mode 100644
index 000000000000..388677f0f1e1
--- /dev/null
+++ b/games/heretic/files/patch-graphics::i_sdl.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- graphics/i_sdl.c 2002/04/17 17:57:00 1.1
++++ graphics/i_sdl.c 2002/04/17 17:57:08
+@@ -7,7 +7,7 @@
+ #include <sys/time.h>
+ #include "doomdef.h"
+
+-#include "SDL/SDL.h"
++#include "SDL.h"
+
+ static int lastmousex = 0;
+ static int lastmousey = 0;
diff --git a/games/heretic/files/patch-graphics::i_sdl_gl.c b/games/heretic/files/patch-graphics::i_sdl_gl.c
new file mode 100644
index 000000000000..96ef61c995d2
--- /dev/null
+++ b/games/heretic/files/patch-graphics::i_sdl_gl.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- graphics/i_sdl_gl.c 2002/04/17 17:57:00 1.1
++++ graphics/i_sdl_gl.c 2002/04/17 17:57:14
+@@ -4,7 +4,7 @@
+ #include <sys/time.h>
+ #include "doomdef.h"
+
+-#include <SDL/SDL.h>
++#include <SDL.h>
+
+ #include "gl_struct.h"
+