generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
43
package/cppcms/Config.in
Normal file
43
package/cppcms/Config.in
Normal file
@ -0,0 +1,43 @@
|
||||
config BR2_PACKAGE_CPPCMS
|
||||
bool "cppcms"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_PCRE
|
||||
help
|
||||
CppCMS is a Free High Performance Web Development Framework
|
||||
(not a CMS) aimed for Rapid Web Application Development. It
|
||||
differs from most of other web development frameworks like:
|
||||
Python Django or Java Servlets on the following aspects:
|
||||
|
||||
- It is designed and tuned to handle extremely high loads.
|
||||
- It uses modern C++ as primary development language in
|
||||
order to achieve the above goal.
|
||||
- It is aimed on development of both Web Sites and Web
|
||||
Services.
|
||||
|
||||
http://cppcms.com
|
||||
|
||||
if BR2_PACKAGE_CPPCMS
|
||||
|
||||
config BR2_PACKAGE_CPPCMS_ICU
|
||||
bool "enable icu support"
|
||||
depends on !BR2_BINFMT_FLAT # icu
|
||||
depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
|
||||
select BR2_PACKAGE_ICU
|
||||
help
|
||||
Using ICU allows advanced localization features into CppCMS,
|
||||
in another hand ICU is heavier than iconv.
|
||||
|
||||
comment "icu support needs a toolchain w/ gcc >= 4.9, host gcc >= 4.9"
|
||||
depends on !BR2_BINFMT_FLAT
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_4_9
|
||||
|
||||
endif
|
||||
|
||||
comment "cppcms needs a toolchain w/ C++, NPTL, wchar, dynamic library"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
8
package/cppcms/cppcms.hash
Normal file
8
package/cppcms/cppcms.hash
Normal file
@ -0,0 +1,8 @@
|
||||
# From http://sourceforge.net/projects/cppcms/files/cppcms/2.0.0-beta2/
|
||||
sha1 746cc5e3f58565d91d9ded6e2616399d60e9d01d cppcms-2.0.0.beta2.tar.bz2
|
||||
md5 ef561d13ee92d2053151cab073feba10 cppcms-2.0.0.beta2.tar.bz2
|
||||
# Locally computed:
|
||||
sha256 697031c7d141fdd215c6be5090b66e2106a63bb3e52f09ee8120e8efc6c08a21 cppcms-2.0.0.beta2.tar.bz2
|
||||
sha256 fb7c15ddf590037d4cd18ebd61148a2304b9243369d238a64f599182377e32db COPYING.TXT
|
||||
sha256 3e4012cc5950e05bedfdd2f00ceffe1ef71c46ac8c79f07e237ecb23c773f65f MIT.TXT
|
||||
sha256 d6ce062e5cf4f7e3c536d7d2fee84c882c45245f1848ed3162401f2b29fa2b4b THIRD_PARTY_SOFTWARE.TXT
|
||||
65
package/cppcms/cppcms.mk
Normal file
65
package/cppcms/cppcms.mk
Normal file
@ -0,0 +1,65 @@
|
||||
################################################################################
|
||||
#
|
||||
# cppcms
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CPPCMS_VERSION = 2.0.0-beta2
|
||||
CPPCMS_SOURCE = cppcms-$(subst -,.,$(CPPCMS_VERSION)).tar.bz2
|
||||
CPPCMS_LICENSE = MIT, BSL-1.0 (boost), Public Domain (json2.js), Zlib (md5)
|
||||
CPPCMS_LICENSE_FILES = COPYING.TXT MIT.TXT THIRD_PARTY_SOFTWARE.TXT
|
||||
CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
|
||||
CPPCMS_INSTALL_STAGING = YES
|
||||
CPPCMS_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
|
||||
# disable rpath to avoid getting /usr/lib added to the link search
|
||||
# path
|
||||
CPPCMS_CONF_OPTS = \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_CXX_FLAGS="$(CPPCMS_CXXFLAGS)"
|
||||
|
||||
CPPCMS_DEPENDENCIES = host-python3 pcre
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=OFF
|
||||
CPPCMS_DEPENDENCIES += icu
|
||||
CPPCMS_CXXFLAGS += "`$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
|
||||
else
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_GCRYPT=OFF
|
||||
CPPCMS_DEPENDENCIES += libgcrypt
|
||||
else
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_GCRYPT=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_OPENSSL=OFF
|
||||
CPPCMS_DEPENDENCIES += openssl
|
||||
else
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_OPENSSL=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=OFF
|
||||
CPPCMS_DEPENDENCIES += zlib
|
||||
else
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
# posix backend needs monetary.h which isn't available on uClibc
|
||||
CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on
|
||||
endif
|
||||
|
||||
# We copy cppcms_tmpl_cc from staging to host because this file can be
|
||||
# needed for compiling packages using cppcms. And it is not worth
|
||||
# creating a host package just for a python script.
|
||||
define CPPCMS_INSTALL_HOST_TOOLS
|
||||
cp $(STAGING_DIR)/usr/bin/cppcms_tmpl_cc $(HOST_DIR)/bin/cppcms_tmpl_cc
|
||||
endef
|
||||
CPPCMS_POST_INSTALL_STAGING_HOOKS += CPPCMS_INSTALL_HOST_TOOLS
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user