summaryrefslogtreecommitdiff
path: root/security/openssl
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-30 21:05:41 +0000
committerjlam <jlam@pkgsrc.org>2004-07-30 21:05:41 +0000
commitb460ce1ab51a88c8a15737b9aaf78a949fe6f32e (patch)
tree90f33a51019f85b91b5f29838193d07638327f1c /security/openssl
parent85306a83480ca871311e350b3814452b76f3b8a2 (diff)
downloadpkgsrc-b460ce1ab51a88c8a15737b9aaf78a949fe6f32e.tar.gz
Convert to use bsd.options.mk. The relevant options variable to set
for each package can be determined by invoking: make show-var VARNAME=PKG_OPTIONS_VAR The old options are still supported unless the variable named in PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
Diffstat (limited to 'security/openssl')
-rw-r--r--security/openssl/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index 57a3e18ecb6..502e3dd505f 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.92 2004/03/26 08:33:49 jlam Exp $
+# $NetBSD: Makefile,v 1.93 2004/07/30 21:05:42 jlam Exp $
DISTNAME= openssl-0.9.6m
SVR4_PKGNAME= ossl
@@ -34,7 +34,20 @@ CONFIGURE_ARGS+= shared
# IDEA, RC5, and MDC2 are disabled due to licensing and/or patent issues.
CONFIGURE_ARGS+= no-idea no-rc5 no-mdc2
-.if defined(USE_RSAREF2) && ${USE_RSAREF2} == "YES"
+# Global and legacy options
+.if defined(USE_RSAREF2)
+. if !defined(PKG_OPTIONS.openssl)
+. if defined(USE_RSAREF2) && !empty(USE_RSAREF2:M[yY][eE][sS])
+PKG_OPTIONS.openssl+= rsaref
+. endif
+. endif
+.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.openssl
+PKG_SUPPORTED_OPTIONS= rsaref
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mrsaref)
. include "../../security/rsaref/buildlink3.mk"
CONFIGURE_ARGS+= rsaref
PLIST_RSAREF= ${PKGDIR}/PLIST.rsaref