[98751] trunk/dports/games/lincity

jeremyhu at macports.org jeremyhu at macports.org
Sun Oct 14 13:26:41 PDT 2012


Revision: 98751
          http://trac.macports.org//changeset/98751
Author:   jeremyhu at macports.org
Date:     2012-10-14 13:26:41 -0700 (Sun, 14 Oct 2012)
Log Message:
-----------
lincity: Build fix

Modified Paths:
--------------
    trunk/dports/games/lincity/Portfile

Added Paths:
-----------
    trunk/dports/games/lincity/files/static_inline.patch

Modified: trunk/dports/games/lincity/Portfile
===================================================================
--- trunk/dports/games/lincity/Portfile	2012-10-14 19:28:09 UTC (rev 98750)
+++ trunk/dports/games/lincity/Portfile	2012-10-14 20:26:41 UTC (rev 98751)
@@ -17,7 +17,8 @@
 homepage         http://lincity.sourceforge.net/
 platforms        darwin
 master_sites     sourceforge
-checksums        md5 007159a2e6cce680c629a73f97fe96f2
+checksums        rmd160  e50762b5daa3346342bfe199deebf8ea9a9b0f4d \
+                 sha256  b2fdca8ce3fd0fa5f79a80a96c1494dc0750e951c7862273c82156153856f0c2
 
 depends_lib \
 	port:xorg-libsm \
@@ -25,6 +26,6 @@
 	port:libpng \
 	port:gettext
 
-patchfiles       patch-readpng.c
+patchfiles       patch-readpng.c static_inline.patch
 
 configure.args   --mandir=${prefix}/share/man

Added: trunk/dports/games/lincity/files/static_inline.patch
===================================================================
--- trunk/dports/games/lincity/files/static_inline.patch	                        (rev 0)
+++ trunk/dports/games/lincity/files/static_inline.patch	2012-10-14 20:26:41 UTC (rev 98751)
@@ -0,0 +1,40 @@
+--- mouse.c.orig	2012-10-14 13:17:02.000000000 -0700
++++ mouse.c	2012-10-14 13:17:37.000000000 -0700
+@@ -1056,7 +1056,7 @@ choose_residence (void)
+    and set to 1 if the existing transport if the more expensive sort
+    (e.g. GROUP_RAIL when overwriting GROUP_ROAD).
+ */
+-inline int
++static inline int
+ mt_erase(int x, int y)
+ {
+     if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
+@@ -1093,7 +1093,7 @@ mt_erase(int x, int y)
+     return 0;
+ }
+ 
+-inline int
++static inline int
+ mt_temp(int x, int y)
+ {
+     if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
+@@ -1127,7 +1127,7 @@ mt_temp(int x, int y)
+     return 0;
+ }
+ 
+-inline int
++static inline int
+ mt_perm(int x, int y)
+ {
+     /* By now, it has already been mt_erase()'d */
+--- pixmap.c.orig	2012-10-14 13:19:05.000000000 -0700
++++ pixmap.c	2012-10-14 13:19:33.000000000 -0700
+@@ -390,7 +390,7 @@ resize_pixmap (int new_width, int new_he
+ 		  likes it in the file.  Still need to fix this in autoconf,
+                   but for now this will do. */
+ #if !defined (WIN32)
+-inline int 
++int 
+ pixmap_index (int x, int y)
+ {
+     return y*pixmap_width + x;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121014/216e581d/attachment.html>


More information about the macports-changes mailing list