![Thomas Petazzoni](/assets/img/avatar_default.png)
Move the unconditional CONF_OPTS assignment toward the beginning of the file, before the conditionals on optional dependencies. And use = for this unconditional assignment instead of +=. No functional changes, just to align with the coding style used in most other packages. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
36 lines
885 B
Makefile
36 lines
885 B
Makefile
################################################################################
|
|
#
|
|
# hiawatha
|
|
#
|
|
################################################################################
|
|
|
|
HIAWATHA_VERSION = 10.10
|
|
HIAWATHA_SITE = https://www.hiawatha-webserver.org/files
|
|
HIAWATHA_DEPENDENCIES = zlib
|
|
HIAWATHA_LICENSE = GPL-2.0
|
|
HIAWATHA_LICENSE_FILES = LICENSE
|
|
|
|
HIAWATHA_CONF_OPTS = \
|
|
-DENABLE_TOOLKIT=OFF \
|
|
-DCONFIG_DIR=/etc/hiawatha \
|
|
-DLOG_DIR=/var/log \
|
|
-DPID_DIR=/var/run \
|
|
-DWEBROOT_DIR=/var/www/hiawatha \
|
|
-DWORK_DIR=/var/lib/hiawatha
|
|
|
|
ifeq ($(BR2_PACKAGE_HIAWATHA_SSL),y)
|
|
HIAWATHA_CONF_OPTS += -DUSE_SYSTEM_MBEDTLS=ON
|
|
HIAWATHA_DEPENDENCIES += mbedtls
|
|
else
|
|
HIAWATHA_CONF_OPTS += -DENABLE_TLS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXSLT),y)
|
|
HIAWATHA_CONF_OPTS += -DENABLE_XSLT=ON
|
|
HIAWATHA_DEPENDENCIES += libxslt
|
|
else
|
|
HIAWATHA_CONF_OPTS += -DENABLE_XSLT=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|