diff options
author | jlam <jlam@pkgsrc.org> | 2002-07-29 22:15:02 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-07-29 22:15:02 +0000 |
commit | fa208fe38d356d58623b8f64b6d3443ccf584bcb (patch) | |
tree | 21e901fd05d52240daccdcfd2629e7785a8e8c2c | |
parent | e2001908fca3c496c1479936c8f4e33a5e659b0e (diff) | |
download | pkgsrc-fa208fe38d356d58623b8f64b6d3443ccf584bcb.tar.gz |
Invert the test for USE_JAVA. It now takes an optional value of "run"
(instead of "build"). The rationale is that USE_JAVA= is "bigger" than
USE_JAVA=run in the sense that the former adds another dependency. For
packages that don't need the extra dependency, we can trim it off by
setting USE_JAVA more thoughtfully.
-rw-r--r-- | mk/bsd.pkg.mk | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0b13b002b82..f65be1f77b9 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1019 2002/07/29 21:45:22 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1020 2002/07/29 22:15:02 jlam Exp $ # # This file is in the public domain. # @@ -79,11 +79,10 @@ PKG_JVM?= sun-jdk PKG_JVM?= kaffe . endif . endif -. if (${USE_JAVA} == "build") -_JDK_DEPMETHOD= BUILD_DEPENDS -. else -USE_JAVA:= run +. if (${USE_JAVA} == "run") _JDK_DEPMETHOD= _UNUSED_DEPENDS +. else +_JDK_DEPMETHOD= BUILD_DEPENDS . endif . if ${PKG_JVM} == "jdk" _JAVA_PKGNAME= jdk |