aboutsummaryrefslogtreecommitdiffstats
path: root/java/linux-blackdown-jre11/Makefile
blob: 8d452cd140beae41e22a22afe74cca156582042e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:    linux jre 1.1.8
# Date created:             10 Sep 2003
# Whom:                 Simun Mikecin <sime@logos.hr>
#
# $FreeBSD$
#

PORTNAME=   jre
PORTVERSION=    ${JRE_VERSION}
CATEGORIES= java devel
MASTER_SITES=   ftp://gd.tuwien.ac.at/opsys/linux/java/JDK-${PORTVERSION}/${ARCH}/v3/ \
        ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-${PORTVERSION}/i386/v3/ \
        ftp://ftp.tux.org/pub/java/JDK-${PORTVERSION}/i386/v3/ \
        ftp://ftp.funet.fi/pub/Linux/java/jdk/blackdown.org/JDK-${PORTVERSION}/i386/v3/ \
        ftp://ftp.uk.linux.org/pub/linux/java/JDK-${PORTVERSION}/i386/v3/
PKGNAMEPREFIX=  linux-blackdown-
DISTNAME=   jre118_v3-glibc-2.1.3

MAINTAINER= sime@logos.hr
COMMENT=    Blackdown Linux Java Runtime Environment 1.1.8

RUN_DEPENDS=    javavm:${PORTSDIR}/java/javavmwrapper

NO_CDROM=   "License doesn\'t allow distribution with fee"
NO_PACKAGE=     "License doesn\'t allow binary distributions"

USE_LINUX=  YES
ONLY_FOR_ARCHS= i386

USE_BZIP2=  YES
WRKSRC=     ${WRKDIR}/jre118_v3
JRE_VERSION=    1.1.8
PLIST_SUB+= JRE_VERSION=${JRE_VERSION}
NO_BUILD=   YES
APP_HOME?=  ${PREFIX}/linux-blackdown-jre${PORTVERSION}
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}

CPIO?=      /usr/bin/cpio

post-patch:
    ${FIND} ${WRKSRC} \( -name '*.orig' -o -name '.*.orig' \) -delete
    ${CP} ${FILESDIR}/arch ${WRKSRC}/bin/
    ${CHMOD} a+rx ${WRKSRC}/bin/arch
    ${CHMOD} a+r ${WRKSRC}/README.linux

do-install:
    ${MKDIR} ${APP_HOME}
    cd ${WRKSRC} && ${FIND} . -print \
      | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
    cd ${APP_HOME}/bin && \
        ${LN} -sf .java_wrapper java && \
    cd ${APP_HOME}/bin/i386/green_threads && \
        ${LN} -sf jre java && \
    cd ${APP_HOME}/bin/i386/native_threads && \
        ${LN} -sf jre java

post-install:
    ${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Blackdown-JRE${PORTVERSION}"

.include <bsd.port.mk>