Skip to content

Commit

Permalink
Add a port to create JRE-only package for java/openjdk11.
Browse files Browse the repository at this point in the history
  • Loading branch information
juikim committed Aug 20, 2020
1 parent 90d6c6d commit a03cd74
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions java/Makefile
Expand Up @@ -92,6 +92,7 @@
SUBDIR += netrexx
SUBDIR += netty
SUBDIR += openjdk11
SUBDIR += openjdk11-jre
SUBDIR += openjdk12
SUBDIR += openjdk13
SUBDIR += openjdk14
Expand Down
10 changes: 10 additions & 0 deletions java/openjdk11-jre/Makefile
@@ -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"
10 changes: 9 additions & 1 deletion java/openjdk11/Makefile
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit a03cd74

Please sign in to comment.