summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2008-05-11 19:10:30 +0000
committertonio <tonio@pkgsrc.org>2008-05-11 19:10:30 +0000
commita896ef145e58ab1ab1e414e0e965acebc6e116bd (patch)
tree8a10d4144a47ee4b76cb5cab3d960476cab896cd /chat
parentce6709837a1377f9981e76fc0d58b0327527b556 (diff)
downloadpkgsrc-a896ef145e58ab1ab1e414e0e965acebc6e116bd.tar.gz
Add a wide-curses option, to enable utf-8 support.
Based on patch from Leonardo Taccari in PR pkg/38418
Diffstat (limited to 'chat')
-rw-r--r--chat/weechat/Makefile3
-rw-r--r--chat/weechat/options.mk10
2 files changed, 9 insertions, 4 deletions
diff --git a/chat/weechat/Makefile b/chat/weechat/Makefile
index 678a92e81be..9149e5c7f07 100644
--- a/chat/weechat/Makefile
+++ b/chat/weechat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/10/12 23:06:27 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2008/05/11 19:10:30 tonio Exp $
#
DISTNAME= weechat-0.2.6
@@ -26,5 +26,4 @@ INCOMPAT_CURSES+= NetBSD-*-*
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
-.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/chat/weechat/options.mk b/chat/weechat/options.mk
index 5b21c0717bb..6c837ca67b6 100644
--- a/chat/weechat/options.mk
+++ b/chat/weechat/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.4 2008/04/12 22:42:58 jlam Exp $
+# $NetBSD: options.mk,v 1.5 2008/05/11 19:10:30 tonio Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.weechat
-PKG_SUPPORTED_OPTIONS= charset gnutls python lua
+PKG_SUPPORTED_OPTIONS= charset gnutls python lua wide-curses
PKG_SUGGESTED_OPTIONS= charset
.include "../../mk/bsd.options.mk"
@@ -19,6 +19,12 @@ CONFIGURE_ARGS+= --disable-charset
.include "../../security/gnutls/buildlink3.mk"
.endif
+.if !empty(PKG_OPTIONS:Mwide-curses)
+.include "../../devel/ncursesw/buildlink3.mk"
+.else
+.include "../../devel/ncurses/buildlink3.mk"
+.endif
+
.if !empty(PKG_OPTIONS:Mpython)
.include "../../lang/python/extension.mk"
CONFIGURE_ARGS+= --enable-python