aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2003-08-03 01:28:31 +0800
committerglewis <glewis@FreeBSD.org>2003-08-03 01:28:31 +0800
commit1179eb1ee522ea5128d2db0e488e70765265ea0a (patch)
tree42d267d2a847cc6ee86984939ca01730c745b920 /java
parent9ca9d5623784d4a71c4572c3e0bebcc44db61c62 (diff)
downloadfreebsd-ports-gnome-1179eb1ee522ea5128d2db0e488e70765265ea0a.tar.gz
freebsd-ports-gnome-1179eb1ee522ea5128d2db0e488e70765265ea0a.tar.zst
freebsd-ports-gnome-1179eb1ee522ea5128d2db0e488e70765265ea0a.zip
1. Autodetect a previous jdk13 install and use that to bootstrap by
default if it exists. This can be overidden either using JDK13DIR or setting WITH_LINUX_BOOTSTRAP. 2. Don't create directories for new files, invoke patch with -p0. PR: 52195 [1] Submitted by: David Yeske <dyeske@yahoo.com> [1 - based on]
Diffstat (limited to 'java')
-rw-r--r--java/jdk13/Makefile32
1 files changed, 12 insertions, 20 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index 6f2b150ce7f2..9770300aac0f 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -21,9 +21,6 @@ COMMENT= Java Development Kit 1.3
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
zip:${PORTSDIR}/archivers/zip \
${X11BASE}/lib/libXm.so:${PORTSDIR}/x11-toolkits/open-motif
-.if !defined(NATIVE_BOOTSTRAP)
-BUILD_DEPENDS+= ${JDK13DIR}/bin/javac:${PORTSDIR}/java/linux-blackdown-jdk13
-.endif
.if !defined(WITHOUT_PLUGIN)
BUILD_DEPENDS+= msgfmt:${PORTSDIR}/devel/gettext
LIB_DEPENDS= glib12.3:$(PORTSDIR)/devel/glib12 \
@@ -49,12 +46,6 @@ WRKSRC= ${WRKDIR}/j2sdk1.3.1/make
JDK_VERSION= 1.3.1
JDK_PATCHSET_VERSION= 8
-.if defined(NATIVE_BOOTSTRAP)
-JDK13DIR?= ${LOCALBASE}/jdk${JDK_VERSION}
-.else
-JDK13DIR?= ${LOCALBASE}/linux-blackdown-jdk${JDK_VERSION}
-.endif
-
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
RESTRICTED= "Redistribution of pre-compiled binaries is not permitted"
@@ -118,6 +109,15 @@ PLIST_SUB+= HOTSPOT:="@comment "
.include <bsd.port.pre.mk>
+.if !defined(JDK13DIR)
+.if defined(WITH_LINUX_BOOTSTRAP) || !exists(${PREFIX}/jdk${JDK_VERSION}/bin/javac)
+JDK13DIR= ${LOCALBASE}/linux-blackdown-jdk${JDK_VERSION}
+BUILD_DEPENDS+= ${JDK13DIR}/bin/javac:${PORTSDIR}/java/linux-blackdown-jdk13
+.else
+JDK13DIR= ${LOCALBASE}/jdk${JDK_VERSION}
+.endif
+.endif
+
.if defined(WITH_HOTSPOT) && ${OSVERSION} < 500039
USE_GCC= 3.2
BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32
@@ -181,16 +181,7 @@ pre-everything:
pre-patch:
@cd ${WRKDIR} && \
${CHMOD} -R u+w * && \
- ${MKDIR} j2sdk1.3.1/ext/plugin/oji-plugin/include/bsd/jdk12 && \
- ${MKDIR} j2sdk1.3.1/ext/plugin/oji-plugin/include/solaris/navig5/private && \
- ${MKDIR} j2sdk1.3.1/src/bsd/doc/man && \
- ${MKDIR} hotspot1.3.1/build/bsd && \
- ${MKDIR} hotspot1.3.1/build/bsd/makefiles && \
- ${MKDIR} hotspot1.3.1/build/bsd/package && \
- ${MKDIR} hotspot1.3.1/src/os/bsd/launcher && \
- ${MKDIR} hotspot1.3.1/src/os/bsd/vm && \
- ${MKDIR} hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
- ${PATCH} < ${WRKDIR}/jdk131.patches
+ ${PATCH} -p0 < ${WRKDIR}/jdk131.patches
post-patch:
.if defined(WITH_HOTSPOT)
@@ -202,7 +193,8 @@ post-patch:
.endif
.endif
-.if !defined(NATIVE_BOOTSTRAP)
+.if defined(WITH_LINUX_BOOTSTRAP) || !exists(${PREFIX}/jdk${JDK_VERSION}/bin/javac)
+# Some checks for bootstrapping with a Linux JDK
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \