]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - lfs/vim
Changed name to IPFire-3.0-alpha1 (Lechery).
[people/arne_f/ipfire-3.x.git] / lfs / vim
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 PKG_NAME = vim
28 PKG_VER = 7.2
29
30 THISAPP = $(PKG_NAME)-$(PKG_VER)
31 DL_FILE = $(THISAPP).tar.bz2
32 DIR_APP = $(DIR_SRC)/$(PKG_NAME)72
33
34 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
35
36 ###############################################################################
37 # Top-level Rules
38 ###############################################################################
39
40 objects = $(DL_FILE) \
41 $(THISAPP)-fixes-4.patch \
42 $(THISAPP)-mandir-1.patch
43
44 install : $(OBJECT)
45
46 download : $(objects)
47
48 $(objects) :
49 @$(LOAD)
50
51 ###############################################################################
52 # Installation Details
53 ###############################################################################
54
55 $(OBJECT) :
56 @$(PREBUILD)
57 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
58 cd $(DIR_APP) && patch -Np1 < $(DIR_PATCHES)/$(THISAPP)-fixes-4.patch
59 cd $(DIR_APP) && patch -Np1 < $(DIR_PATCHES)/$(THISAPP)-mandir-1.patch
60 cd $(DIR_APP) && echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
61 cd $(DIR_APP) && \
62 ./configure \
63 $(CONFIGURE_ARCH) \
64 --prefix=/usr \
65 --enable-multibyte
66 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
67 cd $(DIR_APP) && make install
68 ln -sfv vim /usr/bin/vi
69 echo "set nocompatible" > /etc/vimrc
70 echo "set backspace=2" >> /etc/vimrc
71 echo "syntax on" >> /etc/vimrc
72 echo -e "if (&term == \"iterm\") || (&term == \"putty\")" >> /etc/vimrc
73 echo "set background=dark" >> /etc/vimrc
74 echo "endif" >> /etc/vimrc
75 @rm -rf $(DIR_APP)
76 @$(POSTBUILD)