1 ################################################################################
5 ################################################################################
7 CIVETWEB_VERSION
= v1.5
8 CIVETWEB_SITE
= $(call github
,sunsetbrew
,civetweb
,$(CIVETWEB_VERSION
))
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
23 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
24 CIVETWEB_COPT
+= -DNO_SSL_DL
25 CIVETWEB_LIBS
+= -lssl
-lcrypto
-lz
26 CIVETWEB_DEPENDENCIES
+= openssl
28 CIVETWEB_COPT
+= -DNO_SSL
31 define CIVETWEB_BUILD_CMDS
32 $(TARGET_CONFIGURE_OPTS
) $(MAKE
) -C
$(@D
) build \
33 $(CIVETWEB_CONF_OPTS
) \
34 COPT
="$(CIVETWEB_COPT)" LIBS
="$(CIVETWEB_LIBS)"
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)'
48 $(eval
$(generic-package
))