summaryrefslogtreecommitdiff
path: root/mail/mutt
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-06-08 12:57:18 +0000
committerwiz <wiz@pkgsrc.org>2000-06-08 12:57:18 +0000
commitcf804dd39c5054f71d44593e732018833d5489cf (patch)
tree03d619d8f990001bea75398cf169eb58d44464fd /mail/mutt
parentcc67d3b48075268aba3bb9f29c366e425a15e127 (diff)
downloadpkgsrc-cf804dd39c5054f71d44593e732018833d5489cf.tar.gz
Use NetBSD's curses on 1.4Y+ instead of ncurses
Diffstat (limited to 'mail/mutt')
-rw-r--r--mail/mutt/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index 777c40fd173..d42ece84c2e 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2000/05/20 18:39:45 kim Exp $
+# $NetBSD: Makefile,v 1.47 2000/06/08 12:57:18 wiz Exp $
DISTNAME= mutt-1.2i
CATEGORIES= mail
@@ -18,7 +18,7 @@ RESTRICTED= "Contains PGP and SSL code"
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_ARGS+= --with-curses=${LOCALBASE} --with-exec-shell=/bin/ksh \
+CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh \
--with-docdir=${PREFIX}/share/doc/mutt \
--enable-pop --enable-imap
@@ -46,7 +46,19 @@ PLIST_SUBST+= LOCALEBASE=share
.endif
.if ${OPSYS} == "NetBSD"
+OSVER!= uname -r
+GOOD_CURSES= 1.4[Y-Z] 1.4Z[A-Z] 1.[5-9]*
+
+.for PATTERN in ${GOOD_CURSES}
+.if ${OSVER:M${PATTERN}} != ""
+CURSES_GOOD?= # defined
+.endif
+.endfor
+
+.if !defined(CURSES_GOOD)
DEPENDS+= ncurses>=4.2:../../devel/ncurses
+CONFIGURE_ARGS+= --with-curses=${LOCALBASE}
+.endif
.endif
.include "../../mk/bsd.pkg.mk"