Changeset 100489


Ignore:
Timestamp:
Dec 14, 2012, 8:01:53 AM (7 years ago)
Author:
blair@…
Message:

db46-java: set JAVA_HOME to JDK 1.5 to ensure dependent ports can compile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/db46/Portfile

    r98556 r100489  
    7575    depends_lib-append      port:${name}
    7676
     77    # Compile BerkeleyDB's Java bindings with Java 1.5 as this is the
     78    # oldest version of Java that the bindings are known to compile
     79    # with.  This is done because ports that depend upon db46-java may
     80    # be compiled with Apache Ant and Ant explicitly sets JAVA_HOME to
     81    # /System/Library/Frameworks/JavaVM.framework/Home if JAVA_HOME is
     82    # not already set.  If Oracle's JDK 7 is installed on the Mac and
     83    # is set as the default Java version, then when BerkeleyDB's Java
     84    # bindings are compiled the *.class files will be a newer format
     85    # then the older Java in $JAVA_HOME can read.  So just compile
     86    # BerkeleyDB with the oldest version of Java that can compile it.
     87    # There is no harm in doing so as at application run time newer
     88    # JVMs can read older class files and optimize them as if they
     89    # were compiled with a newer version of Java.  The only
     90    # performance loss may be a slightly longer class loading time,
     91    # which is optimized in newer versions of Java.
     92    configure.env   JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
    7793    configure.args-append   --enable-java
     94
     95    build.env       JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
    7896
    7997    platform macosx {
Note: See TracChangeset for help on using the changeset viewer.