aboutsummaryrefslogtreecommitdiff
path: root/security/gpgme03/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/gpgme03/Makefile')
-rw-r--r--security/gpgme03/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/security/gpgme03/Makefile b/security/gpgme03/Makefile
index 28d5f4c6021b..1e73b84d0a9d 100644
--- a/security/gpgme03/Makefile
+++ b/security/gpgme03/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gpgme
-PORTVERSION= 0.3.14
+PORTVERSION= 0.3.15
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= gpgme
@@ -23,7 +23,19 @@ CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
USE_GMAKE= yes
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/gpgsm)
+WITH_GPGSM= yes
+.endif
+
+.if defined(WITH_GPGSM)
+BUILD_DEPENDS+= gpgsm:${PORTSDIR}/security/newpg
+.else
+CONFIGURE_ARGS+= --without-gpgsm
+.endif
+
pre-configure:
@${RM} -r ${WRKSRC}/doc/gpgme.info*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>