[103399] trunk/dports/science/KlustaKwik/Portfile
Revision: 103399 https://trac.macports.org/changeset/103399 Author: ryandesign@macports.org Date: 2013-02-24 12:42:36 -0800 (Sun, 24 Feb 2013) Log Message: ----------- maskedKlustaKwik +native: allow macports-clang-3.2 to be used as fallback compiler Modified Paths: -------------- trunk/dports/science/KlustaKwik/Portfile Modified: trunk/dports/science/KlustaKwik/Portfile =================================================================== --- trunk/dports/science/KlustaKwik/Portfile 2013-02-24 18:31:10 UTC (rev 103398) +++ trunk/dports/science/KlustaKwik/Portfile 2013-02-24 20:42:36 UTC (rev 103399) @@ -70,26 +70,25 @@ apple-gcc-4.2 apple-gcc-4.0 \ gcc-4.2 gcc-4.0 gcc-3.3 - # Error out if fallback compiler is unsupported. - # TODO: Remove when release has auto compiler dependencies and - # macports-clang-3.2 in all fallback lists (2.2?). - pre-configure { - if {[regexp {llvm-gcc|apple-gcc|^gcc} ${configure.compiler}]} { - ui_error " -**** -**** The +native variant requires a compiler that supports \"-march=native\". -****" - return -code error "unsupported compiler: ${configure.compiler}" - } + # Use MacPorts' clang as fallback compiler. + # TODO: Remove when base fallback lists are updated (2.2?). + compiler.fallback-append macports-clang-3.2 + if {${configure.compiler} == "macports-clang-3.2"} { + depends_build-append port:clang-3.2 + depends_skip_archcheck-append clang-3.2 } build.target native } - build.args CXX=${configure.cxx} \ - CXXFLAGS="[get_canonical_archflags cxx]" \ + build.args CXXFLAGS="[get_canonical_archflags cxx]" \ LDFLAGS="[get_canonical_archflags ld]" + pre-build { + build.args-append \ + CXX=${configure.cxx} + } + livecheck.type sourceforge livecheck.regex "/${subport}/${name}-(\[0-9.\]+\[0-9\])" }
participants (1)
-
ryandesign@macports.org