[115379] trunk/dports/graphics/lensfun/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Dec 31 21:34:31 PST 2013


Revision: 115379
          https://trac.macports.org/changeset/115379
Author:   jeremyhu at macports.org
Date:     2013-12-31 21:34:31 -0800 (Tue, 31 Dec 2013)
Log Message:
-----------
lensfun: Link against correct C++ runtime

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

Modified: trunk/dports/graphics/lensfun/Portfile
===================================================================
--- trunk/dports/graphics/lensfun/Portfile	2014-01-01 05:31:42 UTC (rev 115378)
+++ trunk/dports/graphics/lensfun/Portfile	2014-01-01 05:34:31 UTC (rev 115379)
@@ -6,6 +6,7 @@
 
 name                lensfun
 version             0.2.8
+revision            1
 categories          graphics
 platforms           darwin
 maintainers         gmail.com:julians37
@@ -38,8 +39,14 @@
     reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/build/tibs/target/mac.mak
 }
 
+# TODO: Simplify once MacPorts 2.3 is released
+set cxx_stdlibflags {}
+if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} {
+    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
+}
+
 configure.args      -v
-configure.env       LD="${configure.cxx}"
+configure.env       LD="${configure.cxx} ${cxx_stdlibflags}"
 
 platform darwin 8 {
     # lensfun requires make >= 3.81; Tiger comes with 3.80
@@ -74,7 +81,7 @@
 
 configure.universal_args-delete --disable-dependency-tracking
 
-build.args          V=1 GCC.LD="${configure.cxx}"
+build.args          V=1 GCC.LD="${configure.cxx} ${cxx_stdlibflags}"
 
 livecheck.type      regex
 livecheck.url       http://developer.berlios.de/project/showfiles.php?group_id=9034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131231/fc32fc65/attachment.html>


More information about the macports-changes mailing list