[112863] trunk/dports/games/openttd/Portfile

cal at macports.org cal at macports.org
Sat Nov 2 16:47:02 PDT 2013


Revision: 112863
          https://trac.macports.org/changeset/112863
Author:   cal at macports.org
Date:     2013-11-02 16:47:02 -0700 (Sat, 02 Nov 2013)
Log Message:
-----------
openttd: part one of the build fix for Mavericks. This will still fail to build on Mavericks, because it uses removed APIs

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

Modified: trunk/dports/games/openttd/Portfile
===================================================================
--- trunk/dports/games/openttd/Portfile	2013-11-02 23:20:15 UTC (rev 112862)
+++ trunk/dports/games/openttd/Portfile	2013-11-02 23:47:02 UTC (rev 112863)
@@ -46,6 +46,20 @@
                         port:openttd-opensfx \
                         port:openttd-openmsx
 
+    # needs to be built against libstdc++, not libc++
+    if {[info exists configure.cxx_stdlib]} {
+        configure.cxx_stdlib    libstdc++
+    }
+    set cxx_stdlibflags {}
+    if {[string match *clang* ${configure.cxx}]} {
+        set cxx_stdlibflags -stdlib=libstdc++
+    }
+
+    configure.cxx       "${configure.cxx} ${cxx_stdlibflags}"
+    configure.env-append \
+                        CFLAGS_BUILD="${configure.cflags}" \
+                        CXXFLAGS_BUILD="${configure.cxxflags}" \
+                        LDFLAGS_BUILD="${configure.ldflags}"
     configure.args      --prefix-dir=${prefix} \
                         --binary-dir=bin \
                         --icon-theme-dir=share/icons/hicolor \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131102/57130c11/attachment.html>


More information about the macports-changes mailing list