* On 2025-04-30 at 13:54 BST, Dr. Thomas Orgis wrote:
.if ${USE_BUILTIN.libtirpc:tl} == "yes"
CONFIGURE_ARGS+= --with-xdr-include=/usr/include/tirpc
.else
CONFIGURE_ARGS+= --with-xdr-include=${PREFIX}/include/tirpc
.endif
You don't need to do any of this, just use BUILDLINK_PREFIX which will lazily evaluate to the correct location.
But when I comment out the .if, I can do this: $ bmake show-var VARNAME=USE_BUILTIN.libtirpc yes
You cannot use lazy variables in any direct conditionals such as .if, they haven't been defined yet so aren't available, which is why it will always be empty.
-- Jonathan Perkin pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com