kumquat-buildroot/package/faifa/faifa.mk
Maxime Hadjinlian 04c32c30a1 faifa: force GIT_REV to a correct value
This variable is looked up by the Makefile throught a git command line
invocation.
Since we don't keep the '.git' folder in the packages when we clone
them, the command line fail to find anything.

Even worse, it can keep going up the tree until it finds buildroot's
'.git' directory.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-06-11 13:12:25 +02:00

42 lines
1.1 KiB
Makefile

################################################################################
#
# faifa
#
################################################################################
FAIFA_VERSION = aa0b5f90b89a9fd1533137b68ebf85f5437aba53
FAIFA_SITE = $(call github,ffainelli,faifa,$(FAIFA_VERSION))
FAIFA_INSTALL_STAGING = YES
FAIFA_DEPENDENCIES = libpcap host-autoconf
FAIFA_LICENSE = GPLv2+
FAIFA_LICENSE_FILES = COPYING
FAIFA_MAKE_OPT += 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))