diff options
author | wiz <wiz@pkgsrc.org> | 2000-07-28 10:33:56 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2000-07-28 10:33:56 +0000 |
commit | d63de2f4a37307523d7d0882a887bcdfe62a5bca (patch) | |
tree | 645721463659c2eb41c243dc65126304596e7750 /mail | |
parent | 5c635cc3235c723c204ab1618f678a6f6720c03a (diff) | |
download | pkgsrc-d63de2f4a37307523d7d0882a887bcdfe62a5bca.tar.gz |
Add USE_CURSES for packages that need curses functionality that only
got added in 1.4Y; on older version of NetBSD, ncurses will be used.
Replace previous code that did the same, but wasn't shared.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mutt/Makefile | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile index 854857b4316..ef3a3f7fbfe 100644 --- a/mail/mutt/Makefile +++ b/mail/mutt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.53 2000/07/10 10:10:19 tron Exp $ +# $NetBSD: Makefile,v 1.54 2000/07/28 10:33:58 wiz Exp $ DISTNAME= mutt-1.2.4i CATEGORIES= mail @@ -19,6 +19,8 @@ USE_GMAKE= yes CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh \ --with-docdir=${PREFIX}/share/doc/mutt \ --enable-pop --enable-imap +USE_CURSES= yes +REPLACE_NCURSES= configure configure.in ALL_TARGET= keymap_defs.h all LDFLAGS+= -s @@ -43,27 +45,8 @@ PLIST_SUBST+= LOCALEBASE=lib PLIST_SUBST+= LOCALEBASE=share .endif -.if ${OPSYS} == "NetBSD" -GOOD_CURSES= 1.4[Y-Z] 1.4Z[A-Z] 1.[5-9]* - -.for PATTERN in ${GOOD_CURSES} -.if ${OS_VERSION:M${PATTERN}} != "" -CURSES_GOOD?= # defined -.endif -.endfor +.include "../../mk/bsd.pkg.mk" -.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 +.if defined(NEED_NCURSES) && ${NEED_NCURSES} == "YES" CONFIGURE_ARGS+= --with-curses=${LOCALBASE} .endif -.endif - -.include "../../mk/bsd.pkg.mk" |