blob: c69c14345f7e2967ccac9c529d6d51b2fce1a1e4 [file] [log] [blame]
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00001################################################################################
Lionel Orryb7175ef2013-03-27 05:09:08 +00002#
Alexandre Belloni966e0052013-06-05 23:53:28 +00003# mongrel2
Lionel Orryb7175ef2013-03-27 05:09:08 +00004#
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00005################################################################################
Lionel Orryb7175ef2013-03-27 05:09:08 +00006
Maxime Hadjinlian89556202015-07-28 00:07:27 +02007MONGREL2_VERSION = 1.9.2
8MONGREL2_SOURCE = mongrel2-v$(MONGREL2_VERSION).tar.bz2
Maxime Hadjinlian502a08b2014-10-12 21:39:18 +02009# 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 Hadjinlian89556202015-07-28 00:07:27 +020011MONGREL2_SITE = https://github.com/mongrel2/mongrel2/releases/download/$(MONGREL2_VERSION)
Lionel Orryb7175ef2013-03-27 05:09:08 +000012MONGREL2_LICENSE = BSD-3c
13MONGREL2_LICENSE_FILES = LICENSE
14MONGREL2_DEPENDENCIES = sqlite zeromq
15
Vicente Olivert Riera7a0d4732015-11-27 13:54:28 +000016define MONGREL2_POLARSSL_DISABLE_ASM
17 $(SED) '/^#define POLARSSL_HAVE_ASM/d' $(@D)/src/polarssl/include/polarssl/config.h
18endef
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
23ifeq ($(BR2_ENABLE_DEBUG)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),yy)
24MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM
25else ifeq ($(BR2_microblaze),y)
26MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM
Vicente Olivert Riera45c92c62016-09-30 10:36:49 +010027else ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
Vicente Olivert Riera7a0d4732015-11-27 13:54:28 +000028MONGREL2_POST_CONFIGURE_HOOKS += MONGREL2_POLARSSL_DISABLE_ASM
29endif
30
Lionel Orryb7175ef2013-03-27 05:09:08 +000031define MONGREL2_BUILD_CMDS
32 $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
33 PREFIX=/usr all
34endef
35
36define MONGREL2_INSTALL_TARGET_CMDS
37 $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
38 PREFIX=/usr DESTDIR=$(TARGET_DIR) install
39endef
40
Lionel Orryb7175ef2013-03-27 05:09:08 +000041$(eval $(generic-package))