aboutsummaryrefslogtreecommitdiffstats
path: root/games/marsnomercy
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2007-02-05 04:57:58 +0800
committeracm <acm@FreeBSD.org>2007-02-05 04:57:58 +0800
commitf38b936efa58d4b24bfdd50cc955b162f7fd3e6d (patch)
treea59441e1ae81eb0d75834a28e8775da7af8223d1 /games/marsnomercy
parent68a942b1f660bd36bf05dc71f8cb8a460ed422dd (diff)
downloadfreebsd-ports-gnome-f38b936efa58d4b24bfdd50cc955b162f7fd3e6d.tar.gz
freebsd-ports-gnome-f38b936efa58d4b24bfdd50cc955b162f7fd3e6d.tar.zst
freebsd-ports-gnome-f38b936efa58d4b24bfdd50cc955b162f7fd3e6d.zip
- Update to 0.2.1
Diffstat (limited to 'games/marsnomercy')
-rw-r--r--games/marsnomercy/Makefile3
-rw-r--r--games/marsnomercy/distinfo6
-rw-r--r--games/marsnomercy/files/patch-SConstruct46
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']):