Modified: trunk/dports/lang/apple-gcc42/Portfile (87622 => 87623)
--- trunk/dports/lang/apple-gcc42/Portfile 2011-11-29 02:29:07 UTC (rev 87622)
+++ trunk/dports/lang/apple-gcc42/Portfile 2011-11-29 04:43:53 UTC (rev 87623)
@@ -117,6 +117,17 @@
}
}
+pre-build {
+ foreach {badport badfile} "libunwind-headers ${prefix}/include/unwind.h" {
+ if {[file exists ${badfile}]} {
+ ui_error "${name} cannot be built while ${badport} is active."
+ ui_error "Please deactivate ${badport} and try again."
+ ui_error "You can reactivate ${badport} again later."
+ return -code error "${badport} is installed"
+ }
+ }
+}
+
# TODO: Use MacPorts dependencies
build.env \
LIBRARY_PATH="/usr/lib" \