tech-pkg archive

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

Re: Question about PKG_OPTIONS_REQUIRED_GROUPS



Am 30.10.2022 um 13:31 schrieb Hauke Fath:
Hi,

I am using PKG_OPTIONS_REQUIRED_GROUPS in a package to select a web
server dependency.

Is there an easy way to learn which option from the group was chosen? I
could set a variable in options.mk, but there should be a prettier
way...

What do you want to do with this information?

Most other packages just the standard if-else sequence for the
individual options and are fine with it.

.if ${PKG_OPTIONS:Mapache}
...
.elif ${PKG_OPTIONS:Mnginx}
...
.elif ${PKG_OPTIONS:Mother}
...
.endif

Roland



Home | Main Index | Thread Index | Old Index