Revision
148271
Author
nicos@macports.org
Date
2016-05-02 04:35:31 -0700 (Mon, 02 May 2016)

Log Message

kst: do not force using clang on older platforms (ticket #51274)

Modified Paths

Diff

Modified: trunk/dports/science/kst/Portfile (148270 => 148271)


--- trunk/dports/science/kst/Portfile	2016-05-02 11:06:51 UTC (rev 148270)
+++ trunk/dports/science/kst/Portfile	2016-05-02 11:35:31 UTC (rev 148271)
@@ -39,9 +39,14 @@
 configure.args-append    -Dkst_install_prefix=${applications_dir} \
                          -Dkst_install_libdir=lib \
                          -Dkst_release=ON \
-                         -Dkst_clang=ON \
                          -Dkst_3rdparty=ON
 
+platform darwin {
+    if {${os.major} > 11} {
+        configure.args-append    -Dkst_clang=ON
+    }
+}
+
 post-destroot {
     move ${destroot}${applications_dir}/share/kst ${destroot}${prefix}/share
     delete ${destroot}${prefix}/lib