libarchive_3.2.2.bb 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. SUMMARY = "Support for reading various archive formats"
  2. DESCRIPTION = "C library and command-line tools for reading and writing tar, cpio, zip, ISO, and other archive formats"
  3. HOMEPAGE = "http://www.libarchive.org/"
  4. SECTION = "devel"
  5. LICENSE = "BSD"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=ed99aca006bc346974bb745a35336425"
  7. DEPENDS = "e2fsprogs-native"
  8. PACKAGECONFIG ?= "zlib bz2"
  9. PACKAGECONFIG_append_class-target = "\
  10. libxml2 \
  11. ${@bb.utils.filter('DISTRO_FEATURES', 'acl largefile xattr', d)} \
  12. "
  13. PACKAGECONFIG_append_class-nativesdk = " largefile"
  14. DEPENDS_BZIP2 = "bzip2-replacement-native"
  15. DEPENDS_BZIP2_class-target = "bzip2"
  16. PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
  17. PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
  18. PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,,"
  19. PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib,"
  20. PACKAGECONFIG[bz2] = "--with-bz2lib,--without-bz2lib,${DEPENDS_BZIP2},"
  21. PACKAGECONFIG[xz] = "--with-lzmadec --with-lzma,--without-lzmadec --without-lzma,xz,"
  22. PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,"
  23. PACKAGECONFIG[libxml2] = "--with-xml2,--without-xml2,libxml2,"
  24. PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat,"
  25. PACKAGECONFIG[lzo] = "--with-lzo2,--without-lzo2,lzo,"
  26. PACKAGECONFIG[nettle] = "--with-nettle,--without-nettle,nettle,"
  27. PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
  28. SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \
  29. file://non-recursive-extract-and-list.patch \
  30. file://0001-archive_write_disk_posix.c-make-_fsobj-functions-mor.patch \
  31. file://0002-Fix-extracting-hardlinks-over-symlinks.patch \
  32. "
  33. SRC_URI[md5sum] = "1ec00b7dcaf969dd2a5712f85f23c764"
  34. SRC_URI[sha256sum] = "691c194ee132d1f0f7a42541f091db811bc2e56f7107e9121be2bc8c04f1060f"
  35. inherit autotools update-alternatives pkgconfig
  36. CPPFLAGS += "-I${WORKDIR}/extra-includes"
  37. do_configure[cleandirs] += "${WORKDIR}/extra-includes"
  38. do_configure_prepend() {
  39. # We just need the headers for some type constants, so no need to
  40. # build all of e2fsprogs for the target
  41. cp -R ${STAGING_INCDIR_NATIVE}/ext2fs ${WORKDIR}/extra-includes/
  42. }
  43. ALTERNATIVE_PRIORITY = "80"
  44. PACKAGES =+ "bsdtar"
  45. FILES_bsdtar = "${bindir}/bsdtar"
  46. ALTERNATIVE_bsdtar = "tar"
  47. ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar"
  48. ALTERNATIVE_TARGET[tar] = "${bindir}/bsdtar"
  49. PACKAGES =+ "bsdcpio"
  50. FILES_bsdcpio = "${bindir}/bsdcpio"
  51. ALTERNATIVE_bsdcpio = "cpio"
  52. ALTERNATIVE_LINK_NAME[cpio] = "${base_bindir}/cpio"
  53. ALTERNATIVE_TARGET[cpio] = "${bindir}/bsdcpio"
  54. BBCLASSEXTEND = "native nativesdk"