diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-05 09:31:31 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-05 09:31:31 +0000 |
commit | c9ff27d2708681feb21548e2c9a385edb67a88bb (patch) | |
tree | 5e468c9c5f542e31226f7780d62182ff9f54b072 /security/openssl | |
parent | 55945e26ef4106d1adfcde1f726943e6167e8fc2 (diff) | |
download | pkgsrc-c9ff27d2708681feb21548e2c9a385edb67a88bb.tar.gz |
Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables.
Diffstat (limited to 'security/openssl')
-rw-r--r-- | security/openssl/buildlink3.mk | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/security/openssl/buildlink3.mk b/security/openssl/buildlink3.mk index b8032279454..4d2ecc28210 100644 --- a/security/openssl/buildlink3.mk +++ b/security/openssl/buildlink3.mk @@ -1,11 +1,12 @@ -# $NetBSD: buildlink3.mk,v 1.2 2004/01/04 23:34:07 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2004/01/05 09:31:31 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ OPENSSL_BUILDLINK3_MK:= ${OPENSSL_BUILDLINK3_MK}+ -.if !empty(OPENSSL_BUILDLINK3_MK:M+) -. include "../../mk/bsd.prefs.mk" +.include "../../mk/bsd.prefs.mk" +.if !empty(OPENSSL_BUILDLINK3_MK:M+) +# # This is the ${PKGNAME} of the version of the OpenSSL package installed # by pkgsrc. # @@ -28,12 +29,12 @@ BUILDLINK_IS_BUILTIN.openssl= YES .endif .if !empty(BUILDLINK_CHECK_BUILTIN.openssl:M[yY][eE][sS]) -_NEED_OPENSSL= NO +BUILDLINK_USE_BUILTIN.openssl= YES .endif -.if !defined(_NEED_OPENSSL) +.if !defined(BUILDLINK_USE_BUILTIN.openssl) . if !empty(BUILDLINK_IS_BUILTIN.openssl:M[nN][oO]) -_NEED_OPENSSL= YES +BUILDLINK_USE_BUILTIN.openssl= NO . else # # Create an appropriate name for the built-in package distributed @@ -104,14 +105,15 @@ _OPENSSL_PKG= openssl-0.9.6l . endif _OPENSSL_DEPENDS= ${BUILDLINK_DEPENDS.openssl} -_NEED_OPENSSL!= \ +BUILDLINK_USE_BUILTIN.openssl!= \ if ${PKG_ADMIN} pmatch '${_OPENSSL_DEPENDS}' ${_OPENSSL_PKG}; then \ - ${ECHO} "NO"; \ - else \ ${ECHO} "YES"; \ + else \ + ${ECHO} "NO"; \ fi . endif -MAKEFLAGS+= _NEED_OPENSSL="${_NEED_OPENSSL}" +MAKEFLAGS+= \ + BUILDLINK_USE_BUILTIN.openssl="${BUILDLINK_USE_BUILTIN.openssl}" .endif .if !defined(_NEED_NEWER_OPENSSL) @@ -124,20 +126,21 @@ _NEED_NEWER_OPENSSL!= \ MAKEFLAGS+= _NEED_NEWER_OPENSSL="${_NEED_NEWER_OPENSSL}" .endif -.if (${_NEED_OPENSSL} == "YES") && (${_NEED_NEWER_OPENSSL} == "YES") +.if !empty(BUILDLINK_USE_BUILTIN.openssl:M[nN][oO]) && \ + (${_NEED_NEWER_OPENSSL} == "YES") PKG_SKIP_REASON= "Unable to satisfy dependency: ${BUILDLINK_DEPENDS.openssl}" .endif -.if ${_NEED_OPENSSL} == "YES" +.if !empty(BUILDLINK_USE_BUILTIN.openssl:M[nN][oO]) . if !empty(BUILDLINK_DEPTH:M+) BUILDLINK_DEPENDS+= openssl +. if defined(USE_RSAREF2) && !empty(USE_RSAREF2:M[yY][eE][sS]) +BUILDLINK_DEPENDS+= rsaref +. endif . endif .endif .if !empty(OPENSSL_BUILDLINK3_MK:M+) -. if ${_NEED_OPENSSL} == "NO" -BUILDLINK_PREFIX.openssl= /usr -. endif SSLBASE= ${BUILDLINK_PREFIX.openssl} BUILD_DEFS+= SSLBASE @@ -150,9 +153,8 @@ SSLCERTS= ${PKG_SYSCONFBASE}/openssl/certs . endif BUILD_DEFS+= SSLCERTS -. if ${_NEED_OPENSSL} == "YES" +. if !empty(BUILDLINK_USE_BUILTIN.openssl:M[nN][oO]) . if defined(USE_RSAREF2) && !empty(USE_RSAREF2:M[yY][eE][sS]) -BUILDLINK_DEPENDS+= rsaref . include "../../security/rsaref/buildlink3.mk" . endif . endif |