2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-05-28 17:11:23 +02:00
|
|
|
#
|
|
|
|
# lshw
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-05-28 17:11:23 +02:00
|
|
|
|
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-05 09:23:38 +02:00
|
|
|
LSHW_VERSION = d76afbaaf40e953243da921844cddff8185324f3
|
|
|
|
LSHW_SITE = $(call github,lyonel,lshw,$(LSHW_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
LSHW_LICENSE = GPL-2.0
|
2014-06-26 21:21:05 +02:00
|
|
|
LSHW_LICENSE_FILES = COPYING
|
2012-11-01 15:36:00 +01:00
|
|
|
|
2022-08-05 09:23:37 +02:00
|
|
|
LSHW_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
|
|
|
|
LSHW_MAKE_OPTS = \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CXX="$(TARGET_CXX)" \
|
|
|
|
AR="$(TARGET_AR)" \
|
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-05 09:23:38 +02:00
|
|
|
LANGUAGES= \
|
2022-08-05 09:23:37 +02:00
|
|
|
RPM_OPT_FLAGS="$(TARGET_CFLAGS)"
|
|
|
|
|
2016-10-17 18:06:46 +02:00
|
|
|
LSHW_MAKE_ENV = \
|
|
|
|
$(TARGET_MAKE_ENV) \
|
2017-07-03 22:57:18 +02:00
|
|
|
LIBS=$(TARGET_NLS_LIBS)
|
2012-05-28 17:11:23 +02:00
|
|
|
|
2022-08-15 18:48:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
LSHW_DEPENDENCIES += host-pkgconf sqlite
|
|
|
|
LSHW_MAKE_OPTS += SQLITE=1
|
|
|
|
else
|
|
|
|
LSHW_MAKE_OPTS += SQLITE=0
|
|
|
|
endif
|
|
|
|
|
2022-08-15 18:48:11 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
LSHW_DEPENDENCIES += host-pkgconf zlib
|
|
|
|
LSHW_MAKE_OPTS += ZLIB=1
|
|
|
|
else
|
|
|
|
LSHW_MAKE_OPTS += ZLIB=0
|
|
|
|
endif
|
|
|
|
|
2012-05-28 17:11:23 +02:00
|
|
|
define LSHW_BUILD_CMDS
|
2022-08-05 09:23:37 +02:00
|
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src \
|
|
|
|
$(LSHW_MAKE_OPTS) \
|
|
|
|
all
|
2012-05-28 17:11:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LSHW_INSTALL_TARGET_CMDS
|
2022-08-05 09:23:37 +02:00
|
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src \
|
|
|
|
$(LSHW_MAKE_OPTS) \
|
|
|
|
DESTDIR=$(TARGET_DIR) \
|
|
|
|
install
|
2018-01-28 05:43:58 +01:00
|
|
|
$(RM) -rf $(TARGET_DIR)/usr/share/lshw
|
2012-05-28 17:11:23 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|