2014-02-19 15:13:54 +00:00
|
|
|
SUMMARY = "Very high-quality data compression program"
|
2010-11-18 23:44:37 +00:00
|
|
|
DESCRIPTION = "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."
|
2010-06-09 09:11:38 +00:00
|
|
|
HOMEPAGE = "http://www.bzip.org/"
|
2008-06-26 19:34:56 +00:00
|
|
|
SECTION = "console/utils"
|
2012-10-02 23:01:42 +00:00
|
|
|
LICENSE = "bzip2"
|
2010-06-09 09:11:38 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;beginline=8;endline=37;md5=40d9d1eb05736d1bfc86cfdd9106e6b2"
|
2012-03-07 21:03:17 +00:00
|
|
|
PR = "r5"
|
2008-06-26 19:34:56 +00:00
|
|
|
|
2014-12-04 16:26:17 +00:00
|
|
|
SRC_URI = "http://www.bzip.org/${PV}/${BP}.tar.gz \
|
2015-10-14 02:55:17 +00:00
|
|
|
file://fix-bunzip2-qt-returns-0-for-corrupt-archives.patch \
|
2014-12-04 16:26:17 +00:00
|
|
|
file://configure.ac;subdir=${BP} \
|
|
|
|
file://Makefile.am;subdir=${BP} \
|
2016-07-16 23:04:13 +00:00
|
|
|
file://run-ptest \
|
|
|
|
file://CVE-2016-3189.patch \
|
|
|
|
"
|
2008-06-26 19:34:56 +00:00
|
|
|
|
2010-12-08 04:06:29 +00:00
|
|
|
SRC_URI[md5sum] = "00b516f4704d4a7cb50a1d97e6e8e15b"
|
|
|
|
SRC_URI[sha256sum] = "a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
|
|
|
|
|
2015-11-16 16:05:13 +00:00
|
|
|
UPSTREAM_CHECK_URI = "http://www.bzip.org/downloads.html"
|
|
|
|
|
2015-04-10 09:29:54 +00:00
|
|
|
PACKAGES =+ "libbz2"
|
2012-03-07 21:03:17 +00:00
|
|
|
|
2008-06-26 19:34:56 +00:00
|
|
|
CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
|
|
|
|
|
2017-02-08 16:10:50 +00:00
|
|
|
inherit autotools update-alternatives ptest relative_symlinks
|
2010-09-27 04:41:44 +00:00
|
|
|
|
|
|
|
ALTERNATIVE_PRIORITY = "100"
|
2012-05-30 11:54:55 +00:00
|
|
|
ALTERNATIVE_${PN} = "bunzip2 bzcat"
|
2008-06-26 19:34:56 +00:00
|
|
|
|
2012-07-26 20:34:19 +00:00
|
|
|
#install binaries to bzip2-native under sysroot for replacement-native
|
2013-10-20 10:48:30 +00:00
|
|
|
EXTRA_OECONF_append_class-native = " --bindir=${STAGING_BINDIR_NATIVE}/${PN}"
|
2014-03-03 15:50:45 +00:00
|
|
|
|
2013-06-26 09:43:59 +00:00
|
|
|
do_install_ptest () {
|
2014-05-05 20:42:22 +00:00
|
|
|
cp -f ${B}/Makefile ${D}${PTEST_PATH}/Makefile
|
2013-06-26 09:43:59 +00:00
|
|
|
sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile
|
|
|
|
}
|
|
|
|
|
2012-03-07 21:03:17 +00:00
|
|
|
FILES_libbz2 = "${libdir}/lib*${SOLIBS}"
|
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
PROVIDES_append_class-native = " bzip2-replacement-native"
|
2011-12-22 17:43:33 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
|