summaryrefslogtreecommitdiff
path: root/mail/mutt-devel
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2006-10-18 19:46:35 +0000
committertonio <tonio@pkgsrc.org>2006-10-18 19:46:35 +0000
commit18fd57bd59a97c409b16e3a8527c24db7bb9b63c (patch)
tree45e341e707097a73bf10e95a0b6dd1e7c40215e8 /mail/mutt-devel
parent890d5c3e1c1707f1cfe85c62fc51a3ff5e79abd7 (diff)
downloadpkgsrc-18fd57bd59a97c409b16e3a8527c24db7bb9b63c.tar.gz
Improve handling of options related to the terminal library used by this
package and add support for "ncursesw". Patch supplied by Ben Collver pkg/34777.
Diffstat (limited to 'mail/mutt-devel')
-rw-r--r--mail/mutt-devel/options.mk27
1 files changed, 23 insertions, 4 deletions
diff --git a/mail/mutt-devel/options.mk b/mail/mutt-devel/options.mk
index b2354f84d94..89a27a2cde7 100644
--- a/mail/mutt-devel/options.mk
+++ b/mail/mutt-devel/options.mk
@@ -1,12 +1,12 @@
-# $NetBSD: options.mk,v 1.19 2006/08/19 18:43:02 tonio Exp $
+# $NetBSD: options.mk,v 1.20 2006/10/18 19:46:35 tonio Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
-PKG_OPTIONS_OPTIONAL_GROUPS= display
-PKG_OPTIONS_GROUP.display= slang ncurses
+PKG_OPTIONS_REQUIRED_GROUPS= display
+PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses
PKG_SUPPORTED_OPTIONS= ssl sasl mutt-hcache idn mutt-compressed-mbox
-PKG_SUGGESTED_OPTIONS= ssl
+PKG_SUGGESTED_OPTIONS= ssl curses
.include "../../mk/bsd.options.mk"
@@ -35,6 +35,25 @@ CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses}
CONFIGURE_ARGS+= --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
.endif
+### curses
+###
+.if !empty(PKG_OPTIONS:Mcurses)
+. include "../../mk/curses.buildlink3.mk"
+.endif
+
+###
+### ncursesw
+###
+.if !empty(PKG_OPTIONS:Mncursesw)
+. include "../../devel/ncursesw/buildlink3.mk"
+.else
+SUBST_CLASSES+= curse
+SUBST_MESSAGE.curse= Fixing mutt to avoid ncursesw
+SUBST_STAGE.curse= post-patch
+SUBST_FILES.curse= configure.in configure
+SUBST_SED.curse= -e 's,for lib in ncurses ncursesw,for lib in ncurses,'
+.endif
+
###
### SSL
###