diff options
author | wiz <wiz@pkgsrc.org> | 2000-06-09 14:58:30 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2000-06-09 14:58:30 +0000 |
commit | 9a4e61c15c737aaa1911715a94e7b1670e5856db (patch) | |
tree | 22370acdeb1ddb9235a2ed8ec907f62256a444fc /mail/mutt | |
parent | 63d65ad23256dddaee71514b4de940c2614c60c9 (diff) | |
download | pkgsrc-9a4e61c15c737aaa1911715a94e7b1670e5856db.tar.gz |
Make it compile on 1.4Y+ even if ncurses are installed.
Pointed out by tron.
Diffstat (limited to 'mail/mutt')
-rw-r--r-- | mail/mutt/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
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 |