1 ################################################################################
5 ################################################################################
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
18 MONGOOSE_CFLAGS
+= -DNS_ENABLE_SSL
-lssl
-lcrypto
-lz
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
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
33 $(eval
$(generic-package
))