2014-05-28 15:39:06 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# faifa
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-06-12 14:05:32 +02:00
|
|
|
FAIFA_VERSION = v0.1
|
2014-05-28 15:39:06 +02:00
|
|
|
FAIFA_SITE = $(call github,ffainelli,faifa,$(FAIFA_VERSION))
|
|
|
|
FAIFA_INSTALL_STAGING = YES
|
|
|
|
FAIFA_DEPENDENCIES = libpcap host-autoconf
|
2017-03-30 15:43:38 +02:00
|
|
|
FAIFA_LICENSE = BSD-3-Clause
|
2014-05-28 15:39:06 +02:00
|
|
|
FAIFA_LICENSE_FILES = COPYING
|
|
|
|
|
2014-09-27 21:32:38 +02:00
|
|
|
FAIFA_MAKE_OPTS += GIT_REV=$(FAIFA_VERSION)
|
2014-06-11 00:15:57 +02:00
|
|
|
|
2014-05-28 15:39:06 +02:00
|
|
|
# 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))
|