[33689] trunk/dports/games
simon at macports.org
simon at macports.org
Sun Feb 3 06:32:52 PST 2008
Revision: 33689
http://trac.macosforge.org/projects/macports/changeset/33689
Author: simon at macports.org
Date: 2008-02-03 06:32:45 -0800 (Sun, 03 Feb 2008)
Log Message:
-----------
games/boswars: New port.
Added Paths:
-----------
trunk/dports/games/boswars/
trunk/dports/games/boswars/Portfile
trunk/dports/games/boswars/files/
trunk/dports/games/boswars/files/boswars
trunk/dports/games/boswars/files/patch-SConstruct.diff
trunk/dports/games/boswars/files/patch-build_options.py.diff
trunk/dports/games/boswars/files/patch-engine_video_graphic.cpp.diff
Added: trunk/dports/games/boswars/Portfile
===================================================================
--- trunk/dports/games/boswars/Portfile (rev 0)
+++ trunk/dports/games/boswars/Portfile 2008-02-03 14:32:45 UTC (rev 33689)
@@ -0,0 +1,82 @@
+# $Id$
+
+PortSystem 1.0
+
+name boswars
+version pre2.5
+categories games
+platforms darwin
+maintainers simon
+description Bos Wars is a futuristic real time strategy game.
+long_description Bos Wars is a futuristic real time strategy game (RTS). \
+ Bos Wars has a dynamic rate based economy. Energy is \
+ produced by power plants and magma gets pumped from hot \
+ spots. Buildings and mobile units are also built at a \
+ continuous rate. Control of larger parts of the map \
+ creates the potential to increase your economy \
+ throughput. Holding key points like roads and passages \
+ allow for different strategies.
+
+homepage http://boswars.org/
+master_sites ${homepage}dist/releases/
+checksums md5 2eaca394a5e9575ed70381acd4a1ec32 \
+ sha1 5cc598bdec9965bb92482391e26316456f551afa \
+ rmd160 db5ac9c0a4622e43816856819c951bf567fad4f9
+distname ${name}-${version}-src
+
+depends_build port:scons
+
+depends_lib port:libogg \
+ port:libpng \
+ port:libsdl \
+ port:libtheora \
+ port:libvorbis \
+ port:lua \
+ port:zlib
+
+patchfiles patch-SConstruct.diff \
+ patch-build_options.py.diff \
+ patch-engine_video_graphic.cpp.diff
+
+configure {
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/build_options.py
+}
+
+build {
+ # Use scons to build boswars.
+ system "cd ${worksrcpath}; scons debug"
+}
+
+destroot {
+ # Path to the boswars resource directory ${prefix}/share/boswars.
+ set share ${prefix}/share/boswars
+
+ # Rename the boswars binary to boswars-bin and install it in destroot so a
+ # helper script can be used which automatically sets the path to the
+ # boswars files.
+ move ${worksrcpath}/boswars-debug ${destroot}${prefix}/bin/boswars-bin
+ # Copy the helper script to ${prefix}/bin.
+ xinstall ${portpath}/${filesdir}/boswars ${destroot}${prefix}/bin
+ # Set the correct path to the boswars files in the boswars helper script.
+ reinplace "s|__BOSWARS__|${share}|g" ${destroot}${prefix}/bin/boswars
+
+ # Create the resource directory in destroot.
+ xinstall -d ${destroot}${share}
+ # Install the boswar files into ${prefix}/share/boswars:
+ set files {campaigns doc graphics intro languages maps scripts sounds \
+ units}
+ foreach file $files {
+ move ${worksrcpath}/$file ${destroot}${share}/${file}
+ }
+}
+
+post-install {
+ ui_msg "****************************************************************"
+ ui_msg "* *"
+ ui_msg "* Attention! Changing display mode to OpenGL in the settings *"
+ ui_msg "* menu doesn't work and causes an application crash! If this *"
+ ui_msg "* happens remove ~/Library/boswars/preferences.lua to reset *"
+ ui_msg "* the setting. *"
+ ui_msg "* *"
+ ui_msg "****************************************************************"
+}
Property changes on: trunk/dports/games/boswars/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/games/boswars/files/boswars
===================================================================
--- trunk/dports/games/boswars/files/boswars (rev 0)
+++ trunk/dports/games/boswars/files/boswars 2008-02-03 14:32:45 UTC (rev 33689)
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+# This is a shell wrapper to make executing boswars simpler.
+# It's necessary as boswars looks for its files in the current directory. As
+# they are installed in ${prefix}/share/boswars this script automatically sets
+# the path with the -d option.
+
+
+boswars-bin -d __BOSWARS__ $@
Property changes on: trunk/dports/games/boswars/files/boswars
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:eol-style
+ native
Added: trunk/dports/games/boswars/files/patch-SConstruct.diff
===================================================================
--- trunk/dports/games/boswars/files/patch-SConstruct.diff (rev 0)
+++ trunk/dports/games/boswars/files/patch-SConstruct.diff 2008-02-03 14:32:45 UTC (rev 33689)
@@ -0,0 +1,11 @@
+--- SConstruct 2008-01-27 18:27:52.000000000 +0100
++++ SConstruct 2008-01-27 18:28:00.000000000 +0100
+@@ -303,7 +303,7 @@
+
+ debug = env.Copy()
+ debug.Append(CPPDEFINES = 'DEBUG')
+-debug.Append(CCFLAGS = Split('-g -Wsign-compare -Wall -Werror'))
++debug.Append(CCFLAGS = Split('-g'))
+
+ profile = debug.Copy()
+ profile.Append(CCFLAGS = Split('-pg'))
Property changes on: trunk/dports/games/boswars/files/patch-SConstruct.diff
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/games/boswars/files/patch-build_options.py.diff
===================================================================
--- trunk/dports/games/boswars/files/patch-build_options.py.diff (rev 0)
+++ trunk/dports/games/boswars/files/patch-build_options.py.diff 2008-02-03 14:32:45 UTC (rev 33689)
@@ -0,0 +1,12 @@
+--- build_options.py 1970-01-01 01:00:00.000000000 +0100
++++ build_options.py 2008-01-27 16:42:37.000000000 +0100
+@@ -0,0 +1,9 @@
++CPPPATH = ['__PREFIX__/include']
++CPPDEFINES = []
++LIBPATH = ['__PREFIX__/lib']
++CCFLAGS = ['-fsigned-char']
++LINKFLAGS = ['$__RPATH']
++CC = 'gcc'
++CXX = 'g++'
++MINGWCPPPATH = []
++MINGWLIBPATH = []
Property changes on: trunk/dports/games/boswars/files/patch-build_options.py.diff
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/games/boswars/files/patch-engine_video_graphic.cpp.diff
===================================================================
--- trunk/dports/games/boswars/files/patch-engine_video_graphic.cpp.diff (rev 0)
+++ trunk/dports/games/boswars/files/patch-engine_video_graphic.cpp.diff 2008-02-03 14:32:45 UTC (rev 33689)
@@ -0,0 +1,13 @@
+--- engine/video/graphic.cpp 2008-01-27 17:33:20.000000000 +0100
++++ engine/video/graphic.cpp 2008-01-27 17:33:37.000000000 +0100
+@@ -852,8 +852,8 @@
+ ckey = f->colorkey;
+
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+- maxw = std::min(g->GraphicWidth - ow, GLMaxTextureSize);
+- maxh = std::min(g->GraphicHeight - oh, GLMaxTextureSize);
++ maxw = std::min(g->GraphicWidth - ow, (int)GLMaxTextureSize);
++ maxh = std::min(g->GraphicHeight - oh, (int)GLMaxTextureSize);
+ w = PowerOf2(maxw);
+ h = PowerOf2(maxh);
+ tex = new unsigned char[w * h * 4];
Property changes on: trunk/dports/games/boswars/files/patch-engine_video_graphic.cpp.diff
___________________________________________________________________
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080203/5c4333a0/attachment-0001.html
More information about the macports-changes
mailing list