]>
Commit | Line | Data |
---|---|---|
fd0763dc | 1 | ############################################################################### |
fd0763dc | 2 | # # |
70df8302 MT |
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 # | |
fd0763dc | 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 # |
fd0763dc MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
fd0763dc 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/>. # |
fd0763dc MT |
18 | # # |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
31c59de6 | 27 | PKG_NAME = lzma |
26542ce2 | 28 | VER = 457 |
fd0763dc | 29 | |
26542ce2 MT |
30 | THISAPP = $(PKG_NAME)$(VER) |
31 | DL_FILE = $(THISAPP).tar.bz2 | |
fd0763dc | 32 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
31c59de6 | 33 | |
6679675b | 34 | OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) |
fd0763dc MT |
35 | |
36 | ############################################################################### | |
37 | # Top-level Rules | |
38 | ############################################################################### | |
39 | ||
40 | objects = $(DL_FILE) | |
41 | ||
6679675b | 42 | install : $(OBJECT) |
fd0763dc | 43 | |
87703b91 | 44 | download : $(objects) |
fd0763dc | 45 | |
87703b91 | 46 | $(objects) : |
fd0763dc MT |
47 | @$(LOAD) |
48 | ||
fd0763dc MT |
49 | ############################################################################### |
50 | # Installation Details | |
51 | ############################################################################### | |
52 | ||
6679675b | 53 | $(OBJECT) : |
fd0763dc | 54 | @$(PREBUILD) |
26542ce2 MT |
55 | @rm -rf $(DIR_SRC)/$(THISAPP) && mkdir $(DIR_SRC)/$(THISAPP) |
56 | @cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) -C $(THISAPP) | |
fcfe88f5 | 57 | |
26542ce2 | 58 | cd $(DIR_APP) && make -C CPP/7zip/Compress/LZMA_Alone \ |
3d84c75d | 59 | -f makefile.gcc $(PARALLELISMFLAGS) CXX="g++ $(CXXFLAGS)" CXX_C="gcc $(CFLAGS)" |
fcfe88f5 MT |
60 | |
61 | install -m 755 \ | |
62 | $(DIR_APP)/CPP/7zip/Compress/LZMA_Alone/lzma \ | |
d1d6ced0 | 63 | /usr/bin/lzma_sdk |
31c59de6 | 64 | |
fd0763dc MT |
65 | @rm -rf $(DIR_APP) |
66 | @$(POSTBUILD) |