summaryrefslogtreecommitdiff
path: root/mail/mutt
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-10-14 20:34:36 +0000
committertron <tron@pkgsrc.org>2006-10-14 20:34:36 +0000
commite05de6287ec264853b2f8b8e21c128a13c9d311b (patch)
tree965e26902ca1de4eb75d30ef364c52c8bbc797d8 /mail/mutt
parent5215c1508652c3d232e853ad1b4e1a0db724ceca (diff)
downloadpkgsrc-e05de6287ec264853b2f8b8e21c128a13c9d311b.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')
-rw-r--r--mail/mutt/options.mk28
1 files changed, 24 insertions, 4 deletions
diff --git a/mail/mutt/options.mk b/mail/mutt/options.mk
index 6caddf0487c..0d7276aac86 100644
--- a/mail/mutt/options.mk
+++ b/mail/mutt/options.mk
@@ -1,10 +1,10 @@
-# $NetBSD: options.mk,v 1.10 2006/08/08 16:17:50 tron Exp $
+# $NetBSD: options.mk,v 1.11 2006/10/14 20:34:36 tron Exp $
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 buffy-size
-PKG_SUGGESTED_OPTIONS= ssl
+PKG_SUGGESTED_OPTIONS= ssl curses
.include "../../mk/bsd.options.mk"
@@ -26,6 +26,26 @@ CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses}
.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
###
.if !empty(PKG_OPTIONS:Mssl)