Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS support for adoptopenjdk11-bin package #74

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions lang/adoptopenjdk11-bin/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# $NetBSD: Makefile,v 1.4 2020/05/29 10:57:06 abs Exp $

DISTNAME= OpenJDK11U-jdk_x64_linux_hotspot_11.0.7_10
PKGNAME= ${DISTNAME:S/OpenJDK11U-jdk_x64_linux_hotspot_/adoptopenjdk11-bin-/:S/_/./:tl}
PKGREVISION= 1
EMUL_PLATFORMS= darwin-x86_64 linux-x86_64

.include "../../mk/bsd.prefs.mk"

.if ${EMUL_OPSYS} == "linux"
JDK_TARGET=linux
EMUL_MODULES.linux= compat locale x11
.elif ${EMUL_OPSYS} == "darwin"
JDK_TARGET=mac
.endif

DISTNAME= OpenJDK11U-jdk_x64_${JDK_TARGET}_hotspot_11.0.7_10
PKGNAME= ${DISTNAME:S/OpenJDK11U-jdk_x64_${JDK_TARGET}_hotspot_/adoptopenjdk11-bin-/:S/_/./:tl}
PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GITHUB:=AdoptOpenJDK/}
GITHUB_PROJECT= openjdk11-binaries
Expand All @@ -13,7 +24,11 @@ HOMEPAGE= https://adoptopenjdk.net/
COMMENT= AdoptOpenJDK 11 Java Development Kit binary distribution
LICENSE= gnu-gpl-v2 # with classpath exception

WRKSRC= ${WRKDIR}/${GITHUB_RELEASE}
.if ${EMUL_OPSYS} == "linux"
WRKSRC= ${WRKDIR}/${GITHUB_RELEASE}
.elif ${EMUL_OPSYS} == "darwin"
WRKSRC= ${WRKDIR}/${GITHUB_RELEASE}/Contents/Home
.endif
BUILD_DIRS= # empty; instead of NO_BUILD=yes to create wrappers

# Contains pre-built binaries
Expand All @@ -22,9 +37,6 @@ CHECK_SHLIBS_SUPPORTED= no
CHECK_SSP_SUPPORTED= no
CTF_SUPPORTED= no

EMUL_PLATFORMS= linux-x86_64
EMUL_MODULES.linux= compat locale x11

USE_TOOLS+= pax
USE_LANGUAGES= # none

Expand Down
Loading