kumquat-buildroot/package/powertop/powertop.mk
Thomas Petazzoni e43b76d716 powertop: use the new gettext logic
This commit switches to use the new gettext logic, which involves:

 - using TARGET_NLS_DEPENDENCIES instead of hand-encoded dependencies
   on gettext/host-gettext

 - using TARGET_NLS_LIBS to force linking against libintl

 - dropping BR2_PACKAGE_GETTEXT selection

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-07-05 01:34:03 +02:00

25 lines
799 B
Makefile

################################################################################
#
# powertop
#
################################################################################
POWERTOP_VERSION = 2.9
POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop
POWERTOP_SOURCE = powertop-v$(POWERTOP_VERSION).tar.gz
POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-pkgconf \
$(TARGET_NLS_DEPENDENCIES)
POWERTOP_LICENSE = GPL-2.0
POWERTOP_LICENSE_FILES = COPYING
POWERTOP_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
# Help powertop at finding the right ncurses library depending on
# which one is available.
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncursesw"
else
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncurses"
endif
$(eval $(autotools-package))