summaryrefslogtreecommitdiff
path: root/editors/elvis/Makefile
blob: 7b23228b1b25bb6f83e432084203b8defbf576b1 (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
38
39
40
41
# $NetBSD: Makefile,v 1.12 2013/06/04 22:15:57 tron Exp $

# This section contains variables that might be overridden.
PKGNAME?=	${PKGNAME_BASE}
COMMENT?=	Clone of vi with regex-search, hex-edit, HTML/LaTeX preview

# Normal package Makefile contents follow.
DISTNAME=	elvis-2.2_0
PKGNAME_BASE=	${DISTNAME:S/_/./}
PKGREVISION=	10
CATEGORIES=	editors
MASTER_SITES=	ftp://ftp.cs.pdx.edu/pub/elvis/

CONFLICTS+=	elvis-[0-9]*
CONFLICTS+=	elvis-x11-[0-9]*

MAINTAINER=	airhead@users.sourceforge.net
HOMEPAGE=	http://elvis.vi-editor.org/
LICENSE=	artistic

.include "options.mk"

HAS_CONFIGURE=		yes
CONFIGURE_ARGS+=	--verbose
CONFIGURE_ARGS+=	--prefix=${PREFIX:Q}
CONFIGURE_ARGS+=	--docdir=${PREFIX:Q}/share/doc/elvis
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}

PKG_SYSCONFSUBDIR?=	elvis
CONF_FILES=		${PREFIX}/share/elvis/elvis.rc \
			${PKG_SYSCONFDIR}/elvis.rc

INSTALL_MAKE_FLAGS+=	PREFIX=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+=	BINDIR=${DESTDIR}${PREFIX}/bin
INSTALL_MAKE_FLAGS+=	DATADIR=${DESTDIR}${PREFIX}/share/elvis
INSTALL_MAKE_FLAGS+=	DOCDIR=${DESTDIR}${PREFIX}/share/doc/elvis

INSTALLATION_DIRS=	${PKGMANDIR}/man1

.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"