2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-09-21 00:20:34 +02:00
|
|
|
#
|
|
|
|
# sconeserver
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-14 02:34:32 +02:00
|
|
|
|
2016-08-25 09:45:53 +02:00
|
|
|
SCONESERVER_VERSION = d659468cd164e6a6cc12932cc6780566b04f8328
|
2014-05-05 19:20:33 +02:00
|
|
|
SCONESERVER_SITE = $(call github,sconemad,sconeserver,$(SCONESERVER_VERSION))
|
2012-09-21 00:20:34 +02:00
|
|
|
SCONESERVER_LICENSE = GPLv2+
|
|
|
|
SCONESERVER_LICENSE_FILES = COPYING
|
2016-01-31 21:04:51 +01:00
|
|
|
# fetching from Git, we need to generate the configure script
|
2013-05-14 02:34:32 +02:00
|
|
|
SCONESERVER_AUTORECONF = YES
|
2016-08-28 20:19:53 +02:00
|
|
|
SCONESERVER_DEPENDENCIES = host-pkgconf pcre
|
2016-01-31 21:04:51 +01:00
|
|
|
# disable markdown module because its git submodule cmark
|
|
|
|
# https://github.com/sconemad/sconeserver/tree/master/markdown
|
|
|
|
# has no cross-compile support provided by the sconeserver build system
|
|
|
|
SCONESERVER_CONF_OPTS += --with-ip --with-local --with-ip6 --without-markdown
|
2012-09-21 00:20:34 +02:00
|
|
|
|
|
|
|
# Sconeserver configure script fails to find the libxml2 headers.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += \
|
|
|
|
--with-xml2-config="$(STAGING_DIR)/usr/bin/xml2-config"
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += openssl
|
|
|
|
SCONESERVER_CONF_OPTS += --with-ssl
|
2015-05-30 16:19:11 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
SCONESERVER_CONF_ENV += SSL_LIBADD=-lz
|
|
|
|
endif
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-ssl
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_EXAMPLES),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --with-examples
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-examples
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += libxml2
|
|
|
|
SCONESERVER_CONF_OPTS += --with-sconesite
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-sconesite
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE_IMAGE),y)
|
2016-08-28 20:19:53 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += imagemagick
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += \
|
|
|
|
--with-sconesite-image \
|
|
|
|
--with-Magick++-config="$(STAGING_DIR)/usr/bin/Magick++-config"
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-10-15 14:48:50 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-sconesite-image --with-Magick++-config=no
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += mysql
|
|
|
|
SCONESERVER_CONF_OPTS += \
|
|
|
|
--with-mysql \
|
|
|
|
--with-mysql_config="$(STAGING_DIR)/usr/bin/mysql_config" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/mysql"
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-mysql
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_BLUETOOTH),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += bluez_utils
|
|
|
|
SCONESERVER_CONF_OPTS += --with-bluetooth
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-bluetooth
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_RSS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += libxml2
|
|
|
|
SCONESERVER_CONF_OPTS += --with-rss
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-rss
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_LOCATION),y)
|
2016-08-28 20:19:53 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += gpsd
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --with-location
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-location
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_LETTUCE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --with-lettuce
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-lettuce
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_MATHS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += mpfr
|
|
|
|
SCONESERVER_CONF_OPTS += --with-maths
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-maths
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_TESTBUILDER),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --with-testbuilder
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-testbuilder
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SCONESERVER_UI),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += xlib_libX11
|
|
|
|
SCONESERVER_CONF_OPTS += --with-ui
|
2012-09-21 00:20:34 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-ui
|
2012-09-21 00:20:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|