pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: USE_TOOLS (or equal) for java?



On Wed, 30 Sep 2009 15:26:54 +0900, Fredrik Pettai <pettai%nordu.net@localhost> 
wrote:

> I've imported a bloated alpha version of OpenDNSSEC, which now
> compiles with all dependencies and such.
> However, I only figured out how to get a full dependency java, which
> is require for installation phase of the package, but doesn't need
> full dependency to run once OpenDNSSEC is installed.
>
> USE_TOOLS didn't seem to recognize java as a tool. Is there any other
> way (to use *JAVA* something perhaps?), to get just tool or build
> dependency for java during the build & installation process?

Currently, we cannot do it.

Following patch and USE_JAVA=build should satisfy your request.


Index: mk/java-vm.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/java-vm.mk,v
retrieving revision 1.69
diff -u -r1.69 java-vm.mk
--- mk/java-vm.mk       5 Jun 2009 16:00:47 -0000       1.69
+++ mk/java-vm.mk       30 Sep 2009 07:20:57 -0000
@@ -16,10 +16,12 @@
  # Package-settable variables:
  #
  # USE_JAVA
-#      When set to "yes", a build-time dependency on the JDK is added.
+#      When set to "yes", a build-time dependency on the JDK and
+#                         a run-time dependency on the JRE are added.
  #      When set to "run", a run-time dependency on the JRE is added.
+#      When set to "build", a build-time dependency on the JDK is added.
  #
-#      Possible values: yes run
+#      Possible values: yes run build
  #      Default value: yes
  #
  # USE_JAVA2
@@ -305,10 +307,13 @@
  EVAL_PREFIX+=          _JAVA_HOME=${_JAVA_PKGBASE.${_PKG_JVM}}
  .endif

-# We always need a run-time dependency on the JRE.
-.if defined(_JRE_PKGSRCDIR)
-.  if exists(${_JRE_PKGSRCDIR}/buildlink3.mk)
-.    include "${_JRE_PKGSRCDIR}/buildlink3.mk"
+# If we are not using Java for building, then we need a run-time dependency on
+# the JRE.
+.if empty(USE_JAVA:M[bB][uU][iI][lL][dD])
+.  if defined(_JRE_PKGSRCDIR)
+.    if exists(${_JRE_PKGSRCDIR}/buildlink3.mk)
+.      include "${_JRE_PKGSRCDIR}/buildlink3.mk"
+.    endif
  .  endif
  .endif



-- 
"Of course I love NetBSD":-)
OBATA Akio / obache%users.sourceforge.net@localhost

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index