On Wed, Feb 11, 2009 at 12:24:10AM +0000, Adrian Portelli wrote: > Hi, > > I need to a check in options.mk to see if USE_BUILTIN.openssl is set to > "yes" or "no" as it changes that way that --with-openssl should be > called. If I do a 'bmake show-var VARNAME=USE_BUILTIN.openssl' I get > back a 'yes' so I know it's working OK. But if I put a > > .if ${USE_BUILTIN.openssl} == "yes" > ... > ... > .endif > > In the options.mk a bmake gets me a "Malformed conditional" and "Need an > operator". The only way I've seen to fix this is to add the following > lines before the check: > > CHECK_BUILTIN.openssl:=yes > . include "../../security/openssl/builtin.mk" > CHECK_BUILTIN.openssl:=no > > I've used this in two packages now (inspircd/mysql5-client) and it works > fine (but pkglint does complain :)). Is this the right way to be > checking the value of USE_BUILTIN.openssl or am I missing something more > obvious ? Yes, it's the right way. How does pkglint complain? -- Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost "See the look on my face from staying too long in one place [...] every time the morning breaks I know I'm closer to falling" KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
Attachment:
pgpeD8lo4dcJC.pgp
Description: PGP signature