2008-10-23 00:41:51 +00:00
|
|
|
# Template build file for 'bzip2'.
|
|
|
|
pkgname=bzip2
|
2010-10-21 21:56:33 +00:00
|
|
|
version=1.0.6
|
2011-11-12 01:54:14 +00:00
|
|
|
revision=2
|
2010-10-21 21:56:33 +00:00
|
|
|
distfiles="http://www.bzip.org/$version/$pkgname-$version.tar.gz"
|
2008-10-23 00:41:51 +00:00
|
|
|
short_desc="The bzip2 compression library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-10-21 21:56:33 +00:00
|
|
|
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
|
2008-12-16 23:30:19 +00:00
|
|
|
long_desc="
|
|
|
|
bzip2 is a freely available, patent free, high-quality data compressor.
|
2008-12-18 06:15:36 +00:00
|
|
|
It typically compresses files to within 10%% to 15%% of the best available
|
2008-12-16 23:30:19 +00:00
|
|
|
techniques, whilst being around twice as fast at compression and six times
|
|
|
|
faster at decompression.
|
|
|
|
|
|
|
|
bzip2 compresses files using the Burrows-Wheeler block-sorting text
|
|
|
|
compression algorithm, and Huffman coding. Compression is generally
|
|
|
|
considerably better than that achieved by more conventional LZ77/LZ78-based
|
|
|
|
compressors, and approaches the performance of the PPM family of statistical
|
|
|
|
compressors.
|
|
|
|
|
|
|
|
The archive file format of bzip2 (.bz2) is incompatible with that of its
|
|
|
|
predecessor, bzip (.bz)."
|
2008-10-27 06:42:40 +00:00
|
|
|
|
2011-07-06 06:16:56 +00:00
|
|
|
bootstrap=yes
|
2009-11-22 07:31:44 +00:00
|
|
|
subpackages="bzip2-devel"
|
2010-05-20 20:40:04 +00:00
|
|
|
|
2011-02-19 22:21:03 +00:00
|
|
|
do_build()
|
2010-05-20 20:40:04 +00:00
|
|
|
{
|
2011-02-19 22:21:03 +00:00
|
|
|
# Add large-file support
|
|
|
|
sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i Makefile-libbz2_so
|
|
|
|
|
|
|
|
# use our optimization
|
|
|
|
sed -i "s|-O2|${CFLAGS}|g" Makefile
|
|
|
|
sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so
|
|
|
|
|
|
|
|
make ${makejobs} -f Makefile-libbz2_so
|
|
|
|
make ${makejobs} bzip2recover libbz2.a
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
install -dm755 ${DESTDIR}/bin
|
|
|
|
install -m755 bzip2-shared ${DESTDIR}/bin/bzip2
|
|
|
|
install -m755 bzip2recover ${DESTDIR}/bin
|
|
|
|
ln -sf bzip2 ${DESTDIR}/bin/bunzip2
|
|
|
|
ln -sf bzip2 ${DESTDIR}/bin/bzcat
|
|
|
|
|
|
|
|
install -dm755 ${DESTDIR}/usr/bin
|
|
|
|
install -m755 bzdiff bzgrep bzmore ${DESTDIR}/usr/bin
|
|
|
|
|
|
|
|
install -Dm755 libbz2.so.${version} ${DESTDIR}/lib/libbz2.so.${version}
|
|
|
|
ln -s libbz2.so.${version} ${DESTDIR}/lib/libbz2.so
|
|
|
|
ln -s libbz2.so.${version} ${DESTDIR}/lib/libbz2.so.1
|
|
|
|
ln -s libbz2.so.${version} ${DESTDIR}/lib/libbz2.so.1.0
|
|
|
|
|
|
|
|
install -Dm644 libbz2.a ${DESTDIR}/usr/lib/libbz2.a
|
|
|
|
ln -sf ../../lib/libbz2.so ${DESTDIR}/usr/lib/libbz2.so
|
|
|
|
|
|
|
|
install -Dm644 bzlib.h ${DESTDIR}/usr/include/bzlib.h
|
|
|
|
|
|
|
|
install -Dm644 bzip2.1 ${DESTDIR}/usr/share/man/man1/bzip2.1
|
|
|
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bunzip2.1
|
|
|
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzcat.1
|
|
|
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzip2recover.1
|
2010-05-20 20:40:04 +00:00
|
|
|
}
|