302f28de80
It is possible to use ACPI to monitor the battery with the battery mini-applet. If ACPI is not explicitly enabled, then APM is used if available; if ACPI is not explcitly enabled and APM is not available, then the battery applet is not built. However, APM is not really current nowadays, and possibly missing for a bunch of architecture... What is a pity is that there is no way to explicitly enable or disable the applet; it only relies on auto-detection... :-( So, forcibly use ACPI on platforms that have it, that is x86 (32- and 64-bit) and AArch64. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Reviewed-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# matchbox-panel
|
|
#
|
|
################################################################################
|
|
|
|
MATCHBOX_PANEL_VERSION_MAJOR = 0.9
|
|
MATCHBOX_PANEL_VERSION = $(MATCHBOX_PANEL_VERSION_MAJOR).3
|
|
MATCHBOX_PANEL_SOURCE = matchbox-panel-$(MATCHBOX_PANEL_VERSION).tar.bz2
|
|
MATCHBOX_PANEL_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-panel/$(MATCHBOX_PANEL_VERSION_MAJOR)
|
|
MATCHBOX_PANEL_LICENSE = GPLv2+
|
|
MATCHBOX_PANEL_LICENSE_FILES = COPYING
|
|
MATCHBOX_PANEL_DEPENDENCIES = matchbox-lib
|
|
MATCHBOX_PANEL_CONF_OPTS = --enable-expat
|
|
|
|
ifeq ($(BR2_PACKAGE_MATCHBOX_STARTUP_MONITOR),y)
|
|
MATCHBOX_PANEL_CONF_OPTS += --enable-startup-notification
|
|
MATCHBOX_PANEL_DEPENDENCIES += matchbox-startup-monitor
|
|
else
|
|
MATCHBOX_PANEL_CONF_OPTS += --disable-startup-notification
|
|
endif
|
|
|
|
# Using ACPI is only possible on x86 (32- or 64-bit) or AArch64
|
|
ifeq ($(BR2_aarch64)$(BR2_i386)$(BR2_x86_64),y)
|
|
MATCHBOX_PANEL_CONF_OPTS += --enable-acpi-linux
|
|
else
|
|
MATCHBOX_PANEL_CONF_OPTS += --disable-acpi-linux
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS),y)
|
|
MATCHBOX_PANEL_DEPENDENCIES += wireless_tools
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|