summaryrefslogtreecommitdiff
path: root/security/pkcs11-helper/options.mk
blob: a795b61d4cb74fbef347aeb6f3be81d521e9ec49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $NetBSD: options.mk,v 1.2 2011/04/28 07:20:46 adam Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.pkcs11-helper
PKG_SUPPORTED_OPTIONS=	openssl gnutls nss
PKG_SUGGESTED_OPTIONS=	openssl

.include "../../mk/bsd.options.mk"

# crypto engines to use

.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+=--enable-crypto-engine-openssl
.else
CONFIGURE_ARGS+=--disable-crypto-engine-openssl
.endif

.if !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
CONFIGURE_ARGS+=--enable-crypto-engine-gnutls
.else
CONFIGURE_ARGS+=--disable-crypto-engine-gnutls
.endif

.if !empty(PKG_OPTIONS:Mnss)
.include "../../devel/nss/buildlink3.mk"
CONFIGURE_ARGS+=--enable-crypto-engine-nss
.else
CONFIGURE_ARGS+=--disable-crypto-engine-nss
.endif