summaryrefslogtreecommitdiff
path: root/editors/vile/Makefile
blob: dfb1a3b05a56573c65c13eefa99782b2772bb4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.19 2000/02/05 18:30:59 wiz Exp $
# FreeBSD Id: Makefile,v 1.13 1997/09/06 19:55:09 gj Exp

DISTNAME=	vile-9.0
CATEGORIES=	editors
MASTER_SITES=   ftp://ftp.clark.net/pub/dickey/vile/ \
		ftp://ftp.uni-trier.de/pub/unix/editor/vile/ \
		ftp://ftp.phred.org/pub/vile/
EXTRACT_SUFX=	.tgz

MAINTAINER=	packages@netbsd.org

MAKEFILE=		makefile
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-perl \
			--with-libdir-path=${PREFIX}/libexec
USE_PERL5=		yes

INSTALL_TARGET=	install install-perl

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
DEPENDS+=		ncurses>=4.2:../../devel/ncurses
CFLAGS+=		-DHAVE_NCURSES_H
CONFIGURE_ARGS+=	--with-screen=ncurses
.endif

post-install:
	-@${MKDIR} ${PREFIX}/share/examples/vile
	@for f in filters/spell.rc filters/filters.rc		\
		macros/digraphs.rc macros/pictmode.rc		\
		macros/manpage.rc visvile/visvile.rc; do	\
		${BSD_INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/examples/vile; \
	done

.include "../../mk/bsd.pkg.mk"