diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2011-05-25 12:56:48 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2011-05-25 12:56:48 +0800 |
commit | 6a2e398819c59cd8fced2ff80520f72e730492f2 (patch) | |
tree | aea726052821cb919a2f26ff1106873d21c0325f /games/widelands | |
parent | ab63bd069e2be71be7cdc7c75c5d3a0b37ad7f6a (diff) | |
download | freebsd-ports-gnome-6a2e398819c59cd8fced2ff80520f72e730492f2.tar.gz freebsd-ports-gnome-6a2e398819c59cd8fced2ff80520f72e730492f2.tar.zst freebsd-ports-gnome-6a2e398819c59cd8fced2ff80520f72e730492f2.zip |
- Update to build16
Diffstat (limited to 'games/widelands')
-rw-r--r-- | games/widelands/Makefile | 43 | ||||
-rw-r--r-- | games/widelands/distinfo | 5 | ||||
-rw-r--r-- | games/widelands/files/patch-CMakeLists.txt | 11 | ||||
-rw-r--r-- | games/widelands/files/patch-SConstruct | 19 | ||||
-rw-r--r-- | games/widelands/files/patch-build-scons-tools-scons_configure.py | 29 | ||||
-rw-r--r-- | games/widelands/files/patch-doc-CMakeLists.txt | 8 | ||||
-rw-r--r-- | games/widelands/files/patch-src-io-filesystem-disk_filesystem.cc | 16 | ||||
-rw-r--r-- | games/widelands/files/patch-src-wlapplication.cc | 19 | ||||
-rw-r--r-- | games/widelands/pkg-descr | 2 |
9 files changed, 76 insertions, 76 deletions
diff --git a/games/widelands/Makefile b/games/widelands/Makefile index 9589f14ec19e..6f57af229b54 100644 --- a/games/widelands/Makefile +++ b/games/widelands/Makefile @@ -6,50 +6,45 @@ # PORTNAME= widelands -DISTVERSION= build13 -PORTREVISION= 8 +DISTVERSION= build16 CATEGORIES= games -MASTER_SITES= SF/${PORTNAME}/Old%20releases%20%21%21%21/build-13/ -DISTNAME= ${PORTNAME:C/^w/W/}-${DISTVERSION:C/^b/B/}-src +MASTER_SITES= http://launchpadlibrarian.net/69520494/ +DISTNAME= ${PORTNAME}-${DISTVERSION}-src MAINTAINER= amdmi3@FreeBSD.org COMMENT= Realtime strategy game inspired by Settlers II -LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \ - boost_thread.4:${PORTSDIR}/devel/boost-libs +LIB_DEPENDS= ggzcore.9:${PORTSDIR}/games/ggz-client-libs \ + png.6:${PORTSDIR}/graphics/png \ + GLEW.1:${PORTSDIR}/graphics/glew +BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs USE_BZIP2= yes -USE_GETTEXT= yes -USE_PYTHON_BUILD=2.5+ +USE_CMAKE= yes +CMAKE_OUTSOURCE=yes +CMAKE_ARGS= -DWL_INSTALL_PREFIX="${PREFIX}" \ + -DWL_INSTALL_DATADIR="share/widelands" \ + -DWL_INSTALL_BINDIR="bin" \ + -DWL_VERSION="${DISTVERSION}" +USE_LUA= 5.1+ USE_SDL= sdl mixer image net ttf gfx -USE_GCC= 4.2+ +USE_PYTHON_BUILD=2.4+ +MAKE_JOBS_SAFE= yes PLIST_FILES= bin/widelands -WRKSRC= ${WRKDIR}/widelands-${DISTVERSION:C/build/b/} - -USE_SCONS= yes -SCONS_ARGS= install_prefix=${PREFIX} bindir=bin datadir=share/widelands \ - localedir=share/widelands/locale build=release \ - sdlconfig=${SDL_CONFIG} -MAKE_JOBS_SAFE= yes - DESKTOP_ENTRIES="Widelands" \ "Realtime strategy game inspired by Settlers II" \ - "${DATADIR}/pics/wl-ico-32.png" \ + "${DATADIR}/pics/wl-ico-64.png" \ "widelands" \ "Game;StrategyGame;" \ false post-patch: - @${REINPLACE_CMD} -e '/prefer_localdata/ s|True|False|' \ - ${WRKSRC}/worlds/SConscript @${REINPLACE_CMD} -e '/ifndef/ s|__APPLE__|__FreeBSD__|' \ ${WRKSRC}/src/backtrace.cc - @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \ - ${WRKSRC}/utils/buildlocale.py - @${REINPLACE_CMD} -e 's|revstring=.*|return "${DISTVERSION}-FreeBSD"|' \ - ${WRKSRC}/build/scons-tools/detect_revision.py + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + ${WRKSRC}/cmake/Modules/*.cmake post-install: @${FIND} ${DATADIR} -type f | \ diff --git a/games/widelands/distinfo b/games/widelands/distinfo index 8681c98f1c32..b44a55c3e6b5 100644 --- a/games/widelands/distinfo +++ b/games/widelands/distinfo @@ -1,3 +1,2 @@ -MD5 (Widelands-Build13-src.tar.bz2) = 5e39f80b668d303abf693c48afa0c4bc -SHA256 (Widelands-Build13-src.tar.bz2) = acbb4f6405e7429a8510eae5414a51cff198c1d4bef374303e3b4a47aae930b3 -SIZE (Widelands-Build13-src.tar.bz2) = 59030617 +SHA256 (widelands-build16-src.tar.bz2) = d8db3c15c30314cb220c6d79d93d3d31e7bce2722c93d2c385d643c3c669625d +SIZE (widelands-build16-src.tar.bz2) = 137808494 diff --git a/games/widelands/files/patch-CMakeLists.txt b/games/widelands/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..ef9a4d2902b9 --- /dev/null +++ b/games/widelands/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2011-04-15 22:40:26.000000000 +0400 ++++ CMakeLists.txt 2011-05-25 01:12:54.000000000 +0400 +@@ -204,7 +204,7 @@ + set (CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -DNOPARACHUTE${WL_COMPILERFLAG_OLDSTYLECAST}${WL_COMPILERFLAG_GENERICWARNINGS}${WL_COMPILERFLAG_EXTRAWARNINGS}${WL_COMPILERFLAG_STRICT}" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) + + # CMAKE defines "-O3 -DNDEBUG", but we better say -O2 (see gcc manual) +-set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) ++set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) + + #If building with MSVC, then check for 3rdparty libs + if (DEFINED MSVC) diff --git a/games/widelands/files/patch-SConstruct b/games/widelands/files/patch-SConstruct deleted file mode 100644 index 0cc25e5988c8..000000000000 --- a/games/widelands/files/patch-SConstruct +++ /dev/null @@ -1,19 +0,0 @@ ---- SConstruct.orig 2008-10-06 21:43:03.000000000 +0400 -+++ SConstruct 2009-06-05 20:38:30.000000000 +0400 -@@ -101,7 +101,7 @@ - - opts=cli_options() - --env=Environment(options=opts) -+env=Environment(options=opts, ENV=os.environ, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems())) - 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) diff --git a/games/widelands/files/patch-build-scons-tools-scons_configure.py b/games/widelands/files/patch-build-scons-tools-scons_configure.py deleted file mode 100644 index 181ec2f82641..000000000000 --- a/games/widelands/files/patch-build-scons-tools-scons_configure.py +++ /dev/null @@ -1,29 +0,0 @@ ---- build/scons-tools/scons_configure.py.orig 2008-10-05 18:59:26.000000000 +0400 -+++ build/scons-tools/scons_configure.py 2008-11-10 01:24:38.000000000 +0300 -@@ -439,16 +439,16 @@ - conf.CheckCompilerFlag('-fbounds-check', env) - conf.CheckCompilerFlag('-pipe', env) - -- if env.optimize: -- # !!!! -fomit-frame-pointer breaks execeptions !!!! -- conf.CheckCompilerFlag('-fexpensive-optimizations', env) -- conf.CheckCompilerFlag('-finline-functions', env) -- conf.CheckCompilerFlag('-ffast-math', env) -- conf.CheckCompilerFlag('-funroll-loops', env) -- conf.CheckCompilerFlag('-O3', env) -- else: -- conf.CheckCompilerFlag('-O0', env) -- conf.CheckCompilerFlag('-funit-at-a-time', env) -+# if env.optimize: -+# # !!!! -fomit-frame-pointer breaks execeptions !!!! -+# conf.CheckCompilerFlag('-fexpensive-optimizations', env) -+# conf.CheckCompilerFlag('-finline-functions', env) -+# conf.CheckCompilerFlag('-ffast-math', env) -+# conf.CheckCompilerFlag('-funroll-loops', env) -+# conf.CheckCompilerFlag('-O3', env) -+# else: -+# conf.CheckCompilerFlag('-O0', env) -+# conf.CheckCompilerFlag('-funit-at-a-time', env) - - if env.profile: - conf.CheckCompilerFlag('-pg', env) diff --git a/games/widelands/files/patch-doc-CMakeLists.txt b/games/widelands/files/patch-doc-CMakeLists.txt new file mode 100644 index 000000000000..f9aad29eaf62 --- /dev/null +++ b/games/widelands/files/patch-doc-CMakeLists.txt @@ -0,0 +1,8 @@ +--- doc/CMakeLists.txt.orig 2011-04-15 22:40:26.000000000 +0400 ++++ doc/CMakeLists.txt 2011-05-25 01:42:25.000000000 +0400 +@@ -1,5 +1,4 @@ + IF (NOT WIN32) +- find_package(Doxygen) + if (DOXYGEN_FOUND) + include(Documentation) + file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/sourcecode) diff --git a/games/widelands/files/patch-src-io-filesystem-disk_filesystem.cc b/games/widelands/files/patch-src-io-filesystem-disk_filesystem.cc new file mode 100644 index 000000000000..8c52343c14c7 --- /dev/null +++ b/games/widelands/files/patch-src-io-filesystem-disk_filesystem.cc @@ -0,0 +1,16 @@ +--- src/io/filesystem/disk_filesystem.cc.orig 2011-04-15 22:40:26.000000000 +0400 ++++ src/io/filesystem/disk_filesystem.cc 2011-05-25 00:53:00.000000000 +0400 +@@ -436,10 +436,10 @@ + int file = 0; + void * data = 0; + +-#ifdef __APPLE__ +- file = open(fullname.c_str(), O_RDONLY); +-#else ++#ifdef __linux__ + file = open(fullname.c_str(), O_RDONLY|O_NOATIME); ++#else ++ file = open(fullname.c_str(), O_RDONLY); + #endif + length = lseek(file, 0, SEEK_END); + lseek(file, 0, SEEK_SET); diff --git a/games/widelands/files/patch-src-wlapplication.cc b/games/widelands/files/patch-src-wlapplication.cc new file mode 100644 index 000000000000..94bbb62b6b82 --- /dev/null +++ b/games/widelands/files/patch-src-wlapplication.cc @@ -0,0 +1,19 @@ +--- src/wlapplication.cc.orig 2011-04-15 22:40:26.000000000 +0400 ++++ src/wlapplication.cc 2011-05-25 08:48:45.000000000 +0400 +@@ -963,12 +963,12 @@ + int result = -1; + + //add default video mode +-#ifdef linux +- videomode.push_back("x11"); +-#elif WIN32 ++#if defined WIN32 + videomode.push_back("windib"); +-#elif __APPLE__ ++#elif defined __APPLE__ + videomode.push_back("Quartz"); ++#else ++ videomode.push_back("x11"); + #endif + //if a video mode is given on the command line, add that one first + const char * videodrv; diff --git a/games/widelands/pkg-descr b/games/widelands/pkg-descr index 2b68336d842a..dcad3e39d401 100644 --- a/games/widelands/pkg-descr +++ b/games/widelands/pkg-descr @@ -6,4 +6,4 @@ war against your opponents. The game is playable and great fun already, but it is also still under heavy development, so do not be surprised if it crashes on you. -WWW: http://www.widelands.org/ +WWW: http://www.widelands.org/ |