2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-12 13:03:16 +01:00
|
|
|
#
|
|
|
|
# mongoose
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-12 13:03:16 +01:00
|
|
|
|
2013-05-02 22:43:48 +02:00
|
|
|
MONGOOSE_VERSION = 3.7
|
2012-12-12 13:03:16 +01:00
|
|
|
MONGOOSE_SOURCE = mongoose-$(MONGOOSE_VERSION).tgz
|
|
|
|
MONGOOSE_SITE = https://mongoose.googlecode.com/files
|
|
|
|
MONGOOSE_LICENSE = MIT
|
2013-05-03 12:35:18 +02:00
|
|
|
MONGOOSE_LICENSE_FILES = LICENSE
|
2012-12-12 13:03:16 +01:00
|
|
|
|
2013-05-02 22:59:23 +02:00
|
|
|
MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
MONGOOSE_DEPENDENCIES += openssl
|
|
|
|
# directly linked
|
|
|
|
MONGOOSE_CFLAGS += -DNO_SSL_DL -lssl -lcrypto -lz
|
|
|
|
else
|
|
|
|
MONGOOSE_CFLAGS += -DNO_SSL
|
|
|
|
endif
|
2012-12-12 13:03:16 +01:00
|
|
|
|
|
|
|
define MONGOOSE_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) \
|
|
|
|
linux COPT="$(MONGOOSE_CFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MONGOOSE_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/mongoose $(TARGET_DIR)/usr/sbin/mongoose
|
|
|
|
$(INSTALL) -D -m 755 package/mongoose/S85mongoose \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S85mongoose
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|