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
|
|
|
|
2016-01-30 23:59:17 +01:00
|
|
|
LSHW_VERSION = B.02.17
|
2012-05-28 17:11:23 +02:00
|
|
|
LSHW_SITE = http://ezix.org/software/files
|
2016-01-30 23:59:18 +01:00
|
|
|
LSHW_PATCH = \
|
|
|
|
http://git.alpinelinux.org/cgit/aports/plain/testing/lshw/basename-limits-long-bits.patch \
|
|
|
|
http://git.alpinelinux.org/cgit/aports/plain/testing/lshw/no-private-uint.patch
|
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
|
|
|
|
|
2014-09-27 21:32:38 +02:00
|
|
|
LSHW_MAKE_OPTS = 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
|
2014-09-27 21:32:38 +02:00
|
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPTS)
|
2012-05-28 17:11:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LSHW_INSTALL_TARGET_CMDS
|
|
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) \
|
2014-09-27 21:32:38 +02:00
|
|
|
$(LSHW_MAKE_OPTS) install
|
2012-05-28 17:11:23 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|