diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2007-02-04 20:57:58 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2007-02-04 20:57:58 +0000 |
commit | 915f8aa36cc5135081c9cc0c5f2bc679104e10e7 (patch) | |
tree | 3ddaca71921b02047f9ed5e1ea9e9aa5d993b2f7 /games/marsnomercy | |
parent | 9d7cf352cf9cf117f38756224c30514f6bc4b232 (diff) | |
download | ports-915f8aa36cc5135081c9cc0c5f2bc679104e10e7.tar.gz ports-915f8aa36cc5135081c9cc0c5f2bc679104e10e7.zip |
Notes
Diffstat (limited to 'games/marsnomercy')
-rw-r--r-- | games/marsnomercy/Makefile | 3 | ||||
-rw-r--r-- | games/marsnomercy/distinfo | 6 | ||||
-rw-r--r-- | games/marsnomercy/files/patch-SConstruct | 46 |
3 files changed, 26 insertions, 29 deletions
diff --git a/games/marsnomercy/Makefile b/games/marsnomercy/Makefile index 3b7a874e11d7..3d1c7fc52bf8 100644 --- a/games/marsnomercy/Makefile +++ b/games/marsnomercy/Makefile @@ -6,7 +6,7 @@ # PORTNAME= marsnomercy -PORTVERSION= 0.2.0 +PORTVERSION= 0.2.1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= mars @@ -20,6 +20,7 @@ BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons USE_GL= yes USE_SDL= sdl image ttf MAKE_ENV= CC="${CC}" CXX="${CXX}" +SCONS_ARGS= prefix=${PREFIX} PLIST= ${WRKDIR}/pkg-plist PLIST_FILES= bin/mars-nomercy libexec/mars diff --git a/games/marsnomercy/distinfo b/games/marsnomercy/distinfo index ef985ad68e83..0bcd7552f776 100644 --- a/games/marsnomercy/distinfo +++ b/games/marsnomercy/distinfo @@ -1,3 +1,3 @@ -MD5 (mars-0.2.0-src.tar.gz) = 4ad8a9009af5947d6e69159eab47a923 -SHA256 (mars-0.2.0-src.tar.gz) = fde5e8c54e006a1ce6f87c266ebaefaa5ceb3b88c0f7e26a4388fc69e2adbd6d -SIZE (mars-0.2.0-src.tar.gz) = 2510713 +MD5 (mars-0.2.1-src.tar.gz) = c86674cd1fd6d0045e43218d929eb391 +SHA256 (mars-0.2.1-src.tar.gz) = 6c3f78a505f6b2989dd024ee3b1e707a38981ebe0177d6eca32b40e70ed16f49 +SIZE (mars-0.2.1-src.tar.gz) = 2728661 diff --git a/games/marsnomercy/files/patch-SConstruct b/games/marsnomercy/files/patch-SConstruct index 1f220d36363f..5def5523e273 100644 --- a/games/marsnomercy/files/patch-SConstruct +++ b/games/marsnomercy/files/patch-SConstruct @@ -1,51 +1,47 @@ ---- SConstruct Thu Nov 2 07:10:42 2006 -+++ SConstruct Sun Nov 5 14:30:31 2006 -@@ -1,3 +1,6 @@ -+import os -+import sys -+ - # create build environment and options - env = Environment() - opts = Options() -@@ -40,13 +43,19 @@ +--- SConstruct.orig Mon Dec 18 19:56:15 2006 ++++ SConstruct Sun Feb 4 15:22:47 2007 +@@ -57,13 +57,19 @@ # PLATFORM posix or pure cygwin else: + # Section used for FreeBSD port -+ LOCALBASE = os.environ['LOCALBASE'] -+ X11BASE = os.environ['X11BASE'] -+ SDL_CONFIG = os.environ['SDL_CONFIG'] ++ LOCALBASE = os.environ['LOCALBASE'] ++ X11BASE = os.environ['X11BASE'] # determine compiler and linker flags for SDL - env.ParseConfig('sdl-config --cflags') - env.ParseConfig('sdl-config --libs') ++ SDL_CONFIG = os.environ['SDL_CONFIG'] + env.ParseConfig(SDL_CONFIG + ' --cflags') + env.ParseConfig(SDL_CONFIG + ' --libs') # add additional compiler flags - if not int(env['debug']): - env.Append(CXXFLAGS = ['-O2']) - -+ env.Replace(CC = os.environ['CC']) -+ env.Replace(CXX = os.environ['CXX']) -+ env.Replace(CPPPATH = [X11BASE + '/include',LOCALBASE+ '/include']) -+ env.Replace(LIBPATH = [X11BASE + '/lib',LOCALBASE+ '/lib']) -+ env.Append(CXXFLAGS = os.environ['CXXFLAGS'] + ' `' + SDL_CONFIG + ' --cflags`') ++ env.Replace(CC = os.environ['CC']) ++ env.Replace(CXX = os.environ['CXX']) ++ env.Replace(CPPPATH = [X11BASE + '/include',LOCALBASE+ '/include']) ++ env.Replace(LIBPATH = [X11BASE + '/lib',LOCALBASE+ '/lib']) ++ env.Append(CXXFLAGS = os.environ['CXXFLAGS'] + ' `' + SDL_CONFIG + ' --cflags`') # generate help for options Help(opts.GenerateHelpText(env)) -@@ -69,13 +78,13 @@ +@@ -92,16 +98,16 @@ if not env.GetOption('clean'): print ":: Checking for libs" conf = Configure(env) -- if not conf.CheckLibWithHeader('libSDL', 'SDL.h', 'c', 'SDL_Init(SDL_INIT_VIDEO);', autoadd = 0): -+ if not conf.CheckLibWithHeader('libSDL', 'SDL/SDL.h', 'c', 'SDL_Init(SDL_INIT_VIDEO);', autoadd = 0): +- if not conf.CheckLibWithHeader('SDL', 'SDL.h', 'c', 'SDL_Init(SDL_INIT_VIDEO);', autoadd = 0): ++ if not conf.CheckLibWithHeader('SDL', 'SDL/SDL.h', 'c', 'SDL_Init(SDL_INIT_VIDEO);', autoadd = 0): print 'Did not find libSDL, exiting!' Exit(1) -- if not conf.CheckLibWithHeader('libSDL_image', 'SDL_image.h', 'c', 'IMG_GetError();'): -+ if not conf.CheckLibWithHeader('libSDL_image', 'SDL/SDL_image.h', 'c', 'IMG_GetError();'): + if not conf.CheckLibWithHeader('png', 'png.h', 'c', 'png_error(NULL, "test");'): + print 'Did not find libpng, exiting!' + Exit(1) +- if not conf.CheckLibWithHeader('SDL_image', 'SDL_image.h', 'c', 'IMG_GetError();'): ++ if not conf.CheckLibWithHeader('SDL_image', 'SDL/SDL_image.h', 'c', 'IMG_GetError();'): print 'Did not find libSDL_image, exiting!' Exit(1) -- if not conf.CheckLibWithHeader('libSDL_ttf', 'SDL_ttf.h', 'c', 'TTF_Init();'): -+ if not conf.CheckLibWithHeader('libSDL_ttf', 'SDL/SDL_ttf.h', 'c', 'TTF_Init();'): +- if not conf.CheckLibWithHeader('SDL_ttf', 'SDL_ttf.h', 'c', 'TTF_Init();'): ++ if not conf.CheckLibWithHeader('SDL_ttf', 'SDL/SDL_ttf.h', 'c', 'TTF_Init();'): print 'Did not find libSDL_ttf, exiting!' Exit(1) if int(env['with_opengl']): |