summaryrefslogtreecommitdiff
path: root/java/openjdk7
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2010-09-23 05:43:07 +0000
committerGreg Lewis <glewis@FreeBSD.org>2010-09-23 05:43:07 +0000
commit8e0786efb426900f3d70b03f00847ef35ca12924 (patch)
treed0ca1b5c9bac588e7b7b096ecb6f7db32c100deb /java/openjdk7
parent- seperate out PKGNAMES for security/gag and sysutils/gag (diff)
. Respect MAKE_JOB_NUMBERS and use that to set up the number of HotSpot
make jobs. If not, fall back to the number of CPUs. Only the HotSpot part of the build is safe to parallelise, so mark the port as MAKE_JOBS_UNSAFE.
Notes
Notes: svn path=/head/; revision=261687
Diffstat (limited to 'java/openjdk7')
-rw-r--r--java/openjdk7/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile
index 5bfce842054d..f07af9f7bb18 100644
--- a/java/openjdk7/Makefile
+++ b/java/openjdk7/Makefile
@@ -39,6 +39,7 @@ LATEST_LINK= openjdk7
USE_GMAKE= YES
USE_ICONV= YES
USE_XORG+= x11 xext xi xrender xt xtst
+MAKE_JOBS_UNSAFE= yes
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
@@ -76,8 +77,13 @@ MAKE_ENV+= LANG="C" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
MILESTONE="fcs"
-.if defined(HOTSPOT_BUILD_JOBS)
-MAKE_ENV+= HOTSPOT_BUILD_JOBS="${HOTSPOT_BUILD_JOBS}"
+.if !defined(DISABLE_MAKE_JOBS)
+.if defined(MAKE_JOBS_NUMBER)
+BUILD_JOBS_NUMBER= ${MAKE_JOBS_NUMBER}
+.else
+BUILD_JOBS_NUMBER= `${SYSCTL} -n kern.smp.cpus`
+.endif
+MAKE_ENV+= HOTSPOT_BUILD_JOBS=${BUILD_JOBS_NUMBER}
.endif
BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk7 \