Blame view

buildroot/buildroot-2016.08.1/package/faifa/faifa.mk 1.03 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
40
41
  ################################################################################
  #
  # faifa
  #
  ################################################################################
  
  FAIFA_VERSION = v0.1
  FAIFA_SITE = $(call github,ffainelli,faifa,$(FAIFA_VERSION))
  FAIFA_INSTALL_STAGING = YES
  FAIFA_DEPENDENCIES = libpcap host-autoconf
  FAIFA_LICENSE = BSD-3c
  FAIFA_LICENSE_FILES = COPYING
  
  FAIFA_MAKE_OPTS += GIT_REV=$(FAIFA_VERSION)
  
  # This package uses autoconf, but not automake, so we need to call
  # their special autogen.sh script, and have custom target and staging
  # installation commands.
  
  define FAIFA_RUN_AUTOGEN
  	cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
  endef
  FAIFA_PRE_CONFIGURE_HOOKS += FAIFA_RUN_AUTOGEN
  
  define FAIFA_INSTALL_TARGET_CMDS
  	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
  		PREFIX=/usr \
  		STRIP=/bin/true \
  		DESTDIR=$(TARGET_DIR) \
  		install
  endef
  
  define FAIFA_INSTALL_STAGING_CMDS
  	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
  		PREFIX=/usr \
  		STRIP=/bin/true \
  		DESTDIR=$(STAGING_DIR) \
  		install
  endef
  
  $(eval $(autotools-package))