diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-04-17 17:58:38 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-04-17 17:58:38 +0000 |
commit | c03d98210d4f54844510b074309fe6cc156d2b4d (patch) | |
tree | 435e6cfedf5b0afa6611fb078e54e24def4b233e /games | |
parent | ee1d8e804492039b3affe4ffea701cfaacc1824d (diff) | |
download | FreeBSD-ports-c03d98210d4f54844510b074309fe6cc156d2b4d.zip FreeBSD-ports-c03d98210d4f54844510b074309fe6cc156d2b4d.tar.gz |
When WITH_SDL is defined use devel/sdl12 instead of devel/sdl10.
Diffstat (limited to 'games')
-rw-r--r-- | games/heretic/Makefile | 3 | ||||
-rw-r--r-- | games/heretic/files/patch-graphics::i_sdl.c | 14 | ||||
-rw-r--r-- | games/heretic/files/patch-graphics::i_sdl_gl.c | 14 |
3 files changed, 31 insertions, 0 deletions
diff --git a/games/heretic/Makefile b/games/heretic/Makefile index 6c5439e..0dee74e 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 0000000..388677f --- /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 0000000..96ef61c --- /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" + |