summaryrefslogtreecommitdiff
path: root/lang/jdk/buildlink3.mk
blob: 6ead112d630a7edfcf3a22d441a5abb81e2939ad (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
# $NetBSD: buildlink3.mk,v 1.2 2004/07/02 12:51:57 wiz Exp $

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH}+
JDK_BUILDLINK3_MK:=	${JDK_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=	jdk
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Njdk}
BUILDLINK_PACKAGES+=	jdk

.if !empty(JDK_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.jdk+=	jdk>=1.1.8
BUILDLINK_PKGSRCDIR.jdk?=	../../lang/jdk
BUILDLINK_JAVA_PREFIX.jdk=	${PREFIX}/java/jdk-1.1.8

BUILDLINK_PASSTHRU_DIRS+=	${BUILDLINK_JAVA_PREFIX.jdk}

BUILDLINK_CPPFLAGS.jdk= \
	-I${BUILDLINK_JAVA_PREFIX.jdk}/include				\
	-I${BUILDLINK_JAVA_PREFIX.jdk}/include/netbsd
.endif	# JDK_BUILDLINK3_MK

BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}