diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-08 12:03:56 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-08 12:03:56 +0000 |
commit | 949a7c95f1548a346529098a9cc65873a37ee220 (patch) | |
tree | cbe8ca94551b9917f6bdc3e7fdaf4be46b9a187f /security/openssl | |
parent | 244cbb2047c4724204b212aeacc294190202c18f (diff) | |
download | pkgsrc-949a7c95f1548a346529098a9cc65873a37ee220.tar.gz |
PKG_OPTIONS.<pkg> isn't a good approximation to PKG_OPTIONS for the
package because PKG_OPTION.<pkg> could contain negative options, which
are never part of PKG_OPTIONS. Instead, use the show-var target to
display the value. We cache it in WRAPPER_VARS and in MAKE_FLAGS to
prevent reinvoking the show-var target recursively.
Diffstat (limited to 'security/openssl')
-rw-r--r-- | security/openssl/buildlink3.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/security/openssl/buildlink3.mk b/security/openssl/buildlink3.mk index b779915f225..55e9e012f92 100644 --- a/security/openssl/buildlink3.mk +++ b/security/openssl/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.23 2004/12/24 22:02:38 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.24 2005/05/08 12:03:56 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ OPENSSL_BUILDLINK3_MK:= ${OPENSSL_BUILDLINK3_MK}+ @@ -26,7 +26,13 @@ SSLBASE= ${BUILDLINK_PREFIX.openssl} BUILD_DEFS+= SSLBASE .endif # OPENSSL_BUILDLINK3_MK -PKG_OPTIONS.openssl?= ${PKG_DEFAULT_OPTIONS} +.if !defined(PKG_OPTIONS.openssl) +PKG_OPTIONS.openssl!= \ + cd ${BUILDLINK_PKGSRCDIR.openssl} && \ + ${MAKE} show-var ${MAKE_FLAGS} VARNAME=PKG_OPTIONS +MAKE_FLAGS+= PKG_OPTIONS.openssl=${PKG_OPTIONS.openssl:Q} +WRAPPER_VARS+= PKG_OPTIONS.openssl +.endif .if !empty(PKG_OPTIONS.openssl:Mrsaref) . include "../../security/rsaref/buildlink3.mk" |