ce952170e1
lzop 1.04 uses libtool 2.4.2.418, which is right between 2.4.2 and 2.4.4. While our patch for 2.4 is also supposed to work up to and including 2.4.2.x, it does not work for libtool 2.4.2.418, which requires the patch for 2.4.4. We could change our infra to better pick the appropriate patch, but we do not know exactly which 2.4.2.x version is actually the cutting point that requires the 2.4.4 patch. Until we have more data point, let's handle the case in an ad-hoc manner for lzop. Additionally, we add a patch from Florian Bäuerle, which allows to set the mtime of the lzop archive for reproducible build support using SOURCE_DATE_EPOCH. Signed-off-by: Casey Reeves <casey@xogium.me> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
31 lines
979 B
Makefile
31 lines
979 B
Makefile
################################################################################
|
|
#
|
|
# lzop
|
|
#
|
|
################################################################################
|
|
|
|
LZOP_VERSION = 1.04
|
|
LZOP_SITE = http://www.lzop.org/download
|
|
LZOP_LICENSE = GPL-2.0+
|
|
LZOP_LICENSE_FILES = COPYING
|
|
LZOP_DEPENDENCIES = lzo
|
|
HOST_LZOP_DEPENDENCIES = host-lzo
|
|
|
|
# lzop uses libtool 2.4.2.418, which is right between 2.4.2 and
|
|
# 2.4.4. While our patch for 2.4 is also supposed to work up to and
|
|
# including 2.4.2.x, it does not work for libtool 2.4.2.418, which
|
|
# requires the patch for 2.4.4. So we disable the libtool patching
|
|
# from autotools-package and do our own.
|
|
LZOP_LIBTOOL_PATCH = NO
|
|
|
|
define LZOP_LIBTOOL_FIXUP
|
|
patch -i support/libtool/buildroot-libtool-v2.4.4.patch $(@D)/autoconf/ltmain.sh
|
|
endef
|
|
LZOP_POST_PATCH_HOOKS += LZOP_LIBTOOL_FIXUP
|
|
HOST_LZOP_POST_PATCH_HOOKS += LZOP_LIBTOOL_FIXUP
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|
|
|
|
LZOP = $(HOST_DIR)/bin/lzop
|