]>
Commit | Line | Data |
---|---|---|
3799d284 AF |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
eee037b8 | 4 | # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> # |
3799d284 AF |
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 | ||
f15707c7 RR |
27 | SUMMARY = 7-zip file compression program |
28 | ||
4bd07ee4 | 29 | VER = 17.04 |
3799d284 | 30 | |
8ace58e8 AB |
31 | THISAPP = p7zip-$(VER) |
32 | DL_FILE = $(THISAPP).tar.gz | |
4bd07ee4 | 33 | DL_FROM = $(URL_IPFIRE) |
3799d284 AF |
34 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
35 | TARGET = $(DIR_INFO)/$(THISAPP) | |
36 | PROG = 7zip | |
4bd07ee4 | 37 | PAK_VER = 9 |
3799d284 | 38 | |
2dc2a278 | 39 | DEPS = |
3799d284 | 40 | |
f15707c7 RR |
41 | SERVICES = |
42 | ||
fed525f2 MT |
43 | CFLAGS += -fcommon |
44 | ||
3799d284 AF |
45 | ############################################################################### |
46 | # Top-level Rules | |
47 | ############################################################################### | |
48 | ||
49 | objects = $(DL_FILE) | |
50 | ||
51 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
52 | ||
9a7e4d85 | 53 | $(DL_FILE)_BLAKE2 = c3a0438d9db66f8199eaf15d4cff613bdbd06ceb1c5461b2041e84f1cbc388c2e943197a38ddd97a92a3f1f7ea22951e4972aeb5ce82534899a846430d1ee49d |
3799d284 AF |
54 | |
55 | install : $(TARGET) | |
56 | ||
57 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
58 | ||
59 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
60 | ||
9a7e4d85 | 61 | b2 : $(subst %,%_BLAKE2,$(objects)) |
3799d284 AF |
62 | |
63 | ############################################################################### | |
9a7e4d85 | 64 | # Downloading, checking, b2sum |
3799d284 AF |
65 | ############################################################################### |
66 | ||
67 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
68 | @$(CHECK) | |
69 | ||
70 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
71 | @$(LOAD) | |
72 | ||
9a7e4d85 PM |
73 | $(subst %,%_BLAKE2,$(objects)) : |
74 | @$(B2SUM) | |
3799d284 | 75 | |
66c36198 | 76 | dist: |
3799d284 AF |
77 | @$(PAK) |
78 | ||
79 | ############################################################################### | |
80 | # Installation Details | |
81 | ############################################################################### | |
82 | ||
83 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
84 | @$(PREBUILD) | |
8ace58e8 | 85 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) |
c2607bc4 MT |
86 | cd $(DIR_APP) && make all3 $(MAKETUNING) |
87 | cd $(DIR_APP) && make DEST_HOME=/usr DEST_MAN=/usr/share/man \ | |
88 | DEST_SHARE_DOC=/usr/share/doc/p7zip-$(VER) install | |
3799d284 AF |
89 | @rm -rf $(DIR_APP) |
90 | @$(POSTBUILD) |