1################################################################################ 2# 3# sconeserver 4# 5################################################################################ 6 7SCONESERVER_VERSION = 6b932d7d8dbb700b830205e7111e469cefff490c 8SCONESERVER_SITE = $(call github,sconemad,sconeserver,$(SCONESERVER_VERSION)) 9SCONESERVER_LICENSE = GPL-2.0+ 10SCONESERVER_LICENSE_FILES = COPYING 11# fetching from Git, we need to generate the configure script 12SCONESERVER_AUTORECONF = YES 13SCONESERVER_DEPENDENCIES = \ 14 host-pkgconf \ 15 $(if $(BR2_PACKAGE_PCRE),pcre) \ 16 zlib 17# disable image as it fails to build with ImageMagick 18# disable markdown module because its git submodule cmark 19# https://github.com/sconemad/sconeserver/tree/master/markdown 20# has no cross-compile support provided by the sconeserver build system 21SCONESERVER_CONF_OPTS += \ 22 --with-ip \ 23 --with-local \ 24 --with-ip6 \ 25 --without-image \ 26 --without-markdown 27 28# Sconeserver configure script fails to find the libxml2 headers. 29ifeq ($(BR2_PACKAGE_LIBXML2),y) 30SCONESERVER_CONF_OPTS += \ 31 --with-xml2-config="$(STAGING_DIR)/usr/bin/xml2-config" 32endif 33 34ifeq ($(BR2_PACKAGE_OPENSSL),y) 35SCONESERVER_DEPENDENCIES += openssl 36SCONESERVER_CONF_OPTS += --with-ssl 37else 38SCONESERVER_CONF_OPTS += --without-ssl 39endif 40 41ifeq ($(BR2_PACKAGE_SCONESERVER_EXAMPLES),y) 42SCONESERVER_CONF_OPTS += --with-examples 43else 44SCONESERVER_CONF_OPTS += --without-examples 45endif 46 47ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE),y) 48SCONESERVER_DEPENDENCIES += libxml2 49SCONESERVER_CONF_OPTS += --with-sconesite 50else 51SCONESERVER_CONF_OPTS += --without-sconesite 52endif 53 54ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y) 55SCONESERVER_DEPENDENCIES += mysql 56SCONESERVER_CONF_OPTS += \ 57 --with-mysql \ 58 --with-mysql_config="$(STAGING_DIR)/usr/bin/mysql_config" \ 59 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/mysql" 60else 61SCONESERVER_CONF_OPTS += --without-mysql 62endif 63 64ifeq ($(BR2_PACKAGE_SCONESERVER_BLUETOOTH),y) 65SCONESERVER_DEPENDENCIES += bluez5_utils 66SCONESERVER_CONF_OPTS += --with-bluetooth 67else 68SCONESERVER_CONF_OPTS += --without-bluetooth 69endif 70 71ifeq ($(BR2_PACKAGE_SCONESERVER_RSS),y) 72SCONESERVER_DEPENDENCIES += libxml2 73SCONESERVER_CONF_OPTS += --with-rss 74else 75SCONESERVER_CONF_OPTS += --without-rss 76endif 77 78ifeq ($(BR2_PACKAGE_SCONESERVER_LOCATION),y) 79SCONESERVER_DEPENDENCIES += gpsd 80SCONESERVER_CONF_OPTS += --with-location 81else 82SCONESERVER_CONF_OPTS += --without-location 83endif 84 85ifeq ($(BR2_PACKAGE_SCONESERVER_MATHS),y) 86SCONESERVER_DEPENDENCIES += mpfr 87SCONESERVER_CONF_OPTS += --with-maths 88else 89SCONESERVER_CONF_OPTS += --without-maths 90endif 91 92ifeq ($(BR2_PACKAGE_SCONESERVER_TESTBUILDER),y) 93SCONESERVER_CONF_OPTS += --with-testbuilder 94else 95SCONESERVER_CONF_OPTS += --without-testbuilder 96endif 97 98$(eval $(autotools-package)) 99