diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-06-06 07:02:24 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-06-06 07:02:24 +0800 |
commit | ad668b0939312a6554e139566b3af8cafc5f99c9 (patch) | |
tree | 216c2fb9f5bdf6f01ca3b1611b5ba7f0d81432c2 /games | |
parent | a3fd6d9eae76a198bf45c404c949b47caa8a5ccf (diff) | |
download | freebsd-ports-gnome-ad668b0939312a6554e139566b3af8cafc5f99c9.tar.gz freebsd-ports-gnome-ad668b0939312a6554e139566b3af8cafc5f99c9.tar.zst freebsd-ports-gnome-ad668b0939312a6554e139566b3af8cafc5f99c9.zip |
- Update to build13
- Use systemwide scons
- Mark MAKE_JOBS_SAFE
Diffstat (limited to 'games')
-rw-r--r-- | games/widelands/Makefile | 24 | ||||
-rw-r--r-- | games/widelands/distinfo | 6 | ||||
-rw-r--r-- | games/widelands/files/patch-SConstruct | 10 |
3 files changed, 19 insertions, 21 deletions
diff --git a/games/widelands/Makefile b/games/widelands/Makefile index 09b3a39db790..a5b1e67a7aca 100644 --- a/games/widelands/Makefile +++ b/games/widelands/Makefile @@ -6,10 +6,10 @@ # PORTNAME= widelands -DISTVERSION= build13rc +DISTVERSION= build13 CATEGORIES= games MASTER_SITES= SFE -DISTNAME= ${PORTNAME}-${DISTVERSION:C/^b/B/}-src +DISTNAME= ${PORTNAME:C/^w/W/}-${DISTVERSION:C/^b/B/}-src MAINTAINER= amdmi3@FreeBSD.org COMMENT= Realtime strategy game inspired by Settlers II @@ -18,23 +18,19 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ boost_thread.4:${PORTSDIR}/devel/boost USE_BZIP2= yes -USE_PYTHON_BUILD= 2.4+ USE_GETTEXT= yes +USE_PYTHON_BUILD=2.4+ USE_SDL= sdl mixer image net ttf gfx USE_GCC= 4.2+ PLIST_FILES= bin/widelands -WRKSRC= ${WRKDIR}/widelands +WRKSRC= ${WRKDIR}/widelands-${DISTVERSION:C/build/b/} -SCONS_ARGS= CXXFLAGS="${CXXFLAGS}" LINKFLAGS="${LDFLAGS}" \ - CPPPATH=${LOCALBASE}/include LIBPATH=${LOCALBASE}/lib \ - CC="${CC}" CXX="${CXX}" \ - install_prefix=${PREFIX} bindir=bin datadir=share/widelands \ +USE_SCONS= yes +SCONS_ARGS= install_prefix=${PREFIX} bindir=bin datadir=share/widelands \ localedir=share/widelands/locale build=release - -post-extract: - @cd ${WRKSRC}/utils && ${TAR} xf scons-local-1.0.1.tar.gz +MAKE_JOBS_SAFE= yes post-patch: @${REINPLACE_CMD} -e '/prefer_localdata/ s|True|False|' \ @@ -46,12 +42,6 @@ post-patch: @${REINPLACE_CMD} -e 's|revstring=.*|return "${DISTVERSION}-FreeBSD"|' \ ${WRKSRC}/build/scons-tools/detect_revision.py -do-build: - @cd ${WRKSRC} && ${PYTHON_CMD} utils/scons.py ${SCONS_ARGS} - -do-install: - @cd ${WRKSRC} && ${PYTHON_CMD} utils/scons.py ${SCONS_ARGS} install - post-install: @${FIND} ${DATADIR} -type f | \ ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST} diff --git a/games/widelands/distinfo b/games/widelands/distinfo index f62e67dbda8b..8681c98f1c32 100644 --- a/games/widelands/distinfo +++ b/games/widelands/distinfo @@ -1,3 +1,3 @@ -MD5 (widelands-Build13rc-src.tar.bz2) = 8639ce8e357346daa5b60a7ac905f1d9 -SHA256 (widelands-Build13rc-src.tar.bz2) = 50a3a2eefd3f2b19bd5a6e643d1ef0091780b037af0df4d54cafd352153a3bc1 -SIZE (widelands-Build13rc-src.tar.bz2) = 45349994 +MD5 (Widelands-Build13-src.tar.bz2) = 5e39f80b668d303abf693c48afa0c4bc +SHA256 (Widelands-Build13-src.tar.bz2) = acbb4f6405e7429a8510eae5414a51cff198c1d4bef374303e3b4a47aae930b3 +SIZE (Widelands-Build13-src.tar.bz2) = 59030617 diff --git a/games/widelands/files/patch-SConstruct b/games/widelands/files/patch-SConstruct index b7660a2ae47b..0cc25e5988c8 100644 --- a/games/widelands/files/patch-SConstruct +++ b/games/widelands/files/patch-SConstruct @@ -1,5 +1,5 @@ --- SConstruct.orig 2008-10-06 21:43:03.000000000 +0400 -+++ SConstruct 2008-11-09 18:44:06.000000000 +0300 ++++ SConstruct 2009-06-05 20:38:30.000000000 +0400 @@ -101,7 +101,7 @@ opts=cli_options() @@ -9,3 +9,11 @@ env.Tool("ctags", toolpath=['build/scons-tools']) env.Tool("PNGShrink", toolpath=['build/scons-tools']) env.Tool("astyle", toolpath=['build/scons-tools']) +@@ -195,7 +195,6 @@ + install=env.Install('installtarget', 'build-widelands.sh') # the second argument is a (neccessary) dummy + Alias('install', install) + AlwaysBuild(install) +-env.AddPreAction(install, Action(buildlocale)) + + uninstall=env.Uninstall('uninstalltarget', 'build-widelands.sh') # the second argument is a (neccessary) dummy + Alias('uninstall', uninstall) |