summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortm <tm@pkgsrc.org>2018-05-08 11:56:21 +0000
committertm <tm@pkgsrc.org>2018-05-08 11:56:21 +0000
commit0de185869b20b7917e2045eaf2a9f77470476912 (patch)
tree1a26e894baac3585a22b9ff72eee417a147cf833 /security
parentfe01467e6facaf2a07849463ffe3feef092396be (diff)
downloadpkgsrc-0de185869b20b7917e2045eaf2a9f77470476912.tar.gz
gnupg2: add options for bzip2 and zlib
Diffstat (limited to 'security')
-rw-r--r--security/gnupg2/Makefile3
-rw-r--r--security/gnupg2/options.mk18
2 files changed, 18 insertions, 3 deletions
diff --git a/security/gnupg2/Makefile b/security/gnupg2/Makefile
index d37a58727fe..8c7ce49ccdc 100644
--- a/security/gnupg2/Makefile
+++ b/security/gnupg2/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.85 2018/05/04 06:08:40 adam Exp $
+# $NetBSD: Makefile,v 1.86 2018/05/08 11:56:21 tm Exp $
DISTNAME= gnupg-2.2.7
PKGNAME= ${DISTNAME:S/gnupg-/gnupg2-/}
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/
EXTRACT_SUFX= .tar.bz2
diff --git a/security/gnupg2/options.mk b/security/gnupg2/options.mk
index e0d66b552b8..27965e46fab 100644
--- a/security/gnupg2/options.mk
+++ b/security/gnupg2/options.mk
@@ -1,11 +1,18 @@
-# $NetBSD: options.mk,v 1.11 2017/08/29 12:11:35 wiz Exp $
+# $NetBSD: options.mk,v 1.12 2018/05/08 11:56:21 tm Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg2
-PKG_SUPPORTED_OPTIONS= ldap libusb-1
+PKG_SUPPORTED_OPTIONS= bzip2 ldap libusb-1 zlib
PKG_SUGGESTED_OPTIONS= libusb-1
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mbzip2)
+CONFIGURE_ARGS+= --with-bzip2=${BUILDLINK_PREFIX.bzip2}
+.include "../../archivers/bzip2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-bzip2
+.endif
+
PLIST_VARS+= ldap
.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
@@ -23,3 +30,10 @@ CONFIGURE_ARGS+= LDFLAGS="${LDFLAGS} ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.li
.else
CONFIGURE_ARGS+= --disable-ccid-driver
.endif
+
+.if !empty(PKG_OPTIONS:Mzlib)
+CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
+.include "../../devel/zlib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-zip
+.endif