Date: Sun, 5 Sep 2021 10:39:29 -0700 From: Mel Pilgrim <list_freebsd@bluerosetech.com> To: freebsd-ports@freebsd.org Subject: Why no flavor_USES helper? Message-ID: <8982e300-8b04-f31a-9c49-43d0dd428b38@bluerosetech.com>
next in thread | raw e-mail | index | archive | help
The flavors helpers like flavor_RUN_DEPENDS are super useful, but I need to modify USES based on flavor, and find that there is no helper for it. That is, I'd like to be able to do this: flavor1_USES= alice flavor2_USES= bob Instead of: .if ${FLAVOR} == flavor1 USES+= alice .elif ${FLAVOR} == flavor2 USES+= bob .endif At a glance, it looks like all that's needed is adding USES to _FLAVOR_HELPERS_APPEND[1]. What am I missing? 1: Mk/bsd.port.mk, line 1525 as of bed4073e0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8982e300-8b04-f31a-9c49-43d0dd428b38>