summaryrefslogtreecommitdiff
path: root/editors/nvi2/Makefile
blob: ef4365b30e43777e107ae8946b9901424f842018 (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
42
43
44
45
46
47
48
# Created by: Craig Leres <leres@FreeBSD.org>
# $FreeBSD$

PORTNAME=	nvi2
PORTVERSION=	2.2.0
DISTVERSIONPREFIX=	v
CATEGORIES=	editors

MAINTAINER=	leres@FreeBSD.org
COMMENT=	Updated implementation of the ex/vi text editor

LICENSE=	BSD3CLAUSE

USES=		bdb cmake compiler:c11 ncurses
USE_GITHUB=	yes

GH_ACCOUNT=	lichray

CONFLICTS_INSTALL=	nvi-m17n-[0-9]* nvi-[0-9]*

OPTIONS_DEFINE=		DEBUG WIDECHAR ICONV
OPTIONS_DEFAULT=	WIDECHAR ICONV

WIDECHAR_DESC=		Enable wide-character support (UTF-8)
ICONV_DESC=		Enable iconv support

DEBUG_CMAKE_BOOL=	ENABLE_DEBUG
ICONV_CMAKE_BOOL=	ENABLE_ICONV
ICONV_USES=		iconv
WIDECHAR_CMAKE_BOOL=	ENABLE_WIDECHAR

PLIST_FILES=	bin/nex \
		bin/nvi \
		bin/nview \
		man/man1/nex.1.gz \
		man/man1/nvi.1.gz \
		man/man1/nview.1.gz

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/nvi ${STAGEDIR}${PREFIX}/bin
	${LN} ${STAGEDIR}${PREFIX}/bin/nvi ${STAGEDIR}${PREFIX}/bin/nex
	${LN} ${STAGEDIR}${PREFIX}/bin/nvi ${STAGEDIR}${PREFIX}/bin/nview
	${INSTALL_MAN} ${WRKSRC}/man/vi.1 \
	    ${STAGEDIR}${MAN1PREFIX}/man/man1/nvi.1
	${LN} -sf nvi.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/nex.1
	${LN} -sf nvi.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/nview.1

.include <bsd.port.mk>