pimd.mk 977 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ################################################################################
  2. #
  3. # pimd
  4. #
  5. ################################################################################
  6. PIMD_VERSION = 2.3.2
  7. PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
  8. PIMD_LICENSE = BSD-3-Clause
  9. PIMD_LICENSE_FILES = LICENSE LICENSE.mrouted
  10. ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
  11. PIMD_CONF_OPTS += --embedded-libc
  12. endif
  13. # The configure script is not autoconf based, so we use the
  14. # generic-package infrastructure
  15. define PIMD_CONFIGURE_CMDS
  16. (cd $(@D); \
  17. $(TARGET_CONFIGURE_OPTS) \
  18. $(TARGET_CONFIGURE_ARGS) \
  19. ./configure $(PIMD_CONF_OPTS) \
  20. )
  21. endef
  22. define PIMD_BUILD_CMDS
  23. $(TARGET_MAKE_ENV) $(MAKE) CROSS=$(TARGET_CROSS) \
  24. CC=$(TARGET_CC) LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
  25. endef
  26. define PIMD_INSTALL_TARGET_CMDS
  27. $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) \
  28. prefix=/usr -C $(@D) install
  29. endef
  30. $(eval $(generic-package))