I'm not sure how to best describe this but let's say I have the following in a port's Makefile:
The X11 option will enable a graphical interface and the QRCODES option pulls in the dependent graphics/libqrencode library.
My problem is I am not able to figure out how to prevent the QRCODES option from being selected if the X11 option is deselected. For example it's possible to end up with an invalid configuration like:
The above will pull in the unnecessary dependency along with its dependencies. What can be done to prevent this?
Code:
OPTIONS_DEFINE= X11
OPTIONS_GROUP= X11
OPTIONS_GROUP_X11= QRCODES
The X11 option will enable a graphical interface and the QRCODES option pulls in the dependent graphics/libqrencode library.
Code:
QRCODES_LIB_DEPENDS= libqrencode.so:${PORTSDIR}/graphics/libqrencode
My problem is I am not able to figure out how to prevent the QRCODES option from being selected if the X11 option is deselected. For example it's possible to end up with an invalid configuration like:
Code:
X11=off: X11 (graphics) support
====> X11 (graphics) support
QRCODES=on: Build with QR code display
The above will pull in the unnecessary dependency along with its dependencies. What can be done to prevent this?