2013-08-28 05:56:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# civetweb
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2013-11-02 17:13:34 +01:00
|
|
|
CIVETWEB_VERSION = v1.3
|
2013-12-05 18:20:46 +01:00
|
|
|
CIVETWEB_SITE = $(call github,sunsetbrew,civetweb,$(CIVETWEB_VERSION))
|
2013-08-28 05:56:11 +02:00
|
|
|
CIVETWEB_LICENSE = MIT
|
|
|
|
CIVETWEB_LICENSE_FILES = LICENSE.md
|
|
|
|
|
|
|
|
CIVETWEB_CONF_OPT = TARGET_OS=LINUX
|
|
|
|
CIVETWEB_COPT = $(TARGET_CFLAGS) -DHAVE_POSIX_FALLOCATE=0
|
2013-09-24 14:16:17 +02:00
|
|
|
CIVETWEB_LIBS = -lpthread -lm -ldl
|
2013-08-28 05:56:11 +02:00
|
|
|
CIVETWEB_SYSCONFDIR = /etc
|
|
|
|
CIVETWEB_HTMLDIR = /var/www
|
|
|
|
|
|
|
|
ifneq ($(BR2_LARGEFILE),y)
|
|
|
|
CIVETWEB_COPT += -DSQLITE_DISABLE_LFS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_INET_IPV6),y)
|
|
|
|
CIVETWEB_CONF_OPT += WITH_IPV6=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_CIVETWEB_WITH_LUA),y)
|
|
|
|
CIVETWEB_CONF_OPT += WITH_LUA=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2013-09-24 14:16:17 +02:00
|
|
|
CIVETWEB_COPT += -DNO_SSL_DL
|
|
|
|
CIVETWEB_LIBS += -lssl -lcrypto -lz
|
2013-08-28 05:56:11 +02:00
|
|
|
CIVETWEB_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
CIVETWEB_COPT += -DNO_SSL
|
|
|
|
endif
|
|
|
|
|
|
|
|
define CIVETWEB_BUILD_CMDS
|
2013-09-24 14:07:07 +02:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) build \
|
2013-08-28 05:56:11 +02:00
|
|
|
$(CIVETWEB_CONF_OPT) \
|
2013-09-24 14:16:17 +02:00
|
|
|
COPT="$(CIVETWEB_COPT)" LIBS="$(CIVETWEB_LIBS)"
|
2013-08-28 05:56:11 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CIVETWEB_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(@D) install \
|
|
|
|
DOCUMENT_ROOT="$(CIVETWEB_HTMLDIR)" \
|
|
|
|
CONFIG_FILE2="$(CIVETWEB_SYSCONFDIR)/civetweb.conf" \
|
|
|
|
HTMLDIR="$(TARGET_DIR)$(CIVETWEB_HTMLDIR)" \
|
|
|
|
SYSCONFDIR="$(TARGET_DIR)$(CIVETWEB_SYSCONFDIR)" \
|
|
|
|
PREFIX="$(TARGET_DIR)/usr" \
|
|
|
|
$(CIVETWEB_CONF_OPT) \
|
|
|
|
COPT='$(CIVETWEB_COPT)'
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|