e1502ebc0c
Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
#############################################################
|
|
#
|
|
# acpid
|
|
#
|
|
#############################################################
|
|
ACPID_VERSION = 2.0.11
|
|
ACPID_SOURCE = acpid_$(ACPID_VERSION).orig.tar.gz
|
|
ACPID_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/a/acpid
|
|
|
|
define ACPID_BUILD_CMDS
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(@D)
|
|
endef
|
|
|
|
define ACPID_INSTALL_TARGET_CMDS
|
|
install -D -m 755 $(@D)/acpid $(TARGET_DIR)/usr/sbin/acpid
|
|
install -D -m 755 $(@D)/acpi_listen $(TARGET_DIR)/usr/bin/acpi_listen
|
|
install -D -m 644 $(@D)/acpid.8 $(TARGET_DIR)/usr/share/man/man8/acpid.8
|
|
install -D -m 644 $(@D)/acpi_listen.8 $(TARGET_DIR)/usr/share/man/man8/acpi_listen.8
|
|
mkdir -p $(TARGET_DIR)/etc/acpi/events
|
|
/bin/echo -e "event=button[ /]power\naction=/sbin/poweroff" > $(TARGET_DIR)/etc/acpi/events/powerbtn
|
|
endef
|
|
|
|
define ACPID_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/sbin/acpid
|
|
rm -f $(TARGET_DIR)/usr/bin/acpi_listen
|
|
rm -f $(addprefix )$(TARGET_DIR)/usr/share/man/man8/,acpid.8 acpi_listen.8)
|
|
endef
|
|
|
|
define ACPID_CLEAN_CMDS
|
|
-$(MAKE) -C $(@D) clean
|
|
endef
|
|
|
|
$(eval $(generic-package))
|