[73706] trunk/dports/databases/db47/Portfile

jmr at macports.org jmr at macports.org
Mon Nov 22 00:40:30 PST 2010


Revision: 73706
          http://trac.macports.org/changeset/73706
Author:   jmr at macports.org
Date:     2010-11-22 00:40:26 -0800 (Mon, 22 Nov 2010)
Log Message:
-----------
db47: check for JNI headers (#27405)

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

Modified: trunk/dports/databases/db47/Portfile
===================================================================
--- trunk/dports/databases/db47/Portfile	2010-11-22 08:05:04 UTC (rev 73705)
+++ trunk/dports/databases/db47/Portfile	2010-11-22 08:40:26 UTC (rev 73706)
@@ -89,6 +89,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"] && ![variant_isset no_java]} {
+            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/20101122/6173d61c/attachment.html>


More information about the macports-changes mailing list