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

michaelld at macports.org michaelld at macports.org
Fri Sep 23 08:09:42 PDT 2011


Revision: 84354
          http://trac.macports.org/changeset/84354
Author:   michaelld at macports.org
Date:     2011-09-23 08:09:42 -0700 (Fri, 23 Sep 2011)
Log Message:
-----------
sdcc29: Patch 'getline' usage to not conflict with 10.7's build-in as found in 'stdio.h'.

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

Modified: trunk/dports/lang/sdcc29/Portfile
===================================================================
--- trunk/dports/lang/sdcc29/Portfile	2011-09-23 14:29:21 UTC (rev 84353)
+++ trunk/dports/lang/sdcc29/Portfile	2011-09-23 15:09:42 UTC (rev 84354)
@@ -51,3 +51,17 @@
     build.cmd               ${prefix}/bin/gmake
     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
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110923/2a399ad3/attachment.html>


More information about the macports-changes mailing list