bzip2_1.0.8.bb 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. SUMMARY = "Very high-quality data compression program"
  2. DESCRIPTION = "bzip2 compresses files using the Burrows-Wheeler block-sorting text compression algorithm, and \
  3. Huffman coding. Compression is generally considerably better than that achieved by more conventional \
  4. LZ77/LZ78-based compressors, and approaches the performance of the PPM family of statistical compressors."
  5. HOMEPAGE = "https://sourceware.org/bzip2/"
  6. SECTION = "console/utils"
  7. LICENSE = "bzip2-1.0.6 & GPL-3.0-or-later & Apache-2.0 & MS-PL & BSD-3-Clause & Zlib"
  8. LICENSE:${PN} = "bzip2-1.0.6"
  9. LICENSE:${PN}-dev = "bzip2-1.0.6"
  10. LICENSE:${PN}-dbg = "bzip2-1.0.6"
  11. LICENSE:${PN}-doc = "bzip2-1.0.6"
  12. LICENSE:${PN}-src = "bzip2-1.0.6"
  13. LICENSE:libbz2 = "bzip2-1.0.6"
  14. LICENSE:${PN}-ptest = "bzip2-1.0.6 & GPL-3.0-or-later & Apache-2.0 & MS-PL & BSD-3-Clause & Zlib"
  15. LIC_FILES_CHKSUM = "file://LICENSE;beginline=4;endline=37;md5=600af43c50f1fcb82e32f19b32df4664 \
  16. file://${UNPACKDIR}/git/commons-compress/LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327 \
  17. file://${UNPACKDIR}/git/dotnetzip/License.txt;md5=9cb56871eed4e748c3bc7e8ff352a54f \
  18. file://${UNPACKDIR}/git/dotnetzip/License.zlib.txt;md5=cc421ccd22eeb2e5db6b79e6de0a029f \
  19. file://${UNPACKDIR}/git/go/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
  20. file://${UNPACKDIR}/git/lbzip2/COPYING;md5=d32239bcb673463ab874e80d47fae504 \
  21. "
  22. SRC_URI = "https://sourceware.org/pub/${BPN}/${BPN}-${PV}.tar.gz \
  23. git://sourceware.org/git/bzip2-tests.git;name=bzip2-tests;branch=master;protocol=https \
  24. file://configure.ac;subdir=${BP} \
  25. file://Makefile.am;subdir=${BP} \
  26. file://run-ptest \
  27. file://0001-fix-bzip2-version-tmp-aaa-will-hang.patch;subdir=${BP} \
  28. "
  29. SRC_URI[sha256sum] = "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269"
  30. SRCREV_bzip2-tests = "f9061c030a25de5b6829e1abf373057309c734c0"
  31. UPSTREAM_CHECK_URI = "https://www.sourceware.org/pub/bzip2/"
  32. PACKAGES =+ "libbz2"
  33. CFLAGS += "-fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
  34. inherit autotools update-alternatives ptest relative_symlinks
  35. ALTERNATIVE_PRIORITY = "100"
  36. ALTERNATIVE:${PN} = "bunzip2 bzcat bzip2"
  37. #install binaries to bzip2-native under sysroot for replacement-native
  38. EXTRA_OECONF:append:class-native = " --bindir=${STAGING_BINDIR_NATIVE}/${PN}"
  39. do_configure:prepend () {
  40. sed -i -e "s|%BZIP2_VERSION%|${PV}|" ${S}/configure.ac
  41. }
  42. do_install_ptest () {
  43. install -d ${D}${PTEST_PATH}/bzip2-tests
  44. cp -r ${UNPACKDIR}/git/commons-compress ${D}${PTEST_PATH}/bzip2-tests/commons-compress
  45. cp -r ${UNPACKDIR}/git/dotnetzip ${D}${PTEST_PATH}/bzip2-tests/dotnetzip
  46. cp -r ${UNPACKDIR}/git/go ${D}${PTEST_PATH}/bzip2-tests/go
  47. cp -r ${UNPACKDIR}/git/lbzip2 ${D}${PTEST_PATH}/bzip2-tests/lbzip2
  48. cp -r ${UNPACKDIR}/git/pyflate ${D}${PTEST_PATH}/bzip2-tests/pyflate
  49. cp ${UNPACKDIR}/git/README ${D}${PTEST_PATH}/bzip2-tests/
  50. cp ${UNPACKDIR}/git/run-tests.sh ${D}${PTEST_PATH}/bzip2-tests/
  51. sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile
  52. }
  53. FILES:libbz2 = "${libdir}/lib*${SOLIBS}"
  54. RDEPENDS:${PN}-ptest += "make bash"
  55. CVE_PRODUCT = "bzip:bzip2"
  56. PROVIDES:append:class-native = " bzip2-replacement-native"
  57. BBCLASSEXTEND = "native nativesdk"