The linked review adds an X11 option to openjdk7 and openjdk8. It is enabled by default. When disabled, certain LIB_DEPENDS become BUILD_DEPENDS and others disappear entirely. https://reviews.freebsd.org/D6698
Any thoughts Greg? I'll commit soon if I don't hear back.
I don't understand why we don't just have the presence of the option control a different setting for USE_XORG rather have the ports incorporate their own versions of the X11 dependencies. That makes them harder to maintain, IMO.
Excellent question Greg. The answer is because it doesn't work. X11_USE_XORG always expands to blank. But even if it didn't, I don't think we can express build-only dependencies that way, can we? Is there any equivalent of "USE_XORG=Xext:build"?
Are you satisfied with that explanation Greg? If so, I'll commit it.
A commit references this bug: Author: asomers Date: Fri Dec 9 20:30:53 UTC 2016 New revision: 428241 URL: https://svnweb.freebsd.org/changeset/ports/428241 Log: Add an X11 option to java/openjdk[78] It defaults to on. Disabling it will remove X support from Java, and reduce X-related dependencies. PR: 210000 Reviewed by: brd Approved by: brd (ports) Approved by: glewis (maintainer timeout) Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6698 Changes: head/java/openjdk7/Makefile head/java/openjdk8/Makefile