libselinux is an optional dependency since a very long time (2010) and
https://github.com/mirror/smartmontools/commit/
ab807ee43bd4821f5e0e010de08a746d88506b17
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
SMARTMONTOOLS_CONF_OPTS += --without-libcap-ng
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+SMARTMONTOOLS_CONF_OPTS += --with-selinux
+SMARTMONTOOLS_DEPENDENCIES += libselinux
+else
+SMARTMONTOOLS_CONF_OPTS += --without-selinux
+endif
+
$(eval $(autotools-package))