]>
Commit | Line | Data |
---|---|---|
cf6c8e67 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> # | |
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 | ||
c81385f7 | 27 | VER = 4.4.33 |
cf6c8e67 MT |
28 | |
29 | THISAPP = libxcrypt-$(VER) | |
692c2251 | 30 | DL_FILE = $(THISAPP).tar.xz |
cf6c8e67 MT |
31 | DL_FROM = $(URL_IPFIRE) |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
33 | ||
34 | ifeq "$(TOOLCHAIN)" "1" | |
35 | TARGET = $(DIR_INFO)/$(THISAPP)-tools | |
5063f52d AF |
36 | EXTRACONFIG = --host=$(CROSSTARGET) \ |
37 | --target=$(CROSSTARGET) | |
cf6c8e67 MT |
38 | else |
39 | TARGET = $(DIR_INFO)/$(THISAPP) | |
40 | endif | |
41 | ||
42 | ############################################################################### | |
43 | # Top-level Rules | |
44 | ############################################################################### | |
45 | ||
46 | objects = $(DL_FILE) | |
47 | ||
48 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
49 | ||
c81385f7 | 50 | $(DL_FILE)_BLAKE2 = 9cd2a2df4e2399d9084a5e03cb9be45e70c0213e1f143d423b5043f8f331320c79e6b8efa7ff33d401bce41a32574c6d6866096b70bf14ed715416c638f43a21 |
cf6c8e67 MT |
51 | |
52 | install : $(TARGET) | |
53 | ||
54 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
55 | ||
56 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
57 | ||
9a7e4d85 | 58 | b2 : $(subst %,%_BLAKE2,$(objects)) |
cf6c8e67 MT |
59 | |
60 | ############################################################################### | |
9a7e4d85 | 61 | # Downloading, checking, b2sum |
cf6c8e67 MT |
62 | ############################################################################### |
63 | ||
64 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
65 | @$(CHECK) | |
66 | ||
67 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
68 | @$(LOAD) | |
69 | ||
9a7e4d85 PM |
70 | $(subst %,%_BLAKE2,$(objects)) : |
71 | @$(B2SUM) | |
cf6c8e67 MT |
72 | |
73 | ############################################################################### | |
74 | # Installation Details | |
75 | ############################################################################### | |
76 | ||
77 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
78 | @$(PREBUILD) | |
79 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) | |
80 | cd $(DIR_APP) && autoreconf -vfi | |
81 | cd $(DIR_APP) && \ | |
82 | ./configure \ | |
5063f52d | 83 | $(EXTRACONFIG) \ |
cf6c8e67 MT |
84 | --prefix=$(PREFIX) \ |
85 | --disable-static \ | |
86 | --enable-hashes=strong,glibc \ | |
87 | --enable-obsolete-api \ | |
88 | --disable-failure-tokens | |
89 | cd $(DIR_APP) && make $(MAKETUNING) | |
90 | cd $(DIR_APP) && make install | |
91 | @rm -rf $(DIR_APP) | |
92 | @$(POSTBUILD) |