xref: /OK3568_Linux_fs/buildroot/package/faifa/faifa.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# faifa
4#
5################################################################################
6
7FAIFA_VERSION = 0.1
8FAIFA_SITE = $(call github,ffainelli,faifa,v$(FAIFA_VERSION))
9FAIFA_INSTALL_STAGING = YES
10FAIFA_DEPENDENCIES = libpcap host-autoconf
11FAIFA_LICENSE = BSD-3-Clause
12FAIFA_LICENSE_FILES = COPYING
13
14FAIFA_MAKE_OPTS += GIT_REV=$(FAIFA_VERSION)
15
16# This package uses autoconf, but not automake, so we need to call
17# their special autogen.sh script, and have custom target and staging
18# installation commands.
19
20define FAIFA_RUN_AUTOGEN
21	cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
22endef
23FAIFA_PRE_CONFIGURE_HOOKS += FAIFA_RUN_AUTOGEN
24
25define FAIFA_INSTALL_TARGET_CMDS
26	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
27		PREFIX=/usr \
28		STRIP=/bin/true \
29		DESTDIR=$(TARGET_DIR) \
30		install
31endef
32
33define FAIFA_INSTALL_STAGING_CMDS
34	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
35		PREFIX=/usr \
36		STRIP=/bin/true \
37		DESTDIR=$(STAGING_DIR) \
38		install
39endef
40
41$(eval $(autotools-package))
42