pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/irssi irssi: Add an OTR option. Enable it by defa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32b0f0b8ddb3
branches:  trunk
changeset: 411907:32b0f0b8ddb3
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Feb 23 14:09:13 2020 +0000

description:
irssi: Add an OTR option. Enable it by default.

Bump PKGREVISION.

diffstat:

 chat/irssi/Makefile   |   4 ++--
 chat/irssi/options.mk |  14 +++++++++++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r aed9737b0f24 -r 32b0f0b8ddb3 chat/irssi/Makefile
--- a/chat/irssi/Makefile       Sun Feb 23 13:10:49 2020 +0000
+++ b/chat/irssi/Makefile       Sun Feb 23 14:09:13 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.95 2020/01/18 21:48:50 jperkin Exp $
+# $NetBSD: Makefile,v 1.96 2020/02/23 14:09:13 nia Exp $
 
 DISTNAME=              ${IRSSI_DISTNAME}
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            chat
 EXTRACT_SUFX=          ${IRSSI_EXTRACT_SUFX}
 
diff -r aed9737b0f24 -r 32b0f0b8ddb3 chat/irssi/options.mk
--- a/chat/irssi/options.mk     Sun Feb 23 13:10:49 2020 +0000
+++ b/chat/irssi/options.mk     Sun Feb 23 14:09:13 2020 +0000
@@ -1,11 +1,19 @@
-# $NetBSD: options.mk,v 1.21 2019/02/12 04:43:52 maya Exp $
+# $NetBSD: options.mk,v 1.22 2020/02/23 14:09:13 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.irssi
-PKG_SUPPORTED_OPTIONS=         perl truecolor
-PKG_SUGGESTED_OPTIONS=         perl truecolor
+PKG_SUPPORTED_OPTIONS=         otr perl truecolor
+PKG_SUGGESTED_OPTIONS=         otr perl truecolor
 
 .include "../../mk/bsd.options.mk"
 
+.if !empty(PKG_OPTIONS:Motr)
+# Build it into the main irssi executable instead of a module.
+CONFIGURE_ARGS+=       --with-otr=static
+.include "../../chat/libotr/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --with-otr=no
+.endif
+
 PLIST_VARS+=           perl
 .if !empty(PKG_OPTIONS:Mperl)
 PLIST.perl=            yes



Home | Main Index | Thread Index | Old Index