diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-13 07:51:34 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-13 07:51:34 +0000 |
commit | 5c4953978d44bb8a532ec4c5addc9c96a21dac2c (patch) | |
tree | 3efae8cacbee8052c6ce241723b007c1a09a0d67 /lang/jdk | |
parent | de232f34b8c9a0090fca6bd7dea131acbd8bfd11 (diff) | |
download | pkgsrc-5c4953978d44bb8a532ec4c5addc9c96a21dac2c.tar.gz |
Add buildlink2.mk files for use by other package Makefiles. Each JVM
buildlink2.mk file creates a public variable "BUILDLINK_JAVA_PREFIX.<pkg>"
that may be used as the JAVA_HOME for that package.
Diffstat (limited to 'lang/jdk')
-rw-r--r-- | lang/jdk/buildlink2.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/jdk/buildlink2.mk b/lang/jdk/buildlink2.mk new file mode 100644 index 00000000000..299a68b310a --- /dev/null +++ b/lang/jdk/buildlink2.mk @@ -0,0 +1,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 |