mongrel2.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ################################################################################
  2. #
  3. # mongrel2
  4. #
  5. ################################################################################
  6. MONGREL2_VERSION = 1.9.2
  7. MONGREL2_SOURCE = mongrel2-v$(MONGREL2_VERSION).tar.bz2
  8. # Do not use the github helper here, the generated tarball is *NOT* the same
  9. # as the one uploaded by upstream for the release.
  10. MONGREL2_SITE = https://github.com/mongrel2/mongrel2/releases/download/$(MONGREL2_VERSION)
  11. MONGREL2_LICENSE = BSD-3c
  12. MONGREL2_LICENSE_FILES = LICENSE
  13. MONGREL2_DEPENDENCIES = sqlite zeromq
  14. define MONGREL2_POLARSSL_DISABLE_ASM
  15. $(SED) '/^#define POLARSSL_HAVE_ASM/d' $(@D)/src/polarssl/include/polarssl/config.h
  16. endef
  17. # ARM in thumb mode breaks debugging with asm optimizations
  18. # Microblaze asm optimizations are broken in general
  19. # MIPS R6 asm is not yet supported
  20. ifeq ($(BR2_ENABLE_DEBUG)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),yy)
  21. MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM
  22. else ifeq ($(BR2_microblaze),y)
  23. MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM
  24. else ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
  25. MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM
  26. endif
  27. define MONGREL2_BUILD_CMDS
  28. $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
  29. PREFIX=/usr all
  30. endef
  31. define MONGREL2_INSTALL_TARGET_CMDS
  32. $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
  33. PREFIX=/usr DESTDIR=$(TARGET_DIR) install
  34. endef
  35. $(eval $(generic-package))