[96396] trunk/dports/graphics/fontforge/Portfile

snc at macports.org snc at macports.org
Wed Aug 8 09:50:21 PDT 2012


Revision: 96396
          https://trac.macports.org/changeset/96396
Author:   snc at macports.org
Date:     2012-08-08 09:50:18 -0700 (Wed, 08 Aug 2012)
Log Message:
-----------
fontforge: fix build on 10.8, #35379

Modified Paths:
--------------
    trunk/dports/graphics/fontforge/Portfile

Modified: trunk/dports/graphics/fontforge/Portfile
===================================================================
--- trunk/dports/graphics/fontforge/Portfile	2012-08-08 16:01:22 UTC (rev 96395)
+++ trunk/dports/graphics/fontforge/Portfile	2012-08-08 16:50:18 UTC (rev 96396)
@@ -43,10 +43,26 @@
                 patch-xcode-43.diff \
                 patch-configure.in.diff
 post-patch {
-    reinplace s|@@DEVDIR@@|${developer_dir}| ${worksrcpath}/fontforge/macbinary.c \
-                                               ${worksrcpath}/fontforge/startui.c \
-                                               ${worksrcpath}/gutils/giomime.c
+    if {${os.major} > 11} {
+        reinplace s|@@DEVDIR@@|${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer| ${worksrcpath}/fontforge/macbinary.c \
+                                                   ${worksrcpath}/fontforge/startui.c \
+                                                   ${worksrcpath}/gutils/giomime.c
+        foreach file [glob ${worksrcpath}/fontforge/*.c] {
+            reinplace s|AnchorPoint|FFAnchorPoint|g $file
+        }
+    } else {
+        reinplace s|@@DEVDIR@@|${developer_dir}| ${worksrcpath}/fontforge/macbinary.c \
+                                                   ${worksrcpath}/fontforge/startui.c \
+                                                   ${worksrcpath}/gutils/giomime.c
+    }
 }
+post-configure {
+    if {${os.major} > 11} {
+        reinplace s|AnchorPoint|FFAnchorPoint|g ${worksrcpath}/fontforge/splinefont.h \
+             ${worksrcpath}/fontforge/baseviews.h \
+             ${worksrcpath}/fontforge/views.h
+    }
+}
 
 checksums       [suffix ${distname}] \
                 sha1    8fada07647f102351bb1d7d1c4da487356e7142f \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120808/37223b59/attachment.html>


More information about the macports-changes mailing list