summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2015-10-31 17:46:12 +0000
committerrichard <richard@pkgsrc.org>2015-10-31 17:46:12 +0000
commit014b410d6b60a2f8bb971fcdd0328629ed07cb0f (patch)
tree05c8bdd918e5b64cf3651c199b59ce6f3be44f1f /security
parentde4c998a9591426225c6f25c1cb3bb1b34305e77 (diff)
downloadpkgsrc-014b410d6b60a2f8bb971fcdd0328629ed07cb0f.tar.gz
add depends for appropriate gnupg according to options selected
ok tnn@ re: options.mk v 1.3
Diffstat (limited to 'security')
-rw-r--r--security/gpgme/buildlink3.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/security/gpgme/buildlink3.mk b/security/gpgme/buildlink3.mk
index bf9de4f99f6..085f06199bc 100644
--- a/security/gpgme/buildlink3.mk
+++ b/security/gpgme/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.20 2011/04/22 13:42:47 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.21 2015/10/31 17:46:12 richard Exp $
BUILDLINK_TREE+= gpgme
@@ -17,9 +17,17 @@ pkgbase:= gpgme
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.gpgme:Mgpgsm)
+. if !empty(PKG_BUILD_OPTIONS.gpgme:Mgnupg21)
+DEPENDS+= gnupg21>=2.1:../../security/gnupg21
+. else
+DEPENDS+= gnupg2>=2.0<2.1:../../security/gnupg2
+. endif
GPGME_GPG= ${PREFIX}/bin/gpg2
+CONFIGURE_ARGS+= ac_cv_path_GNUPG=${GPGME_GPG}
.else
+DEPENDS+= gnupg>=1.4.2:../../security/gnupg
GPGME_GPG= ${PREFIX}/bin/gpg
+CONFIGURE_ARGS+= ac_cv_path_GNUPG=${GPGME_GPG}
.endif
.endif # GPGME_BUILDLINK3_MK