summaryrefslogtreecommitdiff
path: root/lang/sun-jdk13
diff options
context:
space:
mode:
authorjlam <jlam>2002-10-13 07:51:34 +0000
committerjlam <jlam>2002-10-13 07:51:34 +0000
commit1e2a72041cf45117afc3c96b5724f787c47907b5 (patch)
tree3efae8cacbee8052c6ce241723b007c1a09a0d67 /lang/sun-jdk13
parent044b65dde371d7a6945433d07c0a48ed83b55b59 (diff)
downloadpkgsrc-1e2a72041cf45117afc3c96b5724f787c47907b5.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/sun-jdk13')
-rw-r--r--lang/sun-jdk13/buildlink2.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/sun-jdk13/buildlink2.mk b/lang/sun-jdk13/buildlink2.mk
new file mode 100644
index 00000000000..4d7f385ad43
--- /dev/null
+++ b/lang/sun-jdk13/buildlink2.mk
@@ -0,0 +1,27 @@
+# $NetBSD: buildlink2.mk,v 1.1 2002/10/13 07:51:37 jlam Exp $
+
+.if !defined(SUN_JDK13_BUILDLINK2_MK)
+SUN_JDK13_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= sun-jdk13
+BUILDLINK_PKGBASE.sun-jdk13?= sun-jdk13
+BUILDLINK_DEPENDS.sun-jdk13?= sun-jdk13-[0-9]*
+BUILDLINK_PKGSRCDIR.sun-jdk13?= ../../lang/sun-jdk13
+
+BUILDLINK_PREFIX.sun-jdk13= ${LOCALBASE}
+BUILDLINK_FILES_CMD.sun-jdk13= \
+ ${BUILDLINK_PLIST_CMD.sun-jdk13} | \
+ ${GREP} '\(include.*/\|lib.*/lib[^/]*$$\)' | \
+ ${SED} "s,^,$${pkg_prefix},"
+
+BUILDLINK_CPPFLAGS.sun-jdk13= \
+ -I${BUILDLINK_JAVA_PREFIX.sun-jre13}/include \
+ -I${BUILDLINK_JAVA_PREFIX.sun-jre13}/include/linux
+
+.include "../../lang/sun-jre13/buildlink2.mk"
+
+BUILDLINK_TARGETS+= sun-jdk13-buildlink
+
+sun-jdk13-buildlink: _BUILDLINK_USE
+
+.endif # SUN_JDK13_BUILDLINK2_MK