1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Compression Build
11 url = http://www.bzip.org/
13 summary = Bzip2 is a data compressor.
16 bzip2 is a freely available, patent free (see below), high-quality data
17 compressor that is an alternative to the GNU zip compressor.
20 source_dl = http://www.bzip.org/%{version}/
22 CFLAGS += -fPIC -D_FILE_OFFSET_BITS=64
26 sed -i 's@\(ln -s -f \)\$(PREFIX)/bin/@\1@' Makefile
27 sed -e "s/\$(CC) -shared/& %{CFLAGS}/" -i Makefile-libbz2_so
32 make -f Makefile-libbz2_so %{PARALLELISMFLAGS}
35 make %{PARALLELISMFLAGS}
39 make PREFIX=%{BUILDROOT}/usr install
41 mkdir -pv %{BUILDROOT}/{bin,lib}
42 cp -v bzip2-shared %{BUILDROOT}/bin/bzip2
43 cp -av libbz2.so* %{BUILDROOT}/lib
44 ln -sfv ../../lib/libbz2.so.1.0 %{BUILDROOT}/usr/lib/libbz2.so
45 rm -fv %{BUILDROOT}/usr/bin/{bunzip2,bzcat,bzip2}
46 ln -sfv bzip2 %{BUILDROOT}/bin/bunzip2
47 ln -sfv bzip2 %{BUILDROOT}/bin/bzcat
48 rm -vf %{BUILDROOT}/usr/lib/libbz2.a
50 mkdir -pv %{BUIDLROOT}/usr/share
51 mv -vf %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/