diff options
author | jwise <jwise@pkgsrc.org> | 2000-01-13 17:40:42 +0000 |
---|---|---|
committer | jwise <jwise@pkgsrc.org> | 2000-01-13 17:40:42 +0000 |
commit | cd74daddd2fc0ac664af24e55894d540f35fb29d (patch) | |
tree | 9092c0dc4f7bb04dbf0ab1d06ab98621c17e5884 /mk | |
parent | 33ccb0ca82ac474a353b921c40700d2cdc6ee8c7 (diff) | |
download | pkgsrc-cd74daddd2fc0ac664af24e55894d540f35fb29d.tar.gz |
Add a USE_JAVA= variable for packages which use java, and a PKG_JVM variable
for users to choose their own JVM.
USE_JAVA sets up DEPENDS and $JAVA_HOME appropriately, based on PKG_JVM.
Currently sane values of PKG_JVM are `jdk' and `kaffe', where the default
is `jdk' on NetBSD-*-i386, and `kaffe' elsewhere.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 3eb1e331d1f..1c9a55d61d3 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.390 2000/01/11 13:59:28 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.391 2000/01/13 17:40:42 jwise Exp $ # # This file is in the public domain. # @@ -76,6 +76,24 @@ SCRIPTDIR?= ${.CURDIR}/scripts FILESDIR?= ${.CURDIR}/files PKGDIR?= ${.CURDIR}/pkg +.if defined(USE_JAVA) +BUILD_DEFS+= PKG_JVM JAVA_HOME +.if !defined(PKG_JVM) +.if ${MACHINE_PLATFORM:MNetBSD-*-i386} != "" +PKG_JVM?= jdk +.else +PKG_JVM?= kaffe +.endif +.endif +.if ${PKG_JVM} == "jdk" +DEPENDS+= jdk-1.1.*:${PKGSRCDIR}/lang/jdk +JAVA_HOME?= ${LOCALBASE}/java +.elif ${PKG_JVM} == "kaffe" +DEPENDS+= kaffe-[0-9]*:${PKGSRCDIR}/lang/kaffe +JAVA_HOME?= ${LOCALBASE}/kaffe +.endif +.endif + .if defined(USE_MOTIF) .if defined(USE_LOCALBASE_FOR_X11) MOTIFBASE?= ${LOCALBASE} |