]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/bzip2
s/TARGET/OBJECT/g
[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
0b1e046d 28VER = 1.0.5
52baac66 29PKG_VER = 0
cd1a2927 30
be472d5a 31THISAPP = $(PKG_NAME)-$(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
6679675b 61install: $(OBJECT)
cd1a2927 62
52baac66
MT
63package:
64 @$(DO_PACKAGE)
65
66$(objects):
cd1a2927
MT
67 @$(LOAD)
68
cd1a2927
MT
69###############################################################################
70# Installation Details
71###############################################################################
72
6679675b 73$(OBJECT): $(objects)
cd1a2927 74 @$(PREBUILD)
52baac66
MT
75 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
76
0e61af85 77ifeq "$(STAGE)" "toolchain"
3d84c75d 78 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
be472d5a 79 cd $(DIR_APP) && make PREFIX=$(TOOLS_DIR) install
0e61af85
MT
80endif
81
82ifeq "$(STAGE)" "base"
83 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-install_docs-1.patch
84 cd $(DIR_APP) && make -f Makefile-libbz2_so
85 cd $(DIR_APP) && make clean
3d84c75d 86 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
0e61af85 87 cd $(DIR_APP) && make PREFIX=/usr install
52baac66 88
0e61af85
MT
89 cd $(DIR_APP) && cp -v bzip2-shared /bin/bzip2
90 cd $(DIR_APP) && cp -av libbz2.so* /lib
19ad6820
MT
91 ln -sfv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
92 rm -fv /usr/bin/{bunzip2,bzcat,bzip2}
93 ln -sfv bzip2 /bin/bunzip2
94 ln -sfv bzip2 /bin/bzcat
0e61af85
MT
95endif
96
cd1a2927
MT
97 @rm -rf $(DIR_APP)
98 @$(POSTBUILD)