Ticket #20408: tiff.diff

File tiff.diff, 1.1 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    22
    33PortSystem 1.0
    44PortGroup  muniversal 1.0
     5PortGroup  xcodeversion 1.0
     6
     7# http://developer.apple.com/qa/qa2007/qa1567.html
     8minimum_xcodeversions   {9 3.1}
    59
    610name            tiff
    711version         3.8.2
     
    7276            }
    7377        }
    7478    }
    75     pre-extract {
    76         if {9 == ${os.major}} {
    77             # http://developer.apple.com/qa/qa2007/qa1567.html
    78             set minimum_xcodeversion 3.1
    79             set current_xcodeversion [exec defaults read [exec xcode-select -print-path]/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
    80             if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
    81                 ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
    82                 return -code error "incompatible Xcode version"
    83             }
    84         }
    85     }
    8679}
    8780
    8881livecheck.check regex