aboutsummaryrefslogtreecommitdiffstats
path: root/java/linux-blackdown-jdk12/Makefile
blob: ab69677e0acfec9101443e9ce85d39292df8409a (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
# New ports collection makefile for:    linux jdk 1.2.2
# Date created:     Nov 3 1999
# Whom:         Jose Marques
#
# $FreeBSD$
#

PORTNAME=   jdk
PORTVERSION=    1.2.2
PORTREVISION=   4
CATEGORIES= java devel
MASTER_SITES=   ftp://ftp.tux.org/pub/java/JDK-${PORTVERSION}/${ARCH}/FCS/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= znerd
PKGNAMEPREFIX=  linux-blackdown-
DISTNAME=   j2sdk-${PORTVERSION}-FCS-linux-${ARCH}-glibc-2.1.3

MAINTAINER= znerd@FreeBSD.org
COMMENT=    Blackdown Java Development Kit 1.2 for Linux

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

NO_CDROM=   "License doesn\'t allow distribution with fee"
NO_PACKAGE= "License doesn\'t allow binary distributions"
LATEST_LINK=    linux-blackdown-jdk12

USE_LINUX=  YES
ONLY_FOR_ARCHS= i386

USE_BZIP2=  YES
WRKSRC=     ${WRKDIR}/${PORTNAME}${PORTVERSION}
NO_BUILD=   YES
APP_HOME?=  ${PREFIX}/${PKGBASE}${PORTVERSION}
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}

post-patch:
    ${FIND} ${WRKSRC} \( -name '*.orig' -o -name '.*.orig' \) -print \
      | ${XARGS} ${RM} -f

do-install:
    ${MKDIR} ${APP_HOME}
    cd ${WRKSRC} && ${FIND} . -print \
      | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
    ${INSTALL_DATA} ${FILESDIR}/cacerts ${APP_HOME}/jre/lib/security/cacerts
    ${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Blackdown-JDK${PORTVERSION}"

.include <bsd.port.mk>