[96465] trunk/dports/lang/sdcc29/Portfile

cal at macports.org cal at macports.org
Fri Aug 10 12:54:31 PDT 2012


Revision: 96465
          https://trac.macports.org/changeset/96465
Author:   cal at macports.org
Date:     2012-08-10 12:54:31 -0700 (Fri, 10 Aug 2012)
Log Message:
-----------
sdcc29: Fix build on 10.8+ by coping reinplace from 10.7 block, #35619, openmaintainer

Modified Paths:
--------------
    trunk/dports/lang/sdcc29/Portfile

Modified: trunk/dports/lang/sdcc29/Portfile
===================================================================
--- trunk/dports/lang/sdcc29/Portfile	2012-08-10 19:44:07 UTC (rev 96464)
+++ trunk/dports/lang/sdcc29/Portfile	2012-08-10 19:54:31 UTC (rev 96465)
@@ -52,16 +52,18 @@
     build.type              gnu
 }
 
-platform darwin 11 {
-    post-patch {
-        # 10.7 provides 'getline()' already, but it is not
-        # interchangeable with that provided by SDCC. change SDCC's
-        # internal to "sdcc_getline", but not the #includes
-        reinplace "/getline/s at getline @sdcc_getline @g" \
-            ${worksrcpath}/as/link/getline.h \
-            ${worksrcpath}/as/link/getline.c \
-            ${worksrcpath}/as/link/lklib.c \
-            ${worksrcpath}/as/link/lkrel.c \
-            ${worksrcpath}/as/link/lksdcclib.c
+platform darwin {
+    if {${os.major} >= 11} {
+        post-patch {
+            # 10.7 provides 'getline()' already, but it is not
+            # interchangeable with that provided by SDCC. change SDCC's
+            # internal to "sdcc_getline", but not the #includes
+            reinplace "/getline/s at getline @sdcc_getline @g" \
+                ${worksrcpath}/as/link/getline.h \
+                ${worksrcpath}/as/link/getline.c \
+                ${worksrcpath}/as/link/lklib.c \
+                ${worksrcpath}/as/link/lkrel.c \
+                ${worksrcpath}/as/link/lksdcclib.c
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120810/067eb954/attachment.html>


More information about the macports-changes mailing list