diff options
author | glewis <glewis@FreeBSD.org> | 2009-05-22 11:55:34 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2009-05-22 11:55:34 +0800 |
commit | d61585b4e7a7c690e8d6915732dbe3f47b5fc388 (patch) | |
tree | 2c1a4a6f009c3052828248ef98f23783e1ae87a1 /java/openjdk6 | |
parent | 9d351ac6058b99cfab6d6e371460cb36e3d93943 (diff) | |
download | freebsd-ports-gnome-d61585b4e7a7c690e8d6915732dbe3f47b5fc388.tar.gz freebsd-ports-gnome-d61585b4e7a7c690e8d6915732dbe3f47b5fc388.tar.zst freebsd-ports-gnome-d61585b4e7a7c690e8d6915732dbe3f47b5fc388.zip |
. Allow a previously installed version of openjdk6 and jdk16 to also be
used as a bootstrap.
PR: 134440
Submitted by: Jonathan Chen <jonc@chen.org.nz>
Diffstat (limited to 'java/openjdk6')
-rw-r--r-- | java/openjdk6/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/java/openjdk6/Makefile b/java/openjdk6/Makefile index 1c63b79dbb57..7ed0aed6f8ca 100644 --- a/java/openjdk6/Makefile +++ b/java/openjdk6/Makefile @@ -52,10 +52,25 @@ OPENJDK_OSARCH= bsd-${ARCH:S/i386/i586/} ONLY_FOR_ARCHS= amd64 i386 -BOOTSTRAP_JDKS= ${LOCALBASE}/diablo-jdk1.6.0 +BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk6 \ + ${LOCALBASE}/jdk1.6.0 \ + ${LOCALBASE}/diablo-jdk1.6.0 + +# do we have valid native jdk installed? +.for CJDK in ${BOOTSTRAP_JDKS} +. if !defined(BOOTSTRAPJDKDIR) && exists(${CJDK}/bin/javac) +BOOTSTRAPJDKDIR= ${CJDK} +. endif +.endfor + +# if no valid jdk found, set dependency +.if !defined(BOOTSTRAPJDKDIR) +BOOTSTRAPJDKDIR?= ${LOCALBASE}/diablo-jdk1.6.0 +BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/diablo-jdk16 +.endif MAKE_ENV= LANG=C LC_ALL=C \ - ALT_BOOTDIR=${BOOTSTRAP_JDKS} \ + ALT_BOOTDIR=${BOOTSTRAPJDKDIR} \ ALT_FREETYPE_HEADERS_PATH=${LOCALBASE}/include \ ALT_FREETYPE_LIB_PATH=${LOCALBASE}/lib \ ALT_X11_PATH=${LOCALBASE} \ |