1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/vim/vim.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
17 if [ "$SDECFG_PKG_VIM_TWO_BINARIES" = 1 ]; then
18 rm -fv $root$bindir/{gvim,gvimdiff,evim,rgvim}
19 mv -fv $root$bindir/vim $root$bindir/gvim
20 ln -svf gvim $root$bindir/gvimdiff
21 ln -svf gvim $root$bindir/evim
22 ln -svf gvim $root$bindir/rgvim
24 var_append confopt ' ' "--enable-gui=no --without-x"
26 echo "Running configure $confopt ..."
28 eval_config_command $(echo $confopt)
30 echo "Running $MAKE $makeopt ..."
32 cp -vf src/vim $root$bindir/vim
35 if [ "$SDECFG_PKG_VIM_IS_VI_REPLACEMENT" = 1 ]; then
37 ln -sf vim $root$bindir/vi
40 # now hopefully all are happy;-)
41 cp -fv $confdir/vimrc* $root/$prefix/share/vim/
42 mkdir -pv $root/$prefix/share/vim/vimfiles/plugin
44 hook_add postmake 5 "vim_postmake"
47 cat >> config.cache <<-EOT
48 ac_cv_small_wchar_t=no
49 vim_cv_getcwd_broken=no
50 vim_cv_memmove_handles_overlap=yes
51 vim_cv_stat_ignores_slash=no
54 vim_cv_toupper_broken=no
57 ac_cv_small_wchar_t=yes
60 atstage cross && hook_add preconf 5 "vim_cache"
62 hook_add preconf 2 "cd src"
63 configscript="auto/configure"
64 hook_add premake 5 "cd .."
66 var_append confopt ' ' "--with-tlib=ncurses --srcdir ."
67 var_append confopt ' ' "--with-features=$SDECFG_PKG_VIM_FEATURES"
69 [ "$SDECFG_PKG_VIM_PERLINTERP" = 1 ] &&
70 var_append confopt ' ' "--enable-perlinterp"
71 [ "$SDECFG_PKG_VIM_PYTHONINTERP" = 1 ] &&
72 var_append confopt ' ' "--enable-pythoninterp"
73 [ "$SDECFG_PKG_VIM_RUBYINTERP" = 1 ] &&
74 var_append confopt ' ' "--enable-rubyinterp"
75 [ "$SDECFG_PKG_VIM_TCLINTERP" = 1 ] &&
76 var_append confopt ' ' "--enable-tclinterp --with-tclsh=tclsh"
78 [ "$SDECFG_PKG_VIM_GUI" = "auto" ] && pkginstalled gtk+ && SDECFG_PKG_VIM_GUI=gtk3
79 var_append extraconfopt ' ' "--enable-gui=$SDECFG_PKG_VIM_GUI"