59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.4 2012/11/09 21:07:30 naddy Exp $
|
|
|
|
COMMENT= ex/vi text editor with wide character support
|
|
|
|
# commit 5394b0b0eb611d07c07cdb3552b247b9f11dc30e
|
|
DISTNAME= nvi-2.1.1
|
|
CATEGORIES= editors
|
|
HOMEPAGE= https://github.com/lichray/nvi2
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://shell.uugrn.org/~naddy/
|
|
|
|
WANTLIB= c ncursesw util
|
|
|
|
MODULES= devel/cmake
|
|
|
|
# ${WRKSRC}/config.h is written
|
|
SEPARATE_BUILD= No
|
|
|
|
WRKSRC= ${WRKDIST}/build
|
|
|
|
FLAVORS= iconv
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Miconv}
|
|
MODULES+= converters/libiconv
|
|
.else
|
|
CONFIGURE_ARGS= -DUSE_ICONV:Bool=False
|
|
.endif
|
|
|
|
post-patch:
|
|
perl -pi.bak \
|
|
-e 's:/usr/share/vi/catalog/:${PREFIX}/share/vi/catalog/:' \
|
|
${WRKSRC}/pathnames.h.in
|
|
|
|
post-build:
|
|
cd ${WRKDIST}/catalog && ${MAKE_PROGRAM}
|
|
|
|
CATALOGS= dutch english french german polish ru_RU.KOI8-R spanish \
|
|
swedish uk_UA.KOI8-U zh_CN.GB2312
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/nvi ${PREFIX}/bin
|
|
cd ${PREFIX}/bin; ln nvi nex; ln nvi nview
|
|
${INSTALL_MAN} ${WRKDIST}/docs/man/vi.1 ${PREFIX}/man/man1/nvi.1
|
|
cd ${PREFIX}/man/man1; ln nvi.1 nex.1; ln nvi.1 nview.1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/vi/catalog
|
|
cd ${WRKDIST}/catalog; \
|
|
${INSTALL_DATA} ${CATALOGS} ${PREFIX}/share/vi/catalog
|
|
|
|
.include <bsd.port.mk>
|