blob: cbc68869b075eea3d921462e820f35afc922c7c8 (
plain) (
tree)
|
|
#############################################################
#
# irda-utils
#
#############################################################
IRDA_UTILS_VERSION = 0.9.18
IRDA_UTILS_SOURCE = irda-utils-$(IRDA_UTILS_VERSION).tar.gz
IRDA_UTILS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/irda
IRDA_UTILS_CFLAGS = $(TARGET_CFLAGS) -I.
ifeq ($(BR2_USE_MMU),)
IRDA_UTILS_CFLAGS += -DNO_FORK=1
endif
define IRDA_UTILS_BUILD_CMDS
$(MAKE) \
CC="$(TARGET_CC)" \
CFLAGS="$(IRDA_UTILS_CFLAGS)" \
SYS_INCLUDES= \
DIRS="irattach irdaping irnetd" \
V=1 -C $(@D)
endef
define IRDA_UTILS_CLEAN_CMDS
$(MAKE) -C $(@D) clean
endef
IRDA_UTILS_SBINS- =
IRDA_UTILS_SBINS-y =
IRDA_UTILS_SBINS-$(BR2_PACKAGE_IRDA_UTILS_IRATTACH) += irattach
IRDA_UTILS_SBINS-$(BR2_PACKAGE_IRDA_UTILS_IRDAPING) += irdaping
IRDA_UTILS_SBINS-$(BR2_PACKAGE_IRDA_UTILS_IRNETD) += irnetd
IRDA_UTILS_SBINS- += $(IRDA_UTILS_SBINS-y)
define IRDA_UTILS_INSTALL_TARGET_CMDS
for i in $(IRDA_UTILS_SBINS-y); do \
$(INSTALL) -m 0755 -D $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i; \
done
endef
define IRDA_UTILS_UNINSTALL_TARGET_CMDS
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(IRDA_UTILS_SBINS-))
endef
$(eval $(call GENTARGETS))
|