Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 1 | ################################################################################ |
Lionel Orry | b7175ef | 2013-03-27 05:09:08 +0000 | [diff] [blame] | 2 | # |
Alexandre Belloni | 966e005 | 2013-06-05 23:53:28 +0000 | [diff] [blame] | 3 | # mongrel2 |
Lionel Orry | b7175ef | 2013-03-27 05:09:08 +0000 | [diff] [blame] | 4 | # |
Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 5 | ################################################################################ |
Lionel Orry | b7175ef | 2013-03-27 05:09:08 +0000 | [diff] [blame] | 6 | |
Maxime Hadjinlian | 8955620 | 2015-07-28 00:07:27 +0200 | [diff] [blame] | 7 | MONGREL2_VERSION = 1.9.2 |
| 8 | MONGREL2_SOURCE = mongrel2-v$(MONGREL2_VERSION).tar.bz2 |
Maxime Hadjinlian | 502a08b | 2014-10-12 21:39:18 +0200 | [diff] [blame] | 9 | # Do not use the github helper here, the generated tarball is *NOT* the same |
| 10 | # as the one uploaded by upstream for the release. |
Maxime Hadjinlian | 8955620 | 2015-07-28 00:07:27 +0200 | [diff] [blame] | 11 | MONGREL2_SITE = https://github.com/mongrel2/mongrel2/releases/download/$(MONGREL2_VERSION) |
Lionel Orry | b7175ef | 2013-03-27 05:09:08 +0000 | [diff] [blame] | 12 | MONGREL2_LICENSE = BSD-3c |
| 13 | MONGREL2_LICENSE_FILES = LICENSE |
| 14 | MONGREL2_DEPENDENCIES = sqlite zeromq |
| 15 | |
Vicente Olivert Riera | 7a0d473 | 2015-11-27 13:54:28 +0000 | [diff] [blame] | 16 | define MONGREL2_POLARSSL_DISABLE_ASM |
| 17 | $(SED) '/^#define POLARSSL_HAVE_ASM/d' $(@D)/src/polarssl/include/polarssl/config.h |
| 18 | endef |
| 19 | |
| 20 | # ARM in thumb mode breaks debugging with asm optimizations |
| 21 | # Microblaze asm optimizations are broken in general |
| 22 | # MIPS R6 asm is not yet supported |
| 23 | ifeq ($(BR2_ENABLE_DEBUG)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),yy) |
| 24 | MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM |
| 25 | else ifeq ($(BR2_microblaze),y) |
| 26 | MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM |
Vicente Olivert Riera | 45c92c6 | 2016-09-30 10:36:49 +0100 | [diff] [blame] | 27 | else ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y) |
Vicente Olivert Riera | 7a0d473 | 2015-11-27 13:54:28 +0000 | [diff] [blame] | 28 | MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM |
| 29 | endif |
| 30 | |
Lionel Orry | b7175ef | 2013-03-27 05:09:08 +0000 | [diff] [blame] | 31 | define MONGREL2_BUILD_CMDS |
| 32 | $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ |
| 33 | PREFIX=/usr all |
| 34 | endef |
| 35 | |
| 36 | define MONGREL2_INSTALL_TARGET_CMDS |
| 37 | $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ |
| 38 | PREFIX=/usr DESTDIR=$(TARGET_DIR) install |
| 39 | endef |
| 40 | |
Lionel Orry | b7175ef | 2013-03-27 05:09:08 +0000 | [diff] [blame] | 41 | $(eval $(generic-package)) |