2012-05-01 23:18:38 +02:00
# $FreeBSD$
PORTNAME = jre
PORTVERSION = ${ JRE_VERSION } .${ JRE_UPDATE_VERSION }
CATEGORIES = java
MASTER_SITES = #
2014-04-19 00:48:45 +02:00
PKGNAMEPREFIX = linux-${ JRE_VENDOR } -
DISTNAME = jre-${ JRE_VERSION } u${ JRE_UPDATE_VERSION } -linux-i586
2012-05-01 23:18:38 +02:00
MAINTAINER = java@FreeBSD.org
2014-04-19 00:48:45 +02:00
COMMENT = Oracle Java ${ JRE_VERSION } Runtime Environment for Linux
2012-05-01 23:18:38 +02:00
RUN_DEPENDS = javavm:${ PORTSDIR } /java/javavmwrapper
NO_CDROM = License does not allow distribution with fee
RESTRICTED = Redistribution of repackaged binaries not permitted
2014-04-19 00:48:45 +02:00
PKGNAMESUFFIX = 1${ JRE_VERSION }
2012-05-01 23:18:38 +02:00
WRKSRC = ${ WRKDIR } /jre${ DL_JRE_VERSION }
2014-04-19 00:48:45 +02:00
PLIST_SUB = T = ${ APP_HOME : S /^ ${ PREFIX } \/ // } PORTVERSION = ${ PORTVERSION }
2012-05-01 23:18:38 +02:00
NO_BUILD = yes
USE_LINUX = yes
USE_LINUX_APPS = xorglibs
2014-04-18 23:40:32 +02:00
USES = shebangfix
2012-05-01 23:18:38 +02:00
ONLY_FOR_ARCHS = i386 amd64
2014-04-19 00:48:45 +02:00
JRE_VENDOR = sun
2012-05-01 23:18:38 +02:00
JRE_VERSION = 7
2014-04-19 00:48:45 +02:00
JRE_INTERNAL_VERSION = 1.${ JRE_VERSION } .0
2015-03-24 23:55:58 +01:00
JRE_UPDATE_VERSION = 76
2013-01-15 14:39:07 +01:00
DL_JRE_VERSION = ${ JRE_INTERNAL_VERSION } _${ JRE_UPDATE_VERSION }
2012-05-01 23:18:38 +02:00
DOWNLOAD_URL = http://www.oracle.com/technetwork/java/javase/downloads/index.html
APP_HOME = ${ PREFIX } /${ PKGNAMEPREFIX } ${ PORTNAME } ${ JRE_INTERNAL_VERSION }
BIN_DIRS = bin
2014-04-18 23:40:32 +02:00
LIB_DIRS = ${ BIN_DIRS : S |bin $|lib| }
SHEBANG_FILES = ${ BIN_DIRS : S | $|/jcontrol| }
bash_CMD = ${ SH }
2012-05-01 23:18:38 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2013-08-29 16:16:03 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2012-05-01 23:18:38 +02:00
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
. e n d i f
do-install :
2014-03-20 04:39:48 +01:00
@${ MKDIR } ${ STAGEDIR } ${ APP_HOME }
@cd ${ WRKSRC } && ${ COPYTREE_SHARE } . ${ STAGEDIR } ${ APP_HOME }
2014-04-18 23:40:32 +02:00
@cd ${ STAGEDIR } ${ APP_HOME } && \
${ CHMOD } ${ BINMODE } ${ BIN_DIRS : S | $|/*| } ${ LIB_DIRS : S | $|/jexec| }
2012-05-01 23:18:38 +02:00
post-install :
2014-03-23 20:43:54 +01:00
${ MKDIR } ${ STAGEDIR } ${ APP_HOME } /.systemPrefs
${ TOUCH } ${ STAGEDIR } ${ APP_HOME } /.systemPrefs/.system.lock
${ TOUCH } ${ STAGEDIR } ${ APP_HOME } /.systemPrefs/.systemRootModFile
${ CHMOD } 644 ${ STAGEDIR } ${ APP_HOME } /.systemPrefs/.system.lock
${ CHMOD } 644 ${ STAGEDIR } ${ APP_HOME } /.systemPrefs/.systemRootModFile
2012-05-01 23:18:38 +02:00
. i n c l u d e < b s d . p o r t . p o s t . m k >