Modified: trunk/dports/graphics/lensfun/Portfile (115378 => 115379)
--- 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