aboutsummaryrefslogtreecommitdiffstats
path: root/java/bootstrap-openjdk6/Makefile
blob: 092833178797fc4ebe379f6daba54bf6aeda80e7 (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
# $FreeBSD$

PORTNAME=   openjdk6
PORTVERSION=    ${DISTVERSION_${ARCH}}
CATEGORIES= java devel
MASTER_SITES=   LOCAL/jkim
PKGNAMEPREFIX=  bootstrap-
DISTNAME=   ${PORTNAME}-${ARCH}-${PORTVERSION}

MAINTAINER= jkim@FreeBSD.org
COMMENT=    Java Development Kit 6

LICENSE=    GPLv2

ONLY_FOR_ARCHS= amd64 i386

RUN_DEPENDS=    java-zoneinfo>0:java/java-zoneinfo \
        ${LOCALBASE}/lib/libfreetype.so.6:print/freetype2

DISTINFO_FILE=  ${.CURDIR}/distinfo.${ARCH}
DISTVERSION_amd64=  r450701
DISTVERSION_i386=   r450701

JDK_ROOT=   bootstrap-${PORTNAME}

NO_BUILD=   yes
PLIST_SUB=  ARCH=${ARCH} JDK_ROOT=${JDK_ROOT}
USES=       tar:xz
WRKSRC=     ${WRKDIR}/${JDK_ROOT}

INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
PLIST_SUB+= CLIENTVM=""
.else
PLIST_SUB+= CLIENTVM="@comment "
.endif

do-install:
    @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
    @cd ${WRKSRC} && ${COPYTREE_BIN} "bin jre/bin" ${INSTALLDIR}

update:
    @${MAKE} -f ${.CURDIR}/Makefile.update \
        JDK_PORT=${PORTNAME} JDK_ROOT=${JDK_ROOT}

.include <bsd.port.post.mk>