Bryan Drewery 13f3363759 java/bootstrap-openjdk*: Mark these ports as bundling libraries.
This prevents Pkg from recording the bundled libraries as
dependencies.  This otherwise can confuse Pkg and Poudriere
about missing dependencies.

Reviewed by:	bapt
Differential Revision: https://reviews.freebsd.org/D53723
2025-11-14 09:59:45 -08:00

62 lines
1.3 KiB
Makefile

PORTNAME= openjdk17
PORTVERSION= 17.0.1.12.1
PORTREVISION= 2
CATEGORIES= java devel
MASTER_SITES= LOCAL/glewis/bootstrap-openjdk17 \
LOCAL/pkubaj/bootstrap-openjdk17
PKGNAMEPREFIX= bootstrap-
DISTNAME= ${JDK_PORT}-${JDK_ARCH}-${PORTVERSION}
MAINTAINER= java@FreeBSD.org
COMMENT= Java Development Kit 17
WWW= https://openjdk.java.net/
LICENSE= GPLv2
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc powerpc64 powerpc64le
USES= tar:xz
NO_BUILD= yes
PLIST_SUB= JDK_ROOT=${JDK_ROOT}
WRKSRC= ${WRKDIR}/${JDK_ROOT}
JDK_PORT= ${PKGNAMEPREFIX}${PORTNAME}
JDK_ROOT= ${PKGNAMEPREFIX}${PORTNAME}
JDK_ARCH= ${ARCH:C/armv.*/arm/}
INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}
BUNDLE_LIBS= yes
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500000
RUN_DEPENDS+= compat14x-${ARCH}>=0:misc/compat14x
.endif
.if ${ARCH} == powerpc
PLIST_SUB+= NOT_PPC="@comment "
.else
PLIST_SUB+= NOT_PPC=""
.endif
.if ${ARCH:Mpowerpc64*}
PLIST_SUB+= NOT_PPC64="@comment "
.else
PLIST_SUB+= NOT_PPC64=""
.endif
.if ${ARCH} == i386
PLIST_SUB+= NOT_I386="@comment "
.else
PLIST_SUB+= NOT_I386=""
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
@cd ${WRKSRC} && ${COPYTREE_BIN} bin ${INSTALLDIR}
@${CHMOD} a+x ${INSTALLDIR}/lib/jspawnhelper
.include <bsd.port.mk>