From 7c8a93616a7dce37b13da1b3e9fcb85b44ad5c84 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 31 Oct 2015 17:46:12 +0000 Subject: add depends for appropriate gnupg according to options selected ok tnn@ re: options.mk v 1.3 --- security/gpgme/buildlink3.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'security') 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 -- cgit v1.2.3