Setting a build dependency for the JDK

Guenael Strutt macports at
Sat Sep 1 02:32:18 UTC 2018

To build lang/processing, one needs a specific version of the JDK (as
specified in
Question: how does one create a dependency in the Portfile to determine
whether this version is present? The purpose is to 1) provide a better
error message to the user and 2) prevent builds from failing at every
update. I tried checking for the existence of this folder:  `/Library/Java/
JavaVirtualMachines/jdk1.8.0_181.jdk/` but didn't get anywhere. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list