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
|
|
|
|
2012-09-21 00:20:34 +02:00
|
|
|
# Release 0.6.0 doesn't build cleanly, so use a recent
|
2013-07-04 18:45:12 +02:00
|
|
|
# Git commit.
|
2014-10-26 19:45:33 +01:00
|
|
|
SCONESERVER_VERSION = 3b886c3dda6eda39bcb27472d29ed7fd3185ba1d
|
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
|
|
|
|
|
2013-05-14 02:34:32 +02:00
|
|
|
SCONESERVER_AUTORECONF = YES
|
2012-09-21 00:20:34 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += pcre
|
2015-04-19 14:40:00 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --with-ip --with-local --with-ip6
|
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)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += imagemagick host-pkgconf
|
|
|
|
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-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_CONF_OPTS += --without-sconesite-image
|
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)
|
2015-03-31 09:21:57 +02:00
|
|
|
SCONESERVER_DEPENDENCIES += gpsd
|
|
|
|
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))
|