File:  [cvs.NetBSD.org] / pkgsrc / lang / oracle-jre8 / Makefile.common
Revision 1.18: download - view: text, annotated - select for diffs
Sun Nov 3 19:04:04 2019 UTC (5 years ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD
lang: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.

# $NetBSD: Makefile.common,v 1.18 2019/11/03 19:04:04 rillig Exp $
# used by lang/oracle-jre8/Makefile
# used by lang/oracle-jdk8/Makefile

CATEGORIES=	lang java
COMMENT=	Oracle Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.oracle.com/technetwork/java/index.html
DOWNLOAD=	https://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
ARCHIVE=	https://www.oracle.com/technetwork/java/javase/archive-139210.html

RESTRICTED=		Redistribution of repackaged binaries not permitted
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_SRC_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}

EMUL_PLATFORMS=		darwin-x86_64 linux-i386 linux-x86_64 solaris-x86_64

USE_TOOLS+=	pax

# Contains pre-built binaries
CHECK_RELRO_SUPPORTED=	no
CHECK_SHLIBS_SUPPORTED=	no
CHECK_SSP_SUPPORTED=	no
CTF_SUPPORTED=		no

# JDK8 Update number
UPDATE_NUMBER=	202

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

.if ${EMUL_OPSYS} == "solaris"
DIST_OS=		solaris
.elif ${EMUL_OPSYS} == "darwin"
DIST_OS=		macosx
.else
DIST_OS=		linux
EMUL_MODULES.linux=	compat locale x11
.endif

DIST_ARCH.i386=		i586
DIST_ARCH.x86_64=	x64

.if defined(DIST_ARCH.${EMUL_ARCH})
DIST_ARCH=		${DIST_ARCH.${EMUL_ARCH}}
.else
DIST_ARCH=		${EMUL_ARCH}
.endif

JAVA_ARCH.i386=		i386
JAVA_ARCH.x86_64=	amd64

.if defined(JAVA_ARCH.${EMUL_ARCH})
JAVA_ARCH=		${JAVA_ARCH.${EMUL_ARCH}}
.else
JAVA_ARCH=		${EMUL_ARCH}
.endif
FILES_SUBST+=		JAVA_ARCH=${JAVA_ARCH:Q}

INTERACTIVE_STAGE=	fetch
BUILD_DIRS=		# empty

JAVA_HOME=		${PREFIX}/java/oracle-8
JAVA_NAME=		oracle8
JAVA_UNLIMIT=		datasize
JAVA_LD_LIBRARY_PATH=	${JAVA_HOME}/lib/${JAVA_ARCH}/jli

MESSAGE_SUBST+=	JAVA_HOME=${JAVA_HOME:Q}

EXTRACT_ENV+=	HOME=${WRKDIR}/fake_home

# the following forces compression of jarfiles, which is a huge disk
# space win and trivial to no speed reduction in the face of the
# new class sharing in Java 5+... -tvierling
EXTRACT_ENV+=	UNPACK200_FLAGS=-Htrue

FETCH_MESSAGE+=	" The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}"
FETCH_MESSAGE+=	""
FETCH_MESSAGE+=	" must be fetched into:"
FETCH_MESSAGE+=	"	${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
FETCH_MESSAGE+=	" from:"
FETCH_MESSAGE+=	"	${DOWNLOAD}"
FETCH_MESSAGE+=	"	or ${ARCHIVE}"
FETCH_MESSAGE+=	""
FETCH_MESSAGE+=	" Click Download for '${DOWNLOAD_NAME}', read and accept the"
FETCH_MESSAGE+=	" license, then choose '${EMUL_OPSYS} tar.gz file'."

PRINT_PLIST_AWK+=	/^java\/.*\/man\// { sub("\\.gz$$", ""); }

do-install:
	${INSTALL_PROGRAM_DIR} ${DESTDIR}${JAVA_HOME}
	cd ${WRKSRC} && pax -rwp ma . ${DESTDIR}${JAVA_HOME}

.include "../../mk/java-env.mk"

CVSweb <webmaster@jp.NetBSD.org>