summaryrefslogtreecommitdiff
path: root/editors/vile
diff options
context:
space:
mode:
authorwiz <wiz>2001-01-07 01:48:19 +0000
committerwiz <wiz>2001-01-07 01:48:19 +0000
commit7503c0c4ede7286ece0c70d73b1776d59bb0d902 (patch)
tree2c6df9710c5e1b1df74fe1f40c6633ce07186bf8 /editors/vile
parent9168be0f01652394ddcdbe4b7f1bf0bc92b54096 (diff)
downloadpkgsrc-7503c0c4ede7286ece0c70d73b1776d59bb0d902.tar.gz
USE_CURSES instead of hard dependency on ncurses.
Diffstat (limited to 'editors/vile')
-rw-r--r--editors/vile/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/editors/vile/Makefile b/editors/vile/Makefile
index 452682d6e13..311f169be75 100644
--- a/editors/vile/Makefile
+++ b/editors/vile/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2000/09/06 08:16:14 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2001/01/07 01:48:19 wiz Exp $
# FreeBSD Id: Makefile,v 1.13 1997/09/06 19:55:09 gj Exp
DISTNAME= vile-9.0
@@ -11,6 +11,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= packages@netbsd.org
USE_PERL5= # defined
+USE_CURSES= # defined
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-perl
@@ -29,14 +30,6 @@ DATADIR= ${PREFIX}/share/vile
FILTERDIR= ${PREFIX}/libexec/vile
EGDIR= ${PREFIX}/share/examples/vile
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-DEPENDS+= ncurses>=4.2:../../devel/ncurses
-CPPFLAGS+= -DHAVE_NCURSES_H
-CONFIGURE_ARGS+= --with-screen=ncurses
-.endif
-
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/perl/vileget ${PREFIX}/bin/vileget
@${INSTALL_DATA_DIR} ${EGDIR}
@@ -46,4 +39,11 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/$$f ${EGDIR}; \
done
+.include "../../mk/bsd.prefs.mk"
+
+.if ${NEED_NCURSES} == "YES"
+CPPFLAGS+= -DHAVE_NCURSES_H
+CONFIGURE_ARGS+= --with-screen=ncurses
+.endif
+
.include "../../mk/bsd.pkg.mk"