tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
evaluating variables to set options
In an options.mk I'm doing the following:
...
.include "../../mk/bsd.options.mk"
...
.if !empty(PKG_OPTIONS:Mskey)
. include "../../security/skey/buildlink3.mk"
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
.else
CONFIGURE_ARGS+= --without-skey.endif
.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
options.mk is parsed. Consequently CONFIGURE_ARGS and CPPFLAGS do not
get correctly appended.
options.mk gets included from the package's Makefile.
What's the correct way of handling that situation?
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz%freenet.de@localhost +49 151 11559652
Home |
Main Index |
Thread Index |
Old Index