]>
Commit | Line | Data |
---|---|---|
9594506f | 1 | ############################################################################### |
9594506f | 2 | # # |
70df8302 | 3 | # IPFire.org - A linux based firewall # |
fa4e17db | 4 | # Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> # |
70df8302 MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
9594506f | 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 # |
9594506f MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
9594506f 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/>. # |
9594506f MT |
18 | # # |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
df4996c9 | 27 | VER = 2.13.2 |
9594506f MT |
28 | |
29 | THISAPP = freetype-$(VER) | |
babd7f0a | 30 | DL_FILE = $(THISAPP).tar.xz |
9594506f MT |
31 | DL_FROM = $(URL_IPFIRE) |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
33 | TARGET = $(DIR_INFO)/$(THISAPP) | |
34 | ||
35 | ############################################################################### | |
36 | # Top-level Rules | |
37 | ############################################################################### | |
38 | ||
39 | objects = $(DL_FILE) | |
40 | ||
41 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
42 | ||
df4996c9 | 43 | $(DL_FILE)_BLAKE2 = cebc82180d9afaeb112a65ba78903d7bf7a9295a803166a033585ad2325add6023f05066852240c4665e56285345ba503b01ecd461d48f0478a8f3f56136988e |
9594506f MT |
44 | |
45 | install : $(TARGET) | |
46 | ||
47 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
48 | ||
49 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
50 | ||
9a7e4d85 | 51 | b2 : $(subst %,%_BLAKE2,$(objects)) |
9594506f MT |
52 | |
53 | ############################################################################### | |
9a7e4d85 | 54 | # Downloading, checking, b2sum |
9594506f MT |
55 | ############################################################################### |
56 | ||
57 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
58 | @$(CHECK) | |
59 | ||
60 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
61 | @$(LOAD) | |
62 | ||
9a7e4d85 PM |
63 | $(subst %,%_BLAKE2,$(objects)) : |
64 | @$(B2SUM) | |
9594506f MT |
65 | |
66 | ############################################################################### | |
67 | # Installation Details | |
68 | ############################################################################### | |
69 | ||
70 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
71 | @$(PREBUILD) | |
b1a2ddc8 | 72 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) |
babd7f0a MT |
73 | cd $(DIR_APP) && sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg |
74 | cd $(DIR_APP) && sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \ | |
75 | -i include/freetype/config/ftoption.h | |
76 | cd $(DIR_APP) && ./configure \ | |
77 | --prefix=/usr \ | |
78 | --enable-freetype-config \ | |
79 | --disable-static | |
9594506f MT |
80 | cd $(DIR_APP) && make $(MAKETUNING) |
81 | cd $(DIR_APP) && make install | |
82 | @rm -rf $(DIR_APP) | |
83 | @$(POSTBUILD) |