0be67b6f71
Fixes http://autobuild.buildroot.net/results/aa3/aa3abc215b7a4e95b60be9a635758d8448e4959f/ http://autobuild.buildroot.net/results/075/075423a70b9bb80b2f13cac4fb95502180e68b43/ http://autobuild.buildroot.net/results/61f/61fb9b93af41b565fd44bab95955ab6f63c1f1ad/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# lshw
|
|
#
|
|
################################################################################
|
|
|
|
LSHW_VERSION = B.02.17
|
|
LSHW_SITE = http://ezix.org/software/files
|
|
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
|
|
LSHW_LICENSE = GPLv2
|
|
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 = 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))
|