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
|
|
|
|
|
|
|
LSHW_VERSION = B.02.16
|
|
|
|
LSHW_SITE = http://ezix.org/software/files
|
2014-06-26 21:21:05 +02:00
|
|
|
LSHW_LICENSE = GPLv2
|
|
|
|
LSHW_LICENSE_FILES = COPYING
|
2012-11-01 15:36:00 +01:00
|
|
|
|
|
|
|
LSHW_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_ENABLE_LOCALE),)
|
|
|
|
LSHW_CFLAGS += -DNONLS
|
|
|
|
endif
|
|
|
|
|
2012-07-04 03:29:40 +02:00
|
|
|
LSHW_MAKE_OPT = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \
|
2012-11-01 15:36:00 +01:00
|
|
|
RPM_OPT_FLAGS="$(LSHW_CFLAGS)" all
|
|
|
|
LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
|
|
|
|
LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
2012-05-28 17:11:23 +02:00
|
|
|
|
|
|
|
define LSHW_BUILD_CMDS
|
|
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPT)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LSHW_INSTALL_TARGET_CMDS
|
|
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) \
|
|
|
|
$(LSHW_MAKE_OPT) install
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|