]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/bzip2
Renamed some fields...
[ipfire-3.x.git] / lfs / bzip2
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 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 #
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
25include Config
26
be472d5a 27PKG_NAME = bzip2
8985a698
MT
28PKG_VER = 1.0.5
29PKG_REL = 0
cd1a2927 30
8985a698 31THISAPP = $(PKG_NAME)-$(PKG_VER)
cd1a2927 32DL_FILE = $(THISAPP).tar.gz
cd1a2927
MT
33DIR_APP = $(DIR_SRC)/$(THISAPP)
34
6679675b 35OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
cd1a2927 36
52baac66
MT
37MAINTAINER =
38GROUP = System/Compression
39EXTRA = no
40DEBUG = no
41DEPS =
42
43URL = http://www.bzip.org/
44LICENSE = GPLv2+
45SHORT_DESC = Bzip2 is a data compressor.
46
47define LONG_DESC
48 bzip2 is a freely available, patent free (see below), high-quality data \
49 compressor that is an alternative to the GNU zip compressor.
50endef
51
cd1a2927
MT
52###############################################################################
53# Top-level Rules
54###############################################################################
9b0ff0a0 55
52baac66
MT
56objects = $(DL_FILE) \
57 $(THISAPP)-install_docs-1.patch
cd1a2927 58
52baac66 59download: $(objects)
cd1a2927 60
a5a966c7
MT
61info:
62 $(DO_PKG_INFO)
63
6679675b 64install: $(OBJECT)
cd1a2927 65
52baac66
MT
66package:
67 @$(DO_PACKAGE)
68
69$(objects):
cd1a2927
MT
70 @$(LOAD)
71
cd1a2927
MT
72###############################################################################
73# Installation Details
74###############################################################################
75
6679675b 76$(OBJECT): $(objects)
cd1a2927 77 @$(PREBUILD)
52baac66
MT
78 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
79
0e61af85 80ifeq "$(STAGE)" "toolchain"
3d84c75d 81 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
be472d5a 82 cd $(DIR_APP) && make PREFIX=$(TOOLS_DIR) install
0e61af85
MT
83endif
84
85ifeq "$(STAGE)" "base"
86 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-install_docs-1.patch
87 cd $(DIR_APP) && make -f Makefile-libbz2_so
88 cd $(DIR_APP) && make clean
3d84c75d 89 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
0e61af85 90 cd $(DIR_APP) && make PREFIX=/usr install
52baac66 91
0e61af85
MT
92 cd $(DIR_APP) && cp -v bzip2-shared /bin/bzip2
93 cd $(DIR_APP) && cp -av libbz2.so* /lib
19ad6820
MT
94 ln -sfv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
95 rm -fv /usr/bin/{bunzip2,bzcat,bzip2}
96 ln -sfv bzip2 /bin/bunzip2
97 ln -sfv bzip2 /bin/bzcat
0e61af85
MT
98endif
99
cd1a2927
MT
100 @rm -rf $(DIR_APP)
101 @$(POSTBUILD)