From 672c044e2eee3598f19a0f5e618e0c2fe8aea68d Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Mon, 8 Mar 2004 01:01:31 +0000 Subject: Properly use SDL everywhere: USE_SDL=yes -> USE_SDL=sdl (good examles everywhere) WANT_SDL/HAVE_SDL instead of exists(localbase/lib/lib...) See http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-sdl.html for more information on how to use USE_SDL, WANT_SDL and HAVE_SDL. PR: follow-ups of ports/55494, ports/61877 Submitted by: Edwin Groothuis --- games/quake2lnx/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'games/quake2lnx') diff --git a/games/quake2lnx/Makefile b/games/quake2lnx/Makefile index 91044d01b52d..4982b94019a3 100644 --- a/games/quake2lnx/Makefile +++ b/games/quake2lnx/Makefile @@ -27,6 +27,7 @@ COMMENT= Cleaned up copy of the original Quake II source code USE_GMAKE= yes USE_REINPLACE= yes +WANT_SDL= yes .include @@ -45,10 +46,10 @@ PLIST_SUB+= SVGA="@comment " .endif .if defined(WITH_SDLCLIENT) || defined(WITH_SDL) || defined(WITH_SDLGL) \ - || exists(${LOCALBASE}/lib/libSDL-1.1.so.5) + || ${HAVE_SDL:Msdl}!="" . if !(defined(WITHOUT_SDLCLIENT) && defined(WITHOUT_SDL) \ && defined(WITHOUT_SDLGL)) -USE_SDL= yes +USE_SDL= sdl . endif . if !defined(WITHOUT_SDLCLIENT) MAKE_ARGS+= BUILD_SDLQUAKE2=YES @@ -188,13 +189,13 @@ pre-everything:: .if ${ARCH} == "i386" && !(defined(WITH_SVGA) || exists(${LOCALBASE}/lib/libvga.so.1)) @${ECHO_MSG} "Define WITH_SVGA to build SVGA driver" .endif -.if !(defined(WITH_SDL) || exists(${LOCALBASE}/lib/libSDL-1.1.so.5)) +.if !(defined(WITH_SDL) || ${HAVE_SDL:Msdl}!="") @${ECHO_MSG} "Define WITH_SDL to build SDL software driver" .endif -.if !(defined(WITH_SDLGL) || exists(${LOCALBASE}/lib/libSDL-1.1.so.5)) +.if !(defined(WITH_SDLGL) || ${HAVE_SDL:Msdl}!="") @${ECHO_MSG} "Define WITH_SDLGL to build SDL OpenGL driver" .endif -.if !(defined(WITH_SDLCLIENT) || exists(${LOCALBASE}/lib/libSDL-1.1.so.5)) +.if !(defined(WITH_SDLCLIENT) || ${HAVE_SDL:Msdl}!="") @${ECHO_MSG} "Define WITH_SDLCLIENT to build executable that uses SDL for cdrom and sound" .endif .if !(defined(WITH_AA) || exists(${LOCALBASE}/lib/libaa.so.1)) -- cgit v1.2.3