2022-12-11 12:28:24 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# hddtemp
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
HDDTEMP_VERSION = 0.4.3
|
|
|
|
HDDTEMP_SITE = $(call github,vitlav,hddtemp,v$(HDDTEMP_VERSION))
|
|
|
|
HDDTEMP_LICENSE = GPLv2
|
|
|
|
HDDTEMP_LICENSE_FILES = GPL-2
|
|
|
|
|
|
|
|
# Fetched from Github with no configure script
|
|
|
|
HDDTEMP_AUTORECONF = YES
|
2023-02-21 18:21:58 +01:00
|
|
|
HDDTEMP_AUTOPOINT = YES
|
2022-12-11 12:28:24 +01:00
|
|
|
|
|
|
|
HDDTEMP_DB_PATH = /usr/share/misc/hddtemp.db
|
|
|
|
HDDTEMP_CONF_OPTS = --with-db-path=$(HDDTEMP_DB_PATH)
|
2022-12-13 18:11:03 +01:00
|
|
|
HDDTEMP_CONF_ENV = LIBS="$(HDDTEMP_LIBS) $(TARGET_NLS_LIBS)"
|
|
|
|
HDDTEMP_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
|
2022-12-11 12:28:24 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
|
|
|
|
HDDTEMP_DEPENDENCIES += libexecinfo
|
|
|
|
HDDTEMP_LIBS += -lexecinfo
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
HDDTEMP_DEPENDENCIES += libiconv
|
|
|
|
HDDTEMP_LIBS += -liconv
|
|
|
|
endif
|
|
|
|
|
|
|
|
define HDDTEMP_INSTALL_HDDTEMP_DB
|
|
|
|
$(INSTALL) -D $(@D)/data/hddtemp.db $(TARGET_DIR)$(HDDTEMP_DB_PATH)
|
|
|
|
endef
|
|
|
|
HDDTEMP_POST_INSTALL_TARGET_HOOKS += HDDTEMP_INSTALL_HDDTEMP_DB
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|