[37094] trunk/dports/games
simon at macports.org
simon at macports.org
Mon May 26 12:14:04 PDT 2008
Revision: 37094
http://trac.macosforge.org/projects/macports/changeset/37094
Author: simon at macports.org
Date: 2008-05-26 12:14:03 -0700 (Mon, 26 May 2008)
Log Message:
-----------
games/rrgbis: New port.
Added Paths:
-----------
trunk/dports/games/rrgbis/
trunk/dports/games/rrgbis/Portfile
trunk/dports/games/rrgbis/files/
trunk/dports/games/rrgbis/files/patch-Makefile.diff
trunk/dports/games/rrgbis/files/patch-src_GLSDL.cpp.diff
trunk/dports/games/rrgbis/files/rrgbis
trunk/dports/games/rrgbis/files/rrgbis-setup
Added: trunk/dports/games/rrgbis/Portfile
===================================================================
--- trunk/dports/games/rrgbis/Portfile (rev 0)
+++ trunk/dports/games/rrgbis/Portfile 2008-05-26 19:14:03 UTC (rev 37094)
@@ -0,0 +1,79 @@
+# $Id$
+
+PortSystem 1.0
+
+name rrgbis
+version 1.06-2
+categories games
+platforms darwin
+maintainers simon openmaintainer
+description Real time strategy game with fleets of spaceships.
+long_description ${description}
+
+homepage http://rrgbis.sourceforge.net/
+master_sites sourceforge
+checksums md5 195038ed3b76e2189fa126e0c88ddcba \
+ sha1 82b65ad78de21f3760a51377f4ed75c3b497780b \
+ rmd160 bab91a9d4ead8e0aa6c4986c0f0ecae679ac3871
+use_bzip2 yes
+worksrcdir ${name}
+
+depends_lib port:libsdl \
+ port:libsdl_image \
+ port:libsdl_mixer \
+ port:libvorbis
+
+patchfiles patch-Makefile.diff \
+ patch-src_GLSDL.cpp.diff
+
+pre-patch {
+ # Convert files from DOS to UNIX linefeeds before patching.
+ reinplace "s/\r$//g" ${worksrcpath}/Makefile
+}
+post-patch {
+ # Set the correct path to the installed rrgbis data in the settings file.
+ reinplace "s|pwd|${prefix}/share/rrgbis/|g" ${worksrcpath}/settings.dat
+}
+
+use_configure no
+
+build.target {}
+
+destroot {
+ # Install the helper script which automatically sets the correct
+ # LD_LIBRARY_PATH variable and set the right ${prefix} path.
+ xinstall ${portpath}/${filesdir}/rrgbis ${destroot}${prefix}/bin
+ reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/rrgbis
+
+ # Install the helper setup script which creates ~/.rrgbis and the
+ # settings.dat file in it.
+ xinstall ${portpath}/${filesdir}/rrgbis-setup ${destroot}${prefix}/bin
+ reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/rrgbis-setup
+
+ # Install the real binary and rename it to rrgbis-bin.
+ copy ${worksrcpath}/rrgbis ${destroot}${prefix}/bin/rrgbis-bin
+
+ # Create the directory for the rrgbis data.
+ xinstall -d ${destroot}${prefix}/share/rrgbis
+ # Copy all data files and directories to ${destroot}.
+ set files {aiscripts images missions music settings.dat sound \
+ squirrelscripts unitdata unitpictures}
+ foreach file $files {
+ move ${worksrcpath}/${file} ${destroot}${prefix}/share/rrgbis/${file}
+ }
+}
+
+post-install {
+ ui_msg "****************************************************************"
+ ui_msg "* *"
+ ui_msg "* If you run rrgbis the first time, you must call rrgbis-setup *"
+ ui_msg "* so the default configuration data can be set up. *"
+ ui_msg "* *"
+ ui_msg "* This script is provided by macports and not part of the *"
+ ui_msg "* official distribution! If there are any problems with it *"
+ ui_msg "* contact the port maintainer. *"
+ ui_msg "* *"
+ ui_msg "****************************************************************"
+}
+
+livecheck.version 1.06
Property changes on: trunk/dports/games/rrgbis/Portfile
___________________________________________________________________
Name: svn:keyword
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/games/rrgbis/files/patch-Makefile.diff
===================================================================
--- trunk/dports/games/rrgbis/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/games/rrgbis/files/patch-Makefile.diff 2008-05-26 19:14:03 UTC (rev 37094)
@@ -0,0 +1,11 @@
+--- Makefile 2008-02-05 01:40:16.000000000 +0100
++++ Makefile 2008-02-05 01:41:26.000000000 +0100
+@@ -11,7 +11,7 @@
+ #if making rrgbis64 (though it will still crash):
+ #CXXFLAGS = $(shell sdl-config --cflags) -D_SQ64 -Isrc/squirrel/include -O3
+ CXXFLAGS = $(shell sdl-config --cflags) -Isrc/squirrel/include -O3
+-LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lGL -L$(SQUIRREL)/lib
++LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lGL -L$(SQUIRREL)/lib -L/usr/X11R6/lib
+ LIBS = -lsquirrel -lsqstdlib
+
+ SOURCES = $(wildcard src/*.cpp) $(wildcard src/scripting/*.cpp)
Property changes on: trunk/dports/games/rrgbis/files/patch-Makefile.diff
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/games/rrgbis/files/patch-src_GLSDL.cpp.diff
===================================================================
--- trunk/dports/games/rrgbis/files/patch-src_GLSDL.cpp.diff (rev 0)
+++ trunk/dports/games/rrgbis/files/patch-src_GLSDL.cpp.diff 2008-05-26 19:14:03 UTC (rev 37094)
@@ -0,0 +1,20 @@
+--- src/GLSDL.cpp 2006-11-08 14:13:50.000000000 +0100
++++ src/GLSDL.cpp 2008-02-05 00:10:22.000000000 +0100
+@@ -1741,7 +1741,7 @@
+
+ static int InitTexture(SDL_Surface *datasurf, glSDL_TexInfo *txi, int tex)
+ {
+- glGenTextures(1, (unsigned int *)&txi->texture[tex]);
++ glGenTextures(1, (GLuint *)&txi->texture[tex]);
+ glBindTexture(GL_TEXTURE_2D, txi->texture[tex]);
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, datasurf->pitch /
+ datasurf->format->BytesPerPixel);
+@@ -1970,7 +1970,7 @@
+ {
+ int i;
+ for(i = 0; i < txi->textures; ++i)
+- glDeleteTextures(1, (unsigned int *)&txi->texture[i]);
++ glDeleteTextures(1, (GLuint *)&txi->texture[i]);
+ memset(&txi->invalid_area, 0, sizeof(txi->invalid_area));
+ }
+
Property changes on: trunk/dports/games/rrgbis/files/patch-src_GLSDL.cpp.diff
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/games/rrgbis/files/rrgbis
===================================================================
--- trunk/dports/games/rrgbis/files/rrgbis (rev 0)
+++ trunk/dports/games/rrgbis/files/rrgbis 2008-05-26 19:14:03 UTC (rev 37094)
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# Helper script to make sure the correct LD_LIBRARY_PATH is set.
+
+
+export LD_LIBRARY_PATH=__PREFIX__/lib
+
+__PREFIX__/bin/rrgbis-bin
Property changes on: trunk/dports/games/rrgbis/files/rrgbis
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:eol-style
+ native
Added: trunk/dports/games/rrgbis/files/rrgbis-setup
===================================================================
--- trunk/dports/games/rrgbis/files/rrgbis-setup (rev 0)
+++ trunk/dports/games/rrgbis/files/rrgbis-setup 2008-05-26 19:14:03 UTC (rev 37094)
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+# Path to the rrgbis configuration directory.
+RRGBIS="$HOME/.rrgbis"
+# Path to the rrgbis configuration file.
+RRGBIS_SETTINGS="$RRGBIS/settings.dat"
+
+# Create the rrgbis configuration directory if it doesn't already exist.
+mkdir -p "$RRGBIS"
+
+# If the settings.data file doesn't exist copy it from the default location in
+# ${prefix}/share/rrgbis.
+if [[ ! -f "$RRGBIS_SETTINGS" ]]; then
+ cp __PREFIX__/share/rrgbis/settings.dat "$RRGBIS_SETTINGS"
+fi
+
+echo "Installed default configuration files in ~/.rrgbis."
Property changes on: trunk/dports/games/rrgbis/files/rrgbis-setup
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080526/e85fb76b/attachment.htm
More information about the macports-changes
mailing list