af31c309e7
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
896 B
Makefile
34 lines
896 B
Makefile
################################################################################
|
|
#
|
|
# lshw
|
|
#
|
|
################################################################################
|
|
|
|
LSHW_VERSION = B.02.18
|
|
LSHW_SITE = http://ezix.org/software/files
|
|
LSHW_LICENSE = GPL-2.0
|
|
LSHW_LICENSE_FILES = COPYING
|
|
|
|
LSHW_CFLAGS = $(TARGET_CFLAGS)
|
|
ifeq ($(BR2_ENABLE_LOCALE),)
|
|
LSHW_CFLAGS += -DNONLS
|
|
endif
|
|
|
|
LSHW_MAKE_OPTS = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \
|
|
RPM_OPT_FLAGS="$(LSHW_CFLAGS)" all
|
|
LSHW_MAKE_ENV = \
|
|
$(TARGET_MAKE_ENV) \
|
|
LIBS="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
|
|
LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
|
|
|
define LSHW_BUILD_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPTS)
|
|
endef
|
|
|
|
define LSHW_INSTALL_TARGET_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) \
|
|
$(LSHW_MAKE_OPTS) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|