faifa.mk 1.0 KB

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