mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
169943e8d9
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
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)
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
LSHW_DEPENDENCIES += host-pkgconf sqlite
|
|
LSHW_MAKE_OPTS += SQLITE=1
|
|
else
|
|
LSHW_MAKE_OPTS += SQLITE=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LSHW_DEPENDENCIES += host-pkgconf zlib
|
|
LSHW_MAKE_OPTS += ZLIB=1
|
|
else
|
|
LSHW_MAKE_OPTS += ZLIB=0
|
|
endif
|
|
|
|
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))
|