]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | ############################################################################### |
cd1a2927 | 2 | # # |
70df8302 | 3 | # IPFire.org - A linux based firewall # |
232b3297 | 4 | # Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> # |
70df8302 MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
cd1a2927 | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
cd1a2927 MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
cd1a2927 MT |
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 # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
cd1a2927 | 18 | # # |
cd1a2927 MT |
19 | ############################################################################### |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
232b3297 | 27 | VER = 9.1 |
cd1a2927 MT |
28 | |
29 | THISAPP = vim-$(VER) | |
30 | DL_FILE = $(THISAPP).tar.bz2 | |
7a98bae5 | 31 | DL_FROM = $(URL_IPFIRE) |
232b3297 | 32 | DIR_APP = $(DIR_SRC)/vim91 |
cd1a2927 MT |
33 | TARGET = $(DIR_INFO)/$(THISAPP) |
34 | ||
900e1c57 MT |
35 | # vim tries to build itself with FORTIFY_SOURCE=1 and is not very good at |
36 | # filtering out any CFLAGS that might change that. So we do this ourselves. | |
37 | CFLAGS := $(filter-out -Wp$(COMMA)-U_FORTIFY_SOURCE,$(CFLAGS)) | |
38 | ||
cd1a2927 MT |
39 | ############################################################################### |
40 | # Top-level Rules | |
41 | ############################################################################### | |
42 | ||
90d372c4 | 43 | objects = $(DL_FILE) |
cd1a2927 MT |
44 | |
45 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
cd1a2927 | 46 | |
232b3297 | 47 | $(DL_FILE)_BLAKE2 = 6145f1861be848c6a4d51c16a256a080cc6e71f66d45ac7c66b1462e7542c1a57ad2918406211604d8c5b5dfc54af80a543499b68de7a402105ee811c8681bbc |
cd1a2927 MT |
48 | |
49 | install : $(TARGET) | |
50 | ||
51 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
52 | ||
53 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
54 | ||
9a7e4d85 | 55 | b2 : $(subst %,%_BLAKE2,$(objects)) |
cd1a2927 MT |
56 | |
57 | ############################################################################### | |
9a7e4d85 | 58 | # Downloading, checking, b2sum |
cd1a2927 MT |
59 | ############################################################################### |
60 | ||
61 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
62 | @$(CHECK) | |
63 | ||
64 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
65 | @$(LOAD) | |
66 | ||
9a7e4d85 PM |
67 | $(subst %,%_BLAKE2,$(objects)) : |
68 | @$(B2SUM) | |
cd1a2927 MT |
69 | |
70 | ############################################################################### | |
71 | # Installation Details | |
72 | ############################################################################### | |
73 | ||
74 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
75 | @$(PREBUILD) | |
76 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) | |
232b3297 | 77 | cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/vim/vim-9.1_fix_hardening_crash.patch |
cd1a2927 | 78 | cd $(DIR_APP) && echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h |
08facb3b MT |
79 | cd $(DIR_APP) && ./configure \ |
80 | --prefix=/usr \ | |
81 | --with-features=huge \ | |
82 | --enable-multibyte \ | |
83 | --enable-gui=no \ | |
84 | --disable-nls | |
90d372c4 | 85 | cd $(DIR_APP) && make $(MAKETUNING) |
cd1a2927 | 86 | cd $(DIR_APP) && make install |
08facb3b MT |
87 | |
88 | ln -svf vim /usr/bin/vi | |
89 | install -m 644 $(DIR_SRC)/config/vim/vimrc /etc/vimrc | |
90 | ||
cd1a2927 MT |
91 | @rm -rf $(DIR_APP) |
92 | @$(POSTBUILD) |