Changeset 72899


Ignore:
Timestamp:
Oct 29, 2010, 10:20:44 PM (9 years ago)
Author:
jmr@…
Message:

commons-daemon: check for JNI headers (#27066)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/commons-daemon/Portfile

    r72252 r72899  
    3131configure.dir       ${worksrcpath}/src/native/unix
    3232
     33platform macosx {
     34    pre-configure {
     35        if {![file exists "/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} {
     36            ui_error "${name} requires the Java for Mac OS X development headers."
     37            if {${os.major} == 10} {
     38                ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719>"
     39            } elseif {${os.major} == 9} {
     40                ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20720>"
     41            } else {
     42                ui_error "Make sure your Xcode installation is complete."
     43            }
     44            return -code error "missing Java headers"
     45        }
     46    }
     47}
     48
    3349build.dir           ${configure.dir}
    3450build.target        clean all
Note: See TracChangeset for help on using the changeset viewer.