| @@ -1,21 +1,23 @@ | | | @@ -1,21 +1,23 @@ |
1 | # $NetBSD: options.mk,v 1.1 2011/03/03 11:39:47 adam Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2015/09/24 23:33:08 ryoon Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gpgme | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gpgme |
4 | PKG_SUPPORTED_OPTIONS= gpgsm | | 4 | PKG_SUPPORTED_OPTIONS= gpgsm |
5 | PKG_SUGGESTED_OPTIONS= gpgsm | | 5 | PKG_SUGGESTED_OPTIONS= gpgsm |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | ## | | 9 | ## |
10 | ## Option to build with gpgsm. This provides SMIME support | | 10 | ## Option to build with gpgsm. This provides SMIME support |
11 | ## | | 11 | ## |
12 | .if !empty(PKG_OPTIONS:Mgpgsm) | | 12 | .if !empty(PKG_OPTIONS:Mgpgsm) |
13 | . include "../../security/gnupg2/buildlink3.mk" | | 13 | DEPENDS+= gnupg2>=2.0<2.1:../../security/gnupg2 |
14 | CONFIGURE_ARGS+= --with-gpgsm=${BUILDLINK_PREFIX.gnupg2}/bin/gpgsm | | 14 | FIND_PREFIX:= GPG2DIR=gnupg2 |
15 | CONFIGURE_ARGS+= --with-gpg=${BUILDLINK_PREFIX.gnupg2}/bin/gpg2 | | 15 | .include "../../mk/find-prefix.mk" |
| | | 16 | CONFIGURE_ARGS+= --with-gpgsm=${GPG2DIR}/bin/gpgsm |
| | | 17 | CONFIGURE_ARGS+= --with-gpg=${GPG2DIR}/bin/gpg2 |
16 | REPLACE_SH+= tests/gpg/pinentry | | 18 | REPLACE_SH+= tests/gpg/pinentry |
17 | .else | | 19 | .else |
18 | DEPENDS+= gnupg>=1.4.2:../../security/gnupg | | 20 | DEPENDS+= gnupg>=1.4.2:../../security/gnupg |
19 | CONFIGURE_ARGS+= --without-gpgconf | | 21 | CONFIGURE_ARGS+= --without-gpgconf |
20 | CONFIGURE_ARGS+= --without-gpgsm | | 22 | CONFIGURE_ARGS+= --without-gpgsm |
21 | .endif | | 23 | .endif |