2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-12-08 06:07:16 +01:00
|
|
|
#
|
|
|
|
# irda-utils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-12-08 06:07:16 +01:00
|
|
|
|
|
|
|
IRDA_UTILS_VERSION = 0.9.18
|
2012-08-26 01:52:48 +02:00
|
|
|
IRDA_UTILS_SITE = http://downloads.sourceforge.net/project/irda/irda-utils/$(IRDA_UTILS_VERSION)
|
2017-03-30 15:43:32 +02:00
|
|
|
IRDA_UTILS_LICENSE = GPL-2.0+
|
2014-06-24 21:15:23 +02:00
|
|
|
IRDA_UTILS_LICENSE_FILES = man/COPYING
|
2010-12-08 06:07:16 +01:00
|
|
|
|
|
|
|
IRDA_UTILS_CFLAGS = $(TARGET_CFLAGS) -I.
|
|
|
|
ifeq ($(BR2_USE_MMU),)
|
|
|
|
IRDA_UTILS_CFLAGS += -DNO_FORK=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
define IRDA_UTILS_BUILD_CMDS
|
2016-10-14 00:13:19 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) \
|
2010-12-08 06:07:16 +01:00
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(IRDA_UTILS_CFLAGS)" \
|
|
|
|
SYS_INCLUDES= \
|
|
|
|
DIRS="irattach irdaping irnetd" \
|
|
|
|
V=1 -C $(@D)
|
|
|
|
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 \
|
2014-11-30 15:18:32 +01:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
|
2010-12-08 06:07:16 +01:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|