[72899] trunk/dports/java/commons-daemon/Portfile

jmr at macports.org jmr at macports.org
Fri Oct 29 15:20:47 PDT 2010


Revision: 72899
          http://trac.macports.org/changeset/72899
Author:   jmr at macports.org
Date:     2010-10-29 15:20:44 -0700 (Fri, 29 Oct 2010)
Log Message:
-----------
commons-daemon: check for JNI headers (#27066)

Modified Paths:
--------------
    trunk/dports/java/commons-daemon/Portfile

Modified: trunk/dports/java/commons-daemon/Portfile
===================================================================
--- trunk/dports/java/commons-daemon/Portfile	2010-10-29 21:41:10 UTC (rev 72898)
+++ trunk/dports/java/commons-daemon/Portfile	2010-10-29 22:20:44 UTC (rev 72899)
@@ -30,6 +30,22 @@
 
 configure.dir       ${worksrcpath}/src/native/unix
 
+platform macosx {
+    pre-configure {
+        if {![file exists "/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} {
+            ui_error "${name} requires the Java for Mac OS X development headers."
+            if {${os.major} == 10} {
+                ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719>"
+            } elseif {${os.major} == 9} {
+                ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20720>"
+            } else {
+                ui_error "Make sure your Xcode installation is complete."
+            }
+            return -code error "missing Java headers"
+        }
+    }
+}
+
 build.dir           ${configure.dir}
 build.target        clean all
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101029/f11a7b84/attachment.html>


More information about the macports-changes mailing list