python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / mongoose / mongoose.mk
blob7dfa1198398427c35df066dfb1b45c93c98c7956
1 ################################################################################
3 # mongoose
5 ################################################################################
7 MONGOOSE_VERSION = 6.2
8 MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION))
9 MONGOOSE_LICENSE = GPLv2
10 MONGOOSE_LICENSE_FILES = LICENSE
11 MONGOOSE_INSTALL_STAGING = YES
13 MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -DMONGOOSE_NO_DL
15 ifeq ($(BR2_PACKAGE_OPENSSL),y)
16 MONGOOSE_DEPENDENCIES += openssl
17 # directly linked
18 MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
19 endif
21 define MONGOOSE_BUILD_CMDS
22 $(TARGET_MAKE_ENV) $(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o
23 $(TARGET_MAKE_ENV) $(TARGET_AR) rcs $(@D)/libmongoose.a $(@D)/mongoose.o
24 endef
26 define MONGOOSE_INSTALL_STAGING_CMDS
27 $(INSTALL) -D -m 644 $(@D)/libmongoose.a \
28 $(STAGING_DIR)/usr/lib/libmongoose.a
29 $(INSTALL) -D -m 644 $(@D)/mongoose.h \
30 $(STAGING_DIR)/usr/include/mongoose.h
31 endef
33 $(eval $(generic-package))