summaryrefslogtreecommitdiff
path: root/lang/jdk/buildlink2.mk
blob: 299a68b310abd404a04b5a2619d811a84b09322b (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
# $NetBSD: buildlink2.mk,v 1.1 2002/10/13 07:51:36 jlam Exp $

.if !defined(JDK_BUILDLINK2_MK)
JDK_BUILDLINK2_MK=	# defined

BUILDLINK_PACKAGES+=		jdk
BUILDLINK_PKGBASE.jdk?=		jdk
BUILDLINK_DEPENDS.jdk?=		jdk-[0-9]*
BUILDLINK_PKGSRCDIR.jdk?=	../../lang/jdk

BUILDLINK_PREFIX.jdk=	${LOCALBASE}
BUILDLINK_FILES_CMD.jdk= \
	${BUILDLINK_PLIST_CMD.jdk} |					\
		${GREP} '\(include.*/\|lib.*/lib[^/]*$$\)' |		\
		${SED} "s,^,$${pkg_prefix},"

EVAL_PREFIX+=	BUILDLINK_JAVA_PREFIX.jdk=jdk
BUILDLINK_JAVA_PREFIX.jdk_DEFAULT= \
	${BUILDLINK_PREFIX.jdk}/java/jdk-1.1.8

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

BUILDLINK_TARGETS+=	jdk-buildlink

jdk-buildlink: _BUILDLINK_USE

.endif	# JDK_BUILDLINK2_MK