summaryrefslogtreecommitdiff
path: root/security/gpgme/options.mk
blob: b30d11e87a1723be626a8115e6299d366c6ba84e (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
# $NetBSD: options.mk,v 1.3 2015/10/22 19:18:34 tnn Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.gpgme
PKG_OPTIONS_REQUIRED_GROUPS=	gnupg
PKG_OPTIONS_GROUP.gnupg=	gnupg1 gnupg2 gnupg21
PKG_SUGGESTED_OPTIONS=		gnupg2

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

.if !empty(PKG_OPTIONS:Mgnupg21)
DEPENDS+=		gnupg21>=2.1:../../security/gnupg21
FIND_PREFIX:=	GPG2DIR=gnupg21
.include "../../mk/find-prefix.mk"
CONFIGURE_ARGS+=	--with-gpgsm=${GPG2DIR}/bin/gpgsm
CONFIGURE_ARGS+=	--with-gpg=${GPG2DIR}/bin/gpg2
REPLACE_SH+=		tests/gpg/pinentry
.elif !empty(PKG_OPTIONS:Mgnupg2)
DEPENDS+=		gnupg2>=2.0<2.1:../../security/gnupg2
FIND_PREFIX:=	GPG2DIR=gnupg2
.include "../../mk/find-prefix.mk"
CONFIGURE_ARGS+=	--with-gpgsm=${GPG2DIR}/bin/gpgsm
CONFIGURE_ARGS+=	--with-gpg=${GPG2DIR}/bin/gpg2
REPLACE_SH+=		tests/gpg/pinentry
.else
DEPENDS+=		gnupg>=1.4.2:../../security/gnupg
CONFIGURE_ARGS+=	--without-gpgconf
CONFIGURE_ARGS+=	--without-gpgsm
.endif