snowball-{hdmiservice, init}: remove packages
[buildroot-gz.git] / package / civetweb / civetweb.mk
blobd29765b87d24acecb58a2959fcc83c3341d7a87c
1 ################################################################################
3 # civetweb
5 ################################################################################
7 CIVETWEB_VERSION = v1.5
8 CIVETWEB_SITE = $(call github,sunsetbrew,civetweb,$(CIVETWEB_VERSION))
9 CIVETWEB_LICENSE = MIT
10 CIVETWEB_LICENSE_FILES = LICENSE.md
12 CIVETWEB_CONF_OPTS = TARGET_OS=LINUX WITH_IPV6=1
13 CIVETWEB_COPT = -DHAVE_POSIX_FALLOCATE=0
14 CIVETWEB_LIBS = -lpthread -lm
15 CIVETWEB_SYSCONFDIR = /etc
16 CIVETWEB_HTMLDIR = /var/www
18 ifeq ($(BR2_PACKAGE_CIVETWEB_WITH_LUA),y)
19 CIVETWEB_CONF_OPTS += WITH_LUA=1
20 CIVETWEB_LIBS += -ldl
21 endif
23 ifeq ($(BR2_PACKAGE_OPENSSL),y)
24 CIVETWEB_COPT += -DNO_SSL_DL
25 CIVETWEB_LIBS += -lssl -lcrypto -lz
26 CIVETWEB_DEPENDENCIES += openssl
27 else
28 CIVETWEB_COPT += -DNO_SSL
29 endif
31 define CIVETWEB_BUILD_CMDS
32 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) build \
33 $(CIVETWEB_CONF_OPTS) \
34 COPT="$(CIVETWEB_COPT)" LIBS="$(CIVETWEB_LIBS)"
35 endef
37 define CIVETWEB_INSTALL_TARGET_CMDS
38 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
39 DOCUMENT_ROOT="$(CIVETWEB_HTMLDIR)" \
40 CONFIG_FILE2="$(CIVETWEB_SYSCONFDIR)/civetweb.conf" \
41 HTMLDIR="$(TARGET_DIR)$(CIVETWEB_HTMLDIR)" \
42 SYSCONFDIR="$(TARGET_DIR)$(CIVETWEB_SYSCONFDIR)" \
43 PREFIX="$(TARGET_DIR)/usr" \
44 $(CIVETWEB_CONF_OPTS) \
45 COPT='$(CIVETWEB_COPT)'
46 endef
48 $(eval $(generic-package))