blob: 71e5dbfc49bcde2947bc57b18d8e9d4b8f5811ac (
plain)
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
|
# $NetBSD: Makefile,v 1.4 2009/05/18 22:04:28 abs Exp $
#
DISTNAME= jdk1.7.0-20090502-${MACHINE_ARCH}-NetBSD_5.0
PKGNAME= ${DISTNAME:C:-${MACHINE_ARCH}.*:::C:[^-]*-:openjdk7-bin-:}
CATEGORIES= lang
MASTER_SITES= http://ftp.NetBSD.org/pub/NetBSD/misc/java/openjdk/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://openjdk.java.net/projects/bsd-port/
COMMENT= Binary OpenJDK package
JAVA_NAME= openjdk7-bin
JAVA_HOME= ${PREFIX}/java/${JAVA_NAME}
JAVA_WRAPPERS= jar java javac javadoc javah javap keytool orbd \
policytool rmid rmiregistry servertool tnameserv
WRKSRC= ${WRKDIR}/openjdk7-j2sdk
USE_LANGUAGES= # none
USE_TOOLS+= pax
CHECK_SHLIBS_SUPPORTED= NO
JAVA_MACHINE_ARCH=${MACHINE_ARCH}
.if ${MACHINE_ARCH} == "i386"
PLIST.client= yes
.elif ${MACHINE_ARCH} == "x86_64"
JAVA_MACHINE_ARCH= amd64
.endif
PLIST_SUBST+= JAVA_MACHINE_ARCH=${JAVA_MACHINE_ARCH:Q}
PLIST_VARS+= client
ONLY_FOR_PLATFORM= NetBSD-[5-9]*-i386 NetBSD-[5-9]*-x86_64
INSTALLATION_DIRS= java/${JAVA_NAME}
PKG_DESTDIR_SUPPORT= user-destdir
do-build:
# Cannot use NO_BUILD as need java wrappers
do-install:
cd ${WRKSRC} && ${PAX} -rwp ma . ${DESTDIR}${JAVA_HOME}
.include "../../mk/java-env.mk"
.include "../../mk/bsd.pkg.mk"
|