1996-11-01 08:16:24 +00:00
|
|
|
#
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1996-11-01 08:16:24 +00:00
|
|
|
#
|
1994-08-16 23:36:45 +00:00
|
|
|
|
1996-11-01 08:16:24 +00:00
|
|
|
SRCDIR= ${.CURDIR}/../../contrib/nvi
|
|
|
|
|
1997-04-18 23:44:54 +00:00
|
|
|
CFLAGS+= -DGTAGS
|
|
|
|
|
1996-11-01 08:16:24 +00:00
|
|
|
#if using ncurses:
|
1999-08-30 08:28:47 +00:00
|
|
|
CFLAGS+= -DSYSV_CURSES
|
1996-11-01 08:16:24 +00:00
|
|
|
|
2010-01-02 10:27:05 +00:00
|
|
|
WARNS?= 0
|
|
|
|
|
1996-11-01 08:16:24 +00:00
|
|
|
VI= nvi
|
|
|
|
EX= nex
|
|
|
|
VIEW= nview
|
|
|
|
|
|
|
|
PROG= nvi
|
|
|
|
|
|
|
|
LINKS= ${BINDIR}/${VI} ${BINDIR}/${EX} ${BINDIR}/${VI} ${BINDIR}/${VIEW}
|
|
|
|
LINKS+= ${BINDIR}/${VI} ${BINDIR}/vi ${BINDIR}/${EX} ${BINDIR}/ex
|
|
|
|
LINKS+= ${BINDIR}/${VI} ${BINDIR}/view
|
|
|
|
|
2001-03-27 10:52:19 +00:00
|
|
|
MAN= ${SRCDIR}/docs/USD.doc/vi.man/vi.1
|
1996-11-01 08:16:24 +00:00
|
|
|
MLINKS+=vi.1 ex.1 vi.1 view.1
|
|
|
|
MLINKS+=vi.1 nex.1 vi.1 nview.1 vi.1 nvi.1
|
|
|
|
|
2003-06-23 13:08:22 +00:00
|
|
|
CATALOGS= dutch english french german polish ru_RU.KOI8-R spanish swedish \
|
2000-08-22 22:00:57 +00:00
|
|
|
uk_UA.KOI8-U
|
1996-12-08 14:05:08 +00:00
|
|
|
NLLINKS= nl_NL
|
2001-06-10 17:26:35 +00:00
|
|
|
ENLINKS= en_AU en_CA en_GB en_NZ en_US
|
1996-11-04 02:52:33 +00:00
|
|
|
FRLINKS= fr_BE fr_CA fr_CH fr_FR
|
|
|
|
DELINKS= de_AT de_CH de_DE
|
|
|
|
ESLINKS= es_ES
|
|
|
|
SVLINKS= sv_SE
|
1997-09-22 23:14:37 +00:00
|
|
|
PLLINKS= pl_PL
|
1996-11-01 08:16:24 +00:00
|
|
|
|
|
|
|
.PATH: ${SRCDIR}/common
|
|
|
|
.PATH: ${SRCDIR}/ex
|
|
|
|
.PATH: ${SRCDIR}/cl
|
|
|
|
.PATH: ${SRCDIR}/vi
|
|
|
|
|
|
|
|
CFLAGS+=-I${.CURDIR} -I${SRCDIR} -I${SRCDIR}/include
|
|
|
|
|
2004-02-05 22:44:25 +00:00
|
|
|
DPADD= ${LIBNCURSES}
|
|
|
|
LDADD= -lncurses
|
1996-11-01 08:16:24 +00:00
|
|
|
|
|
|
|
CLEANFILES+=${EX}
|
|
|
|
|
|
|
|
# Vi curses sources
|
|
|
|
SRCS+= cl_bsd.c cl_funcs.c cl_main.c cl_read.c cl_screen.c cl_term.c
|
|
|
|
|
|
|
|
# General sources.
|
|
|
|
SRCS+= cut.c delete.c exf.c key.c line.c log.c main.c mark.c msg.c options.c \
|
|
|
|
options_f.c put.c screen.c search.c seq.c recover.c util.c
|
|
|
|
|
|
|
|
# Ex source.
|
|
|
|
SRCS+= ex.c ex_abbrev.c ex_append.c ex_args.c ex_argv.c ex_at.c ex_bang.c \
|
|
|
|
ex_cd.c ex_cmd.c ex_cscope.c ex_delete.c ex_display.c \
|
|
|
|
ex_edit.c ex_equal.c ex_file.c ex_filter.c ex_global.c \
|
|
|
|
ex_init.c ex_join.c ex_map.c ex_mark.c ex_mkexrc.c ex_move.c \
|
1996-11-09 16:54:33 +00:00
|
|
|
ex_open.c ex_preserve.c ex_print.c ex_put.c ex_quit.c \
|
1996-11-01 08:16:24 +00:00
|
|
|
ex_read.c ex_screen.c ex_script.c ex_set.c ex_shell.c \
|
1996-11-09 16:54:33 +00:00
|
|
|
ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c \
|
1996-11-01 08:16:24 +00:00
|
|
|
ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
|
2003-01-04 20:24:27 +00:00
|
|
|
ex_write.c ex_yank.c ex_z.c ex_tcl.c ex_perl.c
|
1996-11-01 08:16:24 +00:00
|
|
|
|
|
|
|
# Vi source.
|
|
|
|
SRCS+= getc.c v_at.c v_ch.c v_cmd.c v_delete.c v_ex.c v_increment.c v_init.c \
|
|
|
|
v_itxt.c v_left.c v_mark.c v_match.c v_paragraph.c v_put.c v_redraw.c \
|
|
|
|
v_replace.c v_right.c v_screen.c v_scroll.c v_search.c v_section.c \
|
|
|
|
v_sentence.c v_status.c v_txt.c v_ulcase.c v_undo.c \
|
|
|
|
v_util.c v_word.c v_xchar.c v_yank.c v_z.c v_zexit.c vi.c
|
|
|
|
|
|
|
|
# Vi screen source.
|
|
|
|
SRCS+= vs_line.c vs_msg.c vs_refresh.c vs_relative.c vs_smap.c vs_split.c
|
|
|
|
|
2004-10-18 17:16:01 +00:00
|
|
|
FILES= ${CATALOGS:S;^;${SRCDIR}/catalog/;}
|
|
|
|
FILESDIR= /usr/share/vi/catalog
|
|
|
|
SYMLINKS=
|
|
|
|
.for l in ${NLLINKS}
|
|
|
|
SYMLINKS+= dutch ${FILESDIR}/$l.ISO8859-1
|
|
|
|
SYMLINKS+= dutch ${FILESDIR}/$l.ISO8859-15
|
|
|
|
.endfor
|
|
|
|
.for l in ${ENLINKS}
|
|
|
|
SYMLINKS+= english ${FILESDIR}/$l.ISO8859-1
|
|
|
|
SYMLINKS+= english ${FILESDIR}/$l.ISO8859-15
|
|
|
|
SYMLINKS+= english ${FILESDIR}/$l.US-ASCII
|
|
|
|
.endfor
|
|
|
|
SYMLINKS+= english ${FILESDIR}/POSIX
|
|
|
|
SYMLINKS+= english ${FILESDIR}/C
|
|
|
|
.for l in ${FRLINKS}
|
|
|
|
SYMLINKS+= french ${FILESDIR}/$l.ISO8859-1
|
|
|
|
SYMLINKS+= french ${FILESDIR}/$l.ISO8859-15
|
|
|
|
.endfor
|
|
|
|
.for l in ${DELINKS}
|
|
|
|
SYMLINKS+= german ${FILESDIR}/$l.ISO8859-1
|
|
|
|
SYMLINKS+= german ${FILESDIR}/$l.ISO8859-15
|
|
|
|
.endfor
|
|
|
|
.for l in ${ESLINKS}
|
|
|
|
SYMLINKS+= spanish ${FILESDIR}/$l.ISO8859-1
|
|
|
|
SYMLINKS+= spanish ${FILESDIR}/$l.ISO8859-15
|
|
|
|
.endfor
|
|
|
|
.for l in ${SVLINKS}
|
|
|
|
SYMLINKS+= swedish ${FILESDIR}/$l.ISO8859-1
|
|
|
|
SYMLINKS+= swedish ${FILESDIR}/$l.ISO8859-15
|
|
|
|
.endfor
|
|
|
|
.for l in ${PLLINKS}
|
|
|
|
SYMLINKS+= polish ${FILESDIR}/$l.ISO8859-2
|
|
|
|
.endfor
|
1996-11-01 08:16:24 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|