Add a port to create JRE-only package for java/openjdk11.

This commit is contained in:
Jung-uk Kim 2020-08-20 02:23:07 +00:00
parent 90d6c6dae2
commit a03cd74a5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545487
3 changed files with 20 additions and 1 deletions

View file

@ -92,6 +92,7 @@
SUBDIR += netrexx
SUBDIR += netty
SUBDIR += openjdk11
SUBDIR += openjdk11-jre
SUBDIR += openjdk12
SUBDIR += openjdk13
SUBDIR += openjdk14

View file

@ -0,0 +1,10 @@
# $FreeBSD$
PKGNAMESUFFIX= ${JDK_MAJOR_VERSION}-jre
COMMENT= Java Runtime Environment ${JDK_MAJOR_VERSION}
BUILD_JRE= yes
MASTERDIR= ${.CURDIR}/../openjdk11
.include "${MASTERDIR}/Makefile"

View file

@ -7,7 +7,7 @@ CATEGORIES= java devel
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
MAINTAINER= java@FreeBSD.org
COMMENT= Java Development Kit ${JDK_MAJOR_VERSION}
COMMENT?= Java Development Kit ${JDK_MAJOR_VERSION}
LICENSE= GPLv2
@ -49,7 +49,11 @@ MAKE_ENV= LANG="C" \
JDK_OSARCH= bsd-${ARCH:S/amd64/x86_64/:S/i386/x86/:S/powerpc64/ppc64/}
JDK_BUILDDIR= ${WRKSRC}/build/${JDK_OSARCH}-normal-${JDK_BUILD_JVM}-${JDK_BUILD_TYPE}
.if defined(BUILD_JRE)
JDK_IMAGEDIR= ${JDK_BUILDDIR}/images/jre
.else
JDK_IMAGEDIR= ${JDK_BUILDDIR}/images/jdk
.endif
INSTALLDIR= ${PREFIX}/${PKGBASE}
NOPRECIOUSMAKEVARS= yes
@ -97,7 +101,11 @@ CONFIGURE_ARGS= --with-boot-jdk=${BOOTSTRAPJDKDIR} \
JAVAVMS_COMMENT= OpenJDK${JDK_MAJOR_VERSION}
.if defined(BUILD_JRE)
ALL_TARGET= legacy-images
.else
ALL_TARGET= images
.endif
JDK_BUILD_TYPE= release
.include <bsd.port.pre.mk>