summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-02-23 14:09:13 +0000
committernia <nia@pkgsrc.org>2020-02-23 14:09:13 +0000
commit7a9aa155e43ef0d73357ff048190ad3b35db015c (patch)
tree59fccb83a4506c4de911b89bf9dc1c88469dc490 /chat
parent1c990e755b2b86fe14e91531f63af57291cf75b4 (diff)
downloadpkgsrc-7a9aa155e43ef0d73357ff048190ad3b35db015c.tar.gz
irssi: Add an OTR option. Enable it by default.
Bump PKGREVISION.
Diffstat (limited to 'chat')
-rw-r--r--chat/irssi/Makefile4
-rw-r--r--chat/irssi/options.mk14
2 files changed, 13 insertions, 5 deletions
diff --git a/chat/irssi/Makefile b/chat/irssi/Makefile
index b1d9053681b..d1708db54cf 100644
--- a/chat/irssi/Makefile
+++ b/chat/irssi/Makefile
@@ -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 --git a/chat/irssi/options.mk b/chat/irssi/options.mk
index f268653562e..66b11401fe7 100644
--- a/chat/irssi/options.mk
+++ b/chat/irssi/options.mk
@@ -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