summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2002-06-15 15:32:27 +0000
committerfredb <fredb@pkgsrc.org>2002-06-15 15:32:27 +0000
commitf63b6c64906527cf61e10d242b29d1b4e8abcfbc (patch)
tree58ff53a20d5295199e46d3ae2886c96acead672d /mail
parent4c6fa1026ea653ab423f556a954c9167d4875ef0 (diff)
downloadpkgsrc-f63b6c64906527cf61e10d242b29d1b4e8abcfbc.tar.gz
Add a knob to force build with "ncurses", and count on all the
USE_MUTT_* knobs to have a default set in bsd.pkg.defaults.mk, since they now are.
Diffstat (limited to 'mail')
-rw-r--r--mail/mutt/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index 6fcc8b36b0a..899d054d633 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.79 2002/05/29 12:13:52 tron Exp $
+# $NetBSD: Makefile,v 1.80 2002/06/15 15:32:27 fredb Exp $
DISTNAME= mutt-1.4i
PKGNAME= ${DISTNAME:C/i$//}
@@ -28,12 +28,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME:C/i$$//}
.include "../../mk/bsd.prefs.mk"
-.if defined(MUTT_USE_SLANG) && ${MUTT_USE_SLANG} != NO
-.include "../../devel/libslang/buildlink.mk"
+.if ${MUTT_USE_SLANG} == YES
+. include "../../devel/libslang/buildlink.mk"
CONFIGURE_ARGS+= --with-slang=${BUILDLINK_DIR}
.else
-.include "../../devel/ncurses/buildlink.mk"
+. include "../../devel/ncurses/buildlink.mk"
CONFIGURE_ARGS+= --with-curses=${BUILDLINK_DIR}
+. if ${MUTT_USE_NCURSES} == YES
+USE_NCURSES= YES
+. endif
.endif
# There seems to be a problem using NetBSD's /bin/sh, so use /bin/ksh instead.
@@ -41,16 +44,14 @@ CONFIGURE_ARGS+= --with-curses=${BUILDLINK_DIR}
CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh
.endif
-MUTT_USE_SSL?= YES
-
-.if defined(MUTT_USE_SSL) && ${MUTT_USE_SSL} == "YES"
+.if ${MUTT_USE_SSL} == YES
.include "../../security/openssl/buildlink.mk"
CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_DIR}
.else
CONFIGURE_ARGS+= --without-ssl
.endif
-BUILD_DEFS+= MUTT_USE_SLANG MUTT_USE_SSL
+BUILD_DEFS+= MUTT_USE_NCURSES MUTT_USE_SLANG MUTT_USE_SSL
MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
EGDIR= ${PREFIX}/share/doc/mutt/samples