[37163] trunk/dports/games/criticalmass
jmr at macports.org
jmr at macports.org
Wed May 28 05:20:02 PDT 2008
Revision: 37163
http://trac.macosforge.org/projects/macports/changeset/37163
Author: jmr at macports.org
Date: 2008-05-28 05:20:00 -0700 (Wed, 28 May 2008)
Log Message:
-----------
criticalmass: update to version 1.0.2, which fixes build errors. Closes #15444.
Modified Paths:
--------------
trunk/dports/games/criticalmass/Portfile
Added Paths:
-----------
trunk/dports/games/criticalmass/files/
trunk/dports/games/criticalmass/files/patch-configure.diff
trunk/dports/games/criticalmass/files/patch-utils_GetDataPath.hpp.diff
Modified: trunk/dports/games/criticalmass/Portfile
===================================================================
--- trunk/dports/games/criticalmass/Portfile 2008-05-28 11:03:00 UTC (rev 37162)
+++ trunk/dports/games/criticalmass/Portfile 2008-05-28 12:20:00 UTC (rev 37163)
@@ -4,7 +4,7 @@
PortSystem 1.0
name criticalmass
-version 0.9.11
+version 1.0.2
categories games
platforms darwin
maintainers nomaintainer
@@ -14,7 +14,9 @@
homepage http://criticalmass.sourceforge.net/critter.php
master_sites sourceforge:criticalmass
distname CriticalMass-${version}
-checksums md5 80a70f8e5cbdcfe8eedf49f91b093b2d
+checksums md5 e2aff114bffa717fb79c82e1dc473ebe \
+ sha1 d2d1f35183e9fbed76fd8da2a948745a4c89f20b \
+ rmd160 6c0b6988f6a52c4b19fbca2525b1daec0202693d
use_bzip2 yes
depends_lib port:libsdl \
@@ -23,25 +25,10 @@
port:libpng \
port:zlib
-post-patch {
- reinplace "s|/Contents/Resources/|/../share/${name}/|g" \
- ${worksrcpath}/game/Makefile.in
-}
+patchfiles patch-configure.diff patch-utils_GetDataPath.hpp.diff
+
configure.args --mandir=${prefix}/share/man
-post-configure {
- reinplace "s|-I${prefix}/include/SDL|-I${prefix}/include -I${prefix}/include/SDL|g" \
- ${worksrcpath}/game/Makefile \
- ${worksrcpath}/utilssdl/Makefile \
- ${worksrcpath}/utilsgl/Makefile
-}
-post-destroot {
- file rename ${destroot}${prefix}/share/Critical_Mass ${destroot}${prefix}/share/${name}
- set dest ${destroot}${prefix}/Applications/MacPorts/CriticalMass.app/Contents/MacOS
- xinstall -m 755 -d ${dest}
- system "ln -sf ${prefix}/bin/critter ${dest}/CriticalMass"
-}
-
platform darwin 9 {
configure.ldflags-append -dylib_file \
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
Added: trunk/dports/games/criticalmass/files/patch-configure.diff
===================================================================
--- trunk/dports/games/criticalmass/files/patch-configure.diff (rev 0)
+++ trunk/dports/games/criticalmass/files/patch-configure.diff 2008-05-28 12:20:00 UTC (rev 37163)
@@ -0,0 +1,11 @@
+--- configure.orig 2008-05-28 22:12:35.000000000 +1000
++++ configure 2008-05-28 22:13:46.000000000 +1000
+@@ -1664,7 +1664,7 @@
+
+
+ # Define the identity of the package.
+- PACKAGE="Critical_Mass"
++ PACKAGE="criticalmass"
+ VERSION=1.0.2
+
+
Added: trunk/dports/games/criticalmass/files/patch-utils_GetDataPath.hpp.diff
===================================================================
--- trunk/dports/games/criticalmass/files/patch-utils_GetDataPath.hpp.diff (rev 0)
+++ trunk/dports/games/criticalmass/files/patch-utils_GetDataPath.hpp.diff 2008-05-28 12:20:00 UTC (rev 37163)
@@ -0,0 +1,18 @@
+--- utils/GetDataPath.hpp.orig 2006-06-26 04:44:22.000000000 +1000
++++ utils/GetDataPath.hpp 2008-05-28 21:54:36.000000000 +1000
+@@ -1,13 +1,13 @@
+ #include <string>
+
+-#ifdef __APPLE__
++#if 0
+ #include <CFBundle.h>
+ #endif
+
+ static inline std::string getDataPath( void)
+ {
+ std::string appPath = "";
+-#ifdef __APPLE__
++#if 0
+ CFURLRef appURLRef = CFBundleCopyBundleURL(CFBundleGetMainBundle());
+ CFStringRef macPath = CFURLCopyFileSystemPath(appURLRef,
+ kCFURLPOSIXPathStyle);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080528/79d7d97d/attachment-0001.htm
More information about the macports-changes
mailing list