1 ################################################################################
5 ################################################################################
7 MONGREL2_VERSION
= 1.9.2
8 MONGREL2_SOURCE
= mongrel2-v
$(MONGREL2_VERSION
).
tar.bz2
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.
11 MONGREL2_SITE
= https
://github.com
/mongrel2
/mongrel2
/releases
/download
/$(MONGREL2_VERSION
)
12 MONGREL2_LICENSE
= BSD-3c
13 MONGREL2_LICENSE_FILES
= LICENSE
14 MONGREL2_DEPENDENCIES
= sqlite zeromq
16 define MONGREL2_POLARSSL_DISABLE_ASM
17 $(SED
) '/^#define POLARSSL_HAVE_ASM/d' $(@D
)/src
/polarssl
/include/polarssl
/config.h
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
27 else ifeq ($(BR2_MIPS_CPU_MIPS32R6
)$(BR2_MIPS_CPU_MIPS64R6
),y
)
28 MONGREL2_POST_CONFIGURE_HOOKS
+= MONGREL2_POLARSSL_DISABLE_ASM
31 define MONGREL2_BUILD_CMDS
32 $(TARGET_MAKE_ENV
) $(MAKE1
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) \
36 define MONGREL2_INSTALL_TARGET_CMDS
37 $(TARGET_MAKE_ENV
) $(MAKE1
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) \
38 PREFIX
=/usr DESTDIR
=$(TARGET_DIR
) install
41 $(eval
$(generic-package
))