summaryrefslogtreecommitdiff
path: root/security/gpgme
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-04 15:09:44 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-04 15:09:44 +0000
commitb6b0428ae56164116ed48a76dfe293bc249496ea (patch)
treeb4b259bee2a7f70f75acd1ed4ad6d2f6885e6549 /security/gpgme
parent0844ade5eca306fe47febf89fdb61c7023b1f678 (diff)
downloadpkgsrc-b6b0428ae56164116ed48a76dfe293bc249496ea.tar.gz
Expose the gpg binary gpgme is build against and use that in security/gpa.
Diffstat (limited to 'security/gpgme')
-rw-r--r--security/gpgme/buildlink3.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/security/gpgme/buildlink3.mk b/security/gpgme/buildlink3.mk
index 2cb25aefc85..1efc32e1302 100644
--- a/security/gpgme/buildlink3.mk
+++ b/security/gpgme/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.17 2009/03/20 19:25:17 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.18 2010/01/04 15:09:44 joerg Exp $
BUILDLINK_TREE+= gpgme
@@ -11,6 +11,16 @@ BUILDLINK_PKGSRCDIR.gpgme?= ../../security/gpgme
.include "../../security/libgpg-error/buildlink3.mk"
.include "../../devel/librfuncs/buildlink3.mk"
+
+pkgbase:= gpgme
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.gpgme:Mgpgsm)
+GPGME_GPG= ${PREFIX}/bin/gpg2
+.else
+GPGME_GPG= ${PREFIX}/bin/gpg
+.endif
+
.endif # GPGME_BUILDLINK3_MK
BUILDLINK_TREE+= -gpgme