diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2013-06-29 00:43:13 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2013-06-29 00:43:13 +0000 |
commit | 42727cdf023aff41f6598185d60bbf18b1ce8a52 (patch) | |
tree | fb53604c33fe1a00444e9e9303fc36d3ce603133 /editors/vim | |
parent | 26028de7b9a4d6f84a5caf30e13147a1aa80430a (diff) | |
download | ports-42727cdf023aff41f6598185d60bbf18b1ce8a52.tar.gz ports-42727cdf023aff41f6598185d60bbf18b1ce8a52.zip |
Notes
Diffstat (limited to 'editors/vim')
-rw-r--r-- | editors/vim/Makefile | 32 | ||||
-rw-r--r-- | editors/vim/options | 24 |
2 files changed, 40 insertions, 16 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile index fa00139910f8..cd3a6ca30a8e 100644 --- a/editors/vim/Makefile +++ b/editors/vim/Makefile @@ -1,4 +1,6 @@ -# Created by: David O'Brien <obrien@cs.ucdavis.edu> +# ex:ts=8 +# Created by: David O'Brien <obrien@cs.ucdavis.edu> +# Created: Sat June 29, 1996 # $FreeBSD$ PORTNAME?= vim @@ -36,23 +38,19 @@ COMMENT?= Vi "workalike", with many additional features SLAVEDIRS= editors/vim-lite -.if !defined(LITE) -OPTIONS_DEFINE= PERL PYTHON TCL LUA CSCOPE EXUBERANT_CTAGS \ - XTERM_SAVE RUBY NLS X11 -OPTIONS_RADIO= UI -OPTIONS_RADIO_UI= ATHENA GTK2 GNOME MOTIF - -UI_DESC= Graphical toolkit to use -ATHENA_DESC= Athena GUI toolkit -XTERM_SAVE_DESC= Restore xterm screen after exit -CSCOPE_DESC= cscope support -EXUBERANT_CTAGS_DESC= Use exctags instead of ctags -.if defined(PACKAGE_BUILDING) +.if defined(WITH_OPTIONS) || defined(WITH_VIM_OPTIONS) || !defined(LITE) && defined(PACKAGE_BUILDING) +.include "${.CURDIR}/../vim/options" +. if !defined(LITE) && defined(PACKAGE_BUILDING) OPTIONS_DEFAULT+= CSCOPE EXUBERANT_CTAGS PERL PYTHON RUBY \ TCL LUA X11 GTK2 -.endif -.endif +. endif .include <bsd.port.options.mk> +.else +VIM_PORT_SCRIPT_LANGS?= LUA PERL PYTHON RUBY TCL +VIM_PORT_OPTIONS= CSCOPE DOCS EXAMPLES EXUBERANT_CTAGS \ + ${VIM_PORT_SCRIPT_LANGS} +PORT_OPTIONS?= ${VIM_PORT_OPTIONS} +.endif CONFLICTS= vim6* vim*-gnome libsysinfo .if defined(LITE) @@ -140,7 +138,6 @@ CTAGS_CMD= exctags -R . CTAGS_CMD= ${FIND} . -type f \\|${XARGS} ctags .endif - .if ${PORT_OPTIONS:MX11} CONF_OPT_GUI="--enable-gui=no --with-x" @@ -236,6 +233,9 @@ post-install: ${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share-vim cd ${WRKDIR} ; ex < ex.script +show-options: + @${MAKE} -DWITH_OPTIONS showconfig + .if defined(ONT_CHECKSUM) checksum: .endif diff --git a/editors/vim/options b/editors/vim/options new file mode 100644 index 000000000000..f4797f234385 --- /dev/null +++ b/editors/vim/options @@ -0,0 +1,24 @@ +OPTIONS_DEFINE= \ + PERL \ + PYTHON \ + RUBY \ + TCL \ + LUA \ + CSCOPE \ + EXUBERANT_CTAGS \ + XTERM_SAVE \ + NLS \ + X11 +OPTIONS_RADIO= \ + UI +OPTIONS_RADIO_UI=\ + ATHENA \ + GTK2 \ + GNOME \ + MOTIF + +CSCOPE_DESC= cscope support +EXUBERANT_CTAGS_DESC= Use exctags instead of ctags +ATHENA_DESC= Athena GUI toolkit +XTERM_SAVE_DESC= Restore xterm screen after exit +UI_DESC= Graphical toolkit to use |