package/cppcms: libgcrypt is optional, not mandatory

If libgcrypt (or openssl) is not enabled, aes_encryptor is disabled

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2022-04-03 17:46:10 +02:00 committed by Yann E. MORIN
parent f413bf2c64
commit 32045a73a3
2 changed files with 8 additions and 3 deletions

View File

@ -1,12 +1,10 @@
config BR2_PACKAGE_CPPCMS
bool "cppcms"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on !BR2_STATIC_LIBS # dlopen()
depends on BR2_USE_WCHAR
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_LIBGCRYPT
help
CppCMS is a Free High Performance Web Development Framework
(not a CMS) aimed for Rapid Web Application Development. It

View File

@ -18,7 +18,7 @@ CPPCMS_CONF_OPTS = \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_CXX_FLAGS="$(CPPCMS_CXXFLAGS)"
CPPCMS_DEPENDENCIES = pcre libgcrypt
CPPCMS_DEPENDENCIES = pcre
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=OFF
@ -28,6 +28,13 @@ 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_ZLIB),y)
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=OFF
CPPCMS_DEPENDENCIES += zlib