mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
83bea81d12
This version need linux-c7 and crashes with linux-c6. Works only on amd64. PR: 228848
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= serverjre
|
|
PORTVERSION= ${JRE_VERSION}.${JRE_UPDATE_VERSION}.${JRE_PATCH_VERSION}
|
|
CATEGORIES= java
|
|
MASTER_SITES= #
|
|
PKGNAMEPREFIX= linux-${JRE_VENDOR}-
|
|
PKGNAMESUFFIX= ${JRE_VERSION}
|
|
DISTNAME= serverjre-${JRE_VERSION}.${JRE_UPDATE_VERSION}.${JRE_PATCH_VERSION}_linux-x64_bin
|
|
|
|
MAINTAINER= java@FreeBSD.org
|
|
COMMENT= Oracle Java ${JRE_VERSION} Server Runtime Environment for Linux
|
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
RUN_DEPENDS= javavm:java/javavmwrapper
|
|
|
|
RESTRICTED= Redistribution of repackaged binaries not permitted
|
|
|
|
WRKSRC= ${WRKDIR}/jdk-${DL_JRE_VERSION}
|
|
PLIST_SUB= T=${APP_HOME:S/^${PREFIX}\///} PORTVERSION=${PORTVERSION}
|
|
|
|
NO_BUILD= yes
|
|
USES= linux:c7
|
|
|
|
JRE_VENDOR= oracle
|
|
JRE_VERSION= 10
|
|
JRE_UPDATE_VERSION= 0
|
|
JRE_PATCH_VERSION= 1
|
|
.if ${JRE_PATCH_VERSION} == 0
|
|
.if ${JRE_UPDATE_VERSION} == 0
|
|
DL_JRE_VERSION= ${JRE_VERSION}
|
|
.else
|
|
DL_JRE_VERSION= ${JRE_VERSION}.${JRE_UPDATE_VERSION}
|
|
.endif
|
|
.else
|
|
DL_JRE_VERSION= ${JRE_VERSION}.${JRE_UPDATE_VERSION}.${JRE_PATCH_VERSION}
|
|
.endif
|
|
DOWNLOAD_URL= http://www.oracle.com/technetwork/java/javase/downloads/index.html
|
|
|
|
APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JRE_VERSION}
|
|
BIN_DIRS= bin
|
|
LIB_DIRS= ${BIN_DIRS:S|bin$|lib|}
|
|
bash_CMD= ${SH}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
IGNORE?=You must manually fetch the J2SE RE download for the Linux platform (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${APP_HOME}
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${APP_HOME}
|
|
|
|
.include <bsd.port.post.mk>
|