pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[.joined/pkgsrc/trunk]: .joined/pkgsrc/security/gnutls gnutls: add lzo option



details:   https://anonhg.NetBSD.org/.joined/pkgsrc/rev/2cf633e4a19a
branches:  trunk
changeset: 371028:2cf633e4a19a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jan 03 12:36:53 2022 +0000

description:
gnutls: add lzo option

Based on PR 56601 by Vladimir Stupin.

diffstat:

 security/gnutls/Makefile      |   3 +--
 security/gnutls/buildlink3.mk |   6 ++++--
 security/gnutls/options.mk    |  12 ++++++++++--
 3 files changed, 15 insertions(+), 6 deletions(-)

diffs (69 lines):

diff -r 8cbc5806aa43 -r 2cf633e4a19a security/gnutls/Makefile
--- a/security/gnutls/Makefile  Mon Jan 03 12:19:55 2022 +0000
+++ b/security/gnutls/Makefile  Mon Jan 03 12:36:53 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.225 2021/12/26 23:03:54 gutteridge Exp $
+# $NetBSD: Makefile,v 1.226 2022/01/03 12:36:53 wiz Exp $
 
 DISTNAME=      gnutls-3.7.2
 PKGREVISION=   2
@@ -99,7 +99,6 @@
 post-install:
        cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} *.c ${DESTDIR}${EGDIR}
 
-.include "../../archivers/lzo/buildlink3.mk"
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 BUILDLINK_API_DEPENDS.gmp+=            gmp>=5.0
diff -r 8cbc5806aa43 -r 2cf633e4a19a security/gnutls/buildlink3.mk
--- a/security/gnutls/buildlink3.mk     Mon Jan 03 12:19:55 2022 +0000
+++ b/security/gnutls/buildlink3.mk     Mon Jan 03 12:36:53 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.41 2021/09/29 19:00:12 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.42 2022/01/03 12:36:53 wiz Exp $
 
 BUILDLINK_TREE+=       gnutls
 
@@ -9,7 +9,6 @@
 BUILDLINK_ABI_DEPENDS.gnutls+= gnutls>=3.7.2nb1
 BUILDLINK_PKGSRCDIR.gnutls?=   ../../security/gnutls
 
-.include "../../archivers/lzo/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/libcfg+/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
@@ -26,6 +25,9 @@
 .if ${PKG_BUILD_OPTIONS.gnutls:Mguile}
 .include "../../lang/guile22/buildlink3.mk"
 .endif
+.if ${PKG_BUILD_OPTIONS.gnutls:Mlzo}
+.include "../../archivers/lzo/buildlink3.mk"
+.endif
 .endif # GNUTLS_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -gnutls
diff -r 8cbc5806aa43 -r 2cf633e4a19a security/gnutls/options.mk
--- a/security/gnutls/options.mk        Mon Jan 03 12:19:55 2022 +0000
+++ b/security/gnutls/options.mk        Mon Jan 03 12:36:53 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: options.mk,v 1.3 2020/05/14 14:30:02 nikita Exp $
+# $NetBSD: options.mk,v 1.4 2022/01/03 12:36:53 wiz Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.gnutls
-PKG_SUPPORTED_OPTIONS= dane guile
+PKG_SUPPORTED_OPTIONS= dane guile lzo
+PKG_SUGGESTED_OPTIONS= lzo
 
 .include "../../mk/bsd.options.mk"
 
@@ -20,3 +21,10 @@
 .else
 CONFIGURE_ARGS+=       --disable-guile
 .endif
+
+.if !empty(PKG_OPTIONS:Mlzo)
+.include "../../archivers/lzo/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-lzo
+.else
+CONFIGURE_ARGS+=       --disable-lzo
+.endif



Home | Main Index | Thread Index | Old Index