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.
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:
Date: Fri Dec 9 20:30:53 UTC 2016
New revision: 428241
Add an X11 option to java/openjdk
It defaults to on. Disabling it will remove X support from Java, and reduce
Reviewed by: brd
Approved by: brd (ports)
Approved by: glewis (maintainer timeout)
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6698