diff options
author | wiz <wiz> | 2000-06-09 14:58:30 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-06-09 14:58:30 +0000 |
commit | a1276b80328638b1d62318241d98a0a60e7ef22c (patch) | |
tree | 22370acdeb1ddb9235a2ed8ec907f62256a444fc /mail/mutt | |
parent | 69697ce65e71eb2d930aad7133206096b4e55346 (diff) | |
download | pkgsrc-a1276b80328638b1d62318241d98a0a60e7ef22c.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 |