Blame view

buildroot/buildroot-2016.08.1/package/irda-utils/irda-utils.mk 1.09 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  ################################################################################
  #
  # irda-utils
  #
  ################################################################################
  
  IRDA_UTILS_VERSION = 0.9.18
  IRDA_UTILS_SITE = http://downloads.sourceforge.net/project/irda/irda-utils/$(IRDA_UTILS_VERSION)
  IRDA_UTILS_LICENSE = GPLv2+
  IRDA_UTILS_LICENSE_FILES = man/COPYING
  
  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
  
  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 || exit 1; \
  	done
  endef
  
  $(eval $(generic-package))