[72692] trunk/dports/devel/cmake/Portfile
css at macports.org
css at macports.org
Sun Oct 24 08:31:40 PDT 2010
Revision: 72692
http://trac.macports.org/changeset/72692
Author: css at macports.org
Date: 2010-10-24 08:31:36 -0700 (Sun, 24 Oct 2010)
Log Message:
-----------
Check for the system jni.h on Darwin, and show an error message indicating the user should download the Java for Mac OS X Developer Package from Apple. refs #26934
Modified Paths:
--------------
trunk/dports/devel/cmake/Portfile
Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile 2010-10-24 10:58:14 UTC (rev 72691)
+++ trunk/dports/devel/cmake/Portfile 2010-10-24 15:31:36 UTC (rev 72692)
@@ -6,7 +6,7 @@
name cmake
version 2.8.2
-revision 3
+revision 4
set branch [join [lrange [split ${version} .] 0 1] .]
categories devel
maintainers css
@@ -39,6 +39,11 @@
}
platform darwin {
+ pre-configure {
+ if {![file exists "/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} {
+ return -code error "\n********************\n${name} requires the Java for Mac OS X Developer Package from Apple.\nPlease download and install this package from http://developer.apple.com/.\n********************"
+ }
+ }
post-configure {
if {[variant_isset universal]} {
set dirs {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101024/66851404/attachment.html>
More information about the macports-changes
mailing list