tech-pkg archive

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

Re: Checking USE_BUILTIN.openssl

On 11/02/2009 01:04, Quentin Garnier wrote:
> On Wed, Feb 11, 2009 at 12:24:10AM +0000, Adrian Portelli wrote:
>> Hi,
>> I need to a check in 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 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/"
>> 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?
ERROR: ../../security/openssl/ must not be
included directly. Include "../../security/openssl/" instead.


Home | Main Index | Thread Index | Old Index