From 9a4e61c15c737aaa1911715a94e7b1670e5856db Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 9 Jun 2000 14:58:30 +0000 Subject: Make it compile on 1.4Y+ even if ncurses are installed. Pointed out by tron. --- mail/mutt/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile index d42ece84c2e..7d34d80aa27 100644 --- a/mail/mutt/Makefile +++ b/mail/mutt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.47 2000/06/08 12:57:18 wiz Exp $ +# $NetBSD: Makefile,v 1.48 2000/06/09 14:58:30 wiz Exp $ DISTNAME= mutt-1.2i CATEGORIES= mail @@ -55,7 +55,15 @@ CURSES_GOOD?= # defined .endif .endfor -.if !defined(CURSES_GOOD) +.if defined(CURSES_GOOD) +# hack to allow compilation even if ncurses are installed +pre-configure: +.for FILE in configure configure.in + cd ${WRKSRC}; ${SED} "s/-lncurses/-lcurses/" < ${FILE} \ + > ${FILE}.patched; ${MV} ${FILE}.patched ${FILE} +.endfor + ${CHMOD} 755 ${WRKSRC}/configure +.else DEPENDS+= ncurses>=4.2:../../devel/ncurses CONFIGURE_ARGS+= --with-curses=${LOCALBASE} .endif -- cgit v1.2.3