kumquat-buildroot/package/lzma-alone/lzma-alone.mk
Rafał Miłecki 4accbb4655 package/lzma-alone: new package
This new package provides "lzma_alone" host binary based on the original
LZMA SDK. It provides few extra options when compared to the LZMA Utils
/ XZ Utils project "lzma" binary (already packaged as the "lzma").

This packaging schema (LZMA SDK with lzma -> lzma_alone rename) follows
Debian's solution. Please note that Debian also uses LZMA SDK for the
base "lzma" tool which may be considered for Buildroot too - as an
independent change. Similar packaging is also used by Ubuntu & Arch.

lzma_alone is a requirement for preparing firmware images for some
Broadcom based home routers with a picky CFE bootloader. It has limited
LZMA support and building compatible images requires specifying
dictionary size and lc/lp/pb LZMA values manually.

Version 9.22 is used as it's the last release using .tar.bz2 format. The
same version is used by Debian.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
[yann.morin.1998@free.fr:
  - add the upstream sha1, add comments
  - fix license
  - add license file and its sha256
  - fix coding styles
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-03-09 23:06:08 +01:00

28 lines
826 B
Makefile

################################################################################
#
# lzma-alone
#
################################################################################
LZMA_ALONE_VERSION = 9.22
LZMA_ALONE_SITE = https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK
LZMA_ALONE_SOURCE = lzma922.tar.bz2
LZMA_ALONE_STRIP_COMPONENTS = 0
LZMA_ALONE_LICENSE = Public Domain
LZMA_ALONE_LICENSE_FILES = lzma.txt
define HOST_LZMA_ALONE_BUILD_CMDS
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
-C $(@D)/C/Util/Lzma -f makefile.gcc
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
-C $(@D)/CPP/7zip/Bundles/LzmaCon -f makefile.gcc
endef
define HOST_LZMA_ALONE_INSTALL_CMDS
$(INSTALL) -D -m 0755 \
$(@D)/CPP/7zip/Bundles/LzmaCon/lzma \
$(HOST_DIR)/bin/lzma_alone
endef
$(eval $(host-generic-package))