2013-08-28 05:56:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# civetweb
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-10-26 19:45:08 +01:00
|
|
|
CIVETWEB_VERSION = v1.5
|
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
|
|
|
|
|
2015-04-19 14:40:00 +02:00
|
|
|
CIVETWEB_CONF_OPTS = TARGET_OS=LINUX WITH_IPV6=1
|
2015-04-27 22:31:00 +02:00
|
|
|
CIVETWEB_COPT = -DHAVE_POSIX_FALLOCATE=0
|
2015-04-27 22:03:12 +02:00
|
|
|
CIVETWEB_LIBS = -lpthread -lm
|
2013-08-28 05:56:11 +02:00
|
|
|
CIVETWEB_SYSCONFDIR = /etc
|
|
|
|
CIVETWEB_HTMLDIR = /var/www
|
|
|
|
|
2015-04-27 22:29:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CIVETWEB_WITH_LUA),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CIVETWEB_CONF_OPTS += WITH_LUA=1
|
2015-04-27 22:03:12 +02:00
|
|
|
CIVETWEB_LIBS += -ldl
|
2013-08-28 05:56:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CIVETWEB_COPT += -DNO_SSL_DL
|
|
|
|
CIVETWEB_LIBS += -lssl -lcrypto -lz
|
|
|
|
CIVETWEB_DEPENDENCIES += openssl
|
2013-08-28 05:56:11 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
CIVETWEB_COPT += -DNO_SSL
|
2013-08-28 05:56:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define CIVETWEB_BUILD_CMDS
|
2015-04-27 22:31:00 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) build \
|
2014-09-27 21:32:44 +02:00
|
|
|
$(CIVETWEB_CONF_OPTS) \
|
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
|
2015-04-27 22:31:00 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
|
2013-08-28 05:56:11 +02:00
|
|
|
DOCUMENT_ROOT="$(CIVETWEB_HTMLDIR)" \
|
|
|
|
CONFIG_FILE2="$(CIVETWEB_SYSCONFDIR)/civetweb.conf" \
|
|
|
|
HTMLDIR="$(TARGET_DIR)$(CIVETWEB_HTMLDIR)" \
|
|
|
|
SYSCONFDIR="$(TARGET_DIR)$(CIVETWEB_SYSCONFDIR)" \
|
|
|
|
PREFIX="$(TARGET_DIR)/usr" \
|
2014-09-27 21:32:44 +02:00
|
|
|
$(CIVETWEB_CONF_OPTS) \
|
2013-08-28 05:56:11 +02:00
|
|
|
COPT='$(CIVETWEB_COPT)'
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|