kumquat-buildroot/package/lshw/lshw.mk
Yann E. MORIN 72a009fa98 package/lshw: bump to latest HEAD
lshw is seldom released, the last one being more than two years ago.
Although the amount of changes is not huge, there have been some
significant changes and fixes, so it warrants a bump to the current
HEAD of the git repo.

lshw tries to build the translations with msgfmt, but as a development
and debugging aid, or as a backend to other scripts, translations are
not really useful. We disable that by overriding the LANGUAGES
variables to an empty list.

Patches are dropped: the basename() patch has been superseded by an
upstream change (introduced shortname() as a wrapper to it), and the
LONG_BIT fix has been applied. It was a bit difficult to find, as
upstream has not applied the patches, nor kept authorship, nor kept the
commit logs...

Of noteworthy attention, this fixes the JSON output format (at least for
the flaws we were hitting in our cases).

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-08-06 23:22:30 +02:00

40 lines
889 B
Makefile

################################################################################
#
# lshw
#
################################################################################
LSHW_VERSION = d76afbaaf40e953243da921844cddff8185324f3
LSHW_SITE = $(call github,lyonel,lshw,$(LSHW_VERSION))
LSHW_LICENSE = GPL-2.0
LSHW_LICENSE_FILES = COPYING
LSHW_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
LSHW_MAKE_OPTS = \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
AR="$(TARGET_AR)" \
LANGUAGES= \
RPM_OPT_FLAGS="$(TARGET_CFLAGS)"
LSHW_MAKE_ENV = \
$(TARGET_MAKE_ENV) \
LIBS=$(TARGET_NLS_LIBS)
define LSHW_BUILD_CMDS
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src \
$(LSHW_MAKE_OPTS) \
all
endef
define LSHW_INSTALL_TARGET_CMDS
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src \
$(LSHW_MAKE_OPTS) \
DESTDIR=$(TARGET_DIR) \
install
$(RM) -rf $(TARGET_DIR)/usr/share/lshw
endef
$(eval $(generic-package))