tech-pkg archive

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

evaluating variables to set options

In an I'm doing the following:


.include "../../mk/"


.if !empty(PKG_OPTIONS:Mskey)
. include "../../security/skey/"
CONFIGURE_ARGS+=        --with-skey=${BUILDLINK_PREFIX.skey}
. if defined(IS_BUILTIN.skey) && ${IS_BUILTIN.skey} == no
# pkgsrc's version uses three arguments only
CPPFLAGS+=              -DOLDSKEY
. endif
CONFIGURE_ARGS+=        --without-skey.endif

now the problem is that if this is run before the tools stage (which is the case if the package is built in one step) it seems that BUILDLINK_PREFIX.skey and IS_BUILTIN.skey are not defined when is parsed. Consequently CONFIGURE_ARGS and CPPFLAGS do not get correctly appended. gets included from the package's Makefile.

What's the correct way of handling that situation?

Georg Schwarz  +49 151 11559652

Home | Main Index | Thread Index | Old Index