Modified: trunk/dports/science/KlustaKwik/Portfile (103358 => 103359)
--- trunk/dports/science/KlustaKwik/Portfile 2013-02-22 22:47:53 UTC (rev 103358)
+++ trunk/dports/science/KlustaKwik/Portfile 2013-02-22 23:46:02 UTC (rev 103359)
@@ -66,12 +66,17 @@
apple-gcc-4.2 apple-gcc-4.0 \
gcc-4.2 gcc-4.0 gcc-3.3
- # Use MacPorts' clang if fallback compiler is unsupported.
- # TODO: Remove when base fallback lists are updated (2.2?).
- if {[regexp {llvm-gcc|apple-gcc|^gcc} ${configure.compiler}]} {
- configure.compiler macports-clang-3.2
- depends_build-append port:clang-3.2
- depends_skip_archcheck-append clang-3.2
+ # 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}"
+ }
}
build.target native