Ticket #32041: apple-gcc42.diff

File apple-gcc42.diff, 674 bytes (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • Portfile

     
    117117        }
    118118}
    119119
     120pre-build {
     121    foreach {badport badfile} "libunwind-headers ${prefix}/include/unwind.h" {
     122        if {[file exists ${badfile}]} {
     123            ui_error "${name} cannot be built while ${badport} is active."
     124            ui_error "Please deactivate ${badport} and try again."
     125            ui_error "You can reactivate ${badport} again later."
     126            return -code error "${badport} is installed"
     127        }
     128    }
     129}
     130
    120131# TODO: Use MacPorts dependencies
    121132build.env \
    122133        LIBRARY_PATH="/usr/lib" \