kumquat-buildroot/package/boa/boa.mk
Thomas Petazzoni 300f9c9c9d package: remove useless arguments from AUTOTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
AUTOTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:12:27 +02:00

29 lines
858 B
Makefile

#############################################################
#
# boa
#
#############################################################
BOA_VERSION = 0.94.14rc21
BOA_SOURCE = boa-$(BOA_VERSION).tar.gz
BOA_SITE = http://www.boa.org/
define BOA_INSTALL_TARGET_CMDS
install -D -m 755 $(@D)/src/boa $(TARGET_DIR)/usr/sbin/boa
install -D -m 755 $(@D)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
install -D -m 644 package/boa/boa.conf $(TARGET_DIR)/etc/boa/boa.conf
install -D -m 644 package/boa/mime.types $(TARGET_DIR)/etc/mime.types
endef
define BOA_UNINSTALL_STAGING_CMDS
# autotools calls uninstall-staging even if staging install
# isn't enabled
endef
define BOA_UNINSTALL_TARGET_CMDS
rm -rf $(TARGET_DIR)/usr/sbin/boa \
$(TARGET_DIR)/usr/lib/boa/ \
$(TARGET_DIR)/etc/mime.types $(TARGET_DIR)/etc/boa
endef
$(eval $(call AUTOTARGETS))