generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
94
package/sconeserver/Config.in
Normal file
94
package/sconeserver/Config.in
Normal file
@ -0,0 +1,94 @@
|
||||
menuconfig BR2_PACKAGE_SCONESERVER
|
||||
bool "sconeserver"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Sconeserver is a modular, object-orientated and extremely
|
||||
versatile network server framework for GNU/Linux and
|
||||
UNIX-like platforms.
|
||||
|
||||
http://www.sconemad.com/sconeserver/
|
||||
|
||||
if BR2_PACKAGE_SCONESERVER
|
||||
|
||||
comment "Sconeserver modules"
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_BLUETOOTH
|
||||
bool "bluetooth"
|
||||
depends on BR2_USE_WCHAR # bluez5_utils -> libglib2
|
||||
depends on BR2_USE_MMU # bluez5_utils -> dbus
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # bluez5_utils -> dbus, libglib2
|
||||
depends on !BR2_STATIC_LIBS # bluez5_utils
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # bluez5_utils
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # bluez5_utils
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS
|
||||
help
|
||||
Bluetooth module for Sconeserver
|
||||
|
||||
comment "bluetooth support needs a toolchain w/ wchar, threads, dynamic library, headers >= 3.4"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_EXAMPLES
|
||||
bool "examples"
|
||||
help
|
||||
Example modules for Sconeserver
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE
|
||||
bool "http::sconesite"
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
help
|
||||
http::sconesite module for Sconeserver
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_LOCATION
|
||||
bool "location"
|
||||
depends on BR2_USE_MMU # gpsd
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # gpsd
|
||||
depends on !BR2_STATIC_LIBS # gpsd
|
||||
select BR2_PACKAGE_GPSD
|
||||
help
|
||||
Location module for Sconeserver
|
||||
|
||||
comment "location support needs a toolchain w/ theads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_MATHS
|
||||
bool "maths"
|
||||
select BR2_PACKAGE_MPFR
|
||||
help
|
||||
Mathematics module for Sconeserver
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_MYSQL
|
||||
bool "mysql"
|
||||
depends on BR2_USE_MMU # mysql
|
||||
select BR2_PACKAGE_MYSQL
|
||||
help
|
||||
MySQL module for Sconeserver
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_RSS
|
||||
bool "rss"
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
help
|
||||
RSS module for Sconeserver
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_SQLITE
|
||||
bool "sqlite"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
SQLite module for Sconeserver
|
||||
|
||||
config BR2_PACKAGE_SCONESERVER_TESTBUILDER
|
||||
bool "testbuilder"
|
||||
help
|
||||
Testbuilder module for Sconeserver
|
||||
|
||||
endif # BR2_PACKAGE_SCONESERVER
|
||||
|
||||
comment "sconeserver needs a toolchain with dynamic library, C++, NPTL"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
|
||||
|| BR2_STATIC_LIBS
|
||||
3
package/sconeserver/sconeserver.hash
Normal file
3
package/sconeserver/sconeserver.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 47552b20579678e49150abe071d9eb55cf23bd13f7f6e4fa085d0612bf6a3431 sconeserver-8d1935919a2013358993a8e9dfa992cbde56e503.tar.gz
|
||||
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
|
||||
92
package/sconeserver/sconeserver.mk
Normal file
92
package/sconeserver/sconeserver.mk
Normal file
@ -0,0 +1,92 @@
|
||||
################################################################################
|
||||
#
|
||||
# sconeserver
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SCONESERVER_VERSION = 8d1935919a2013358993a8e9dfa992cbde56e503
|
||||
SCONESERVER_SITE = $(call github,sconemad,sconeserver,$(SCONESERVER_VERSION))
|
||||
SCONESERVER_LICENSE = GPL-2.0+
|
||||
SCONESERVER_LICENSE_FILES = COPYING
|
||||
SCONESERVER_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_PCRE),pcre) \
|
||||
zlib
|
||||
# disable image as it fails to build with ImageMagick
|
||||
# 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 += \
|
||||
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
|
||||
-DWITH_IMAGE=OFF \
|
||||
-DWITH_MARKDOWN=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
SCONESERVER_DEPENDENCIES += openssl
|
||||
SCONESERVER_CONF_OPTS += -DWITH_SSL=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_SSL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_BLUETOOTH),y)
|
||||
SCONESERVER_DEPENDENCIES += bluez5_utils
|
||||
SCONESERVER_CONF_OPTS += -DWITH_BLUETOOTH=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_BLUETOOTH=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_EXAMPLES),y)
|
||||
SCONESERVER_CONF_OPTS += -DWITH_EXAMPLES=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_EXAMPLES=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE),y)
|
||||
SCONESERVER_DEPENDENCIES += libxml2
|
||||
SCONESERVER_CONF_OPTS += -DWITH_SCONESITE=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_SCONESITE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_LOCATION),y)
|
||||
SCONESERVER_DEPENDENCIES += gpsd
|
||||
SCONESERVER_CONF_OPTS += -DWITH_LOCATION=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_LOCATION=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_MATHS),y)
|
||||
SCONESERVER_DEPENDENCIES += mpfr
|
||||
SCONESERVER_CONF_OPTS += -DWITH_MATHS=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_MATHS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y)
|
||||
SCONESERVER_DEPENDENCIES += mysql
|
||||
SCONESERVER_CONF_OPTS += -DWITH_MYSQL=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_MYSQL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_RSS),y)
|
||||
SCONESERVER_DEPENDENCIES += libxml2
|
||||
SCONESERVER_CONF_OPTS += -DWITH_RSS=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_RSS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_SQLITE),y)
|
||||
SCONESERVER_DEPENDENCIES += sqlite
|
||||
SCONESERVER_CONF_OPTS += -DWITH_SQLITE=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_SQLITE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_TESTBUILDER),y)
|
||||
SCONESERVER_CONF_OPTS += -DWITH_TESTBUILDER=ON
|
||||
else
|
||||
SCONESERVER_CONF_OPTS += -DWITH_TESTBUILDER=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user