[72900] trunk/dports/databases/db46/Portfile

jmr at macports.org jmr at macports.org
Fri Oct 29 15:33:02 PDT 2010


Revision: 72900
          http://trac.macports.org/changeset/72900
Author:   jmr at macports.org
Date:     2010-10-29 15:33:00 -0700 (Fri, 29 Oct 2010)
Log Message:
-----------
db46: check for JNI headers (#26939, maintainer timeout)

Modified Paths:
--------------
    trunk/dports/databases/db46/Portfile

Modified: trunk/dports/databases/db46/Portfile
===================================================================
--- trunk/dports/databases/db46/Portfile	2010-10-29 22:20:44 UTC (rev 72899)
+++ trunk/dports/databases/db46/Portfile	2010-10-29 22:33:00 UTC (rev 72900)
@@ -81,6 +81,22 @@
         configure.args-append   --enable-tcl --with-tcl=${prefix}/lib
 }
 
+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"
+        }
+    }
+}
+
 if { [variant_isset universal] } {
         if { ${os.arch}=="i386" } {
                 if { ${os.major} >= 10 } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101029/9a295498/attachment.html>


More information about the macports-changes mailing list