2013-07-11 13:42:48 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cppcms
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-04-03 17:46:12 +02:00
|
|
|
CPPCMS_VERSION = 2.0.0-beta2
|
|
|
|
CPPCMS_SOURCE = cppcms-$(subst -,.,$(CPPCMS_VERSION)).tar.bz2
|
2018-09-18 23:34:04 +02:00
|
|
|
CPPCMS_LICENSE = MIT, BSL-1.0 (boost), Public Domain (json2.js), Zlib (md5)
|
|
|
|
CPPCMS_LICENSE_FILES = COPYING.TXT MIT.TXT THIRD_PARTY_SOFTWARE.TXT
|
2013-07-11 13:42:48 +02:00
|
|
|
CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
|
|
|
|
CPPCMS_INSTALL_STAGING = YES
|
2017-07-22 22:24:26 +02:00
|
|
|
CPPCMS_CXXFLAGS = $(TARGET_CXXFLAGS)
|
2013-07-11 13:42:48 +02:00
|
|
|
|
2017-05-17 23:53:21 +02:00
|
|
|
# disable rpath to avoid getting /usr/lib added to the link search
|
|
|
|
# path
|
2017-07-22 22:24:26 +02:00
|
|
|
CPPCMS_CONF_OPTS = \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(CPPCMS_CXXFLAGS)"
|
2017-05-17 23:53:21 +02:00
|
|
|
|
2022-04-03 17:46:12 +02:00
|
|
|
CPPCMS_DEPENDENCIES = host-python3 pcre
|
2013-07-11 13:42:48 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
|
2017-07-25 20:41:22 +02:00
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=OFF
|
2013-07-11 13:42:48 +02:00
|
|
|
CPPCMS_DEPENDENCIES += icu
|
2017-07-22 22:24:26 +02:00
|
|
|
CPPCMS_CXXFLAGS += "`$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
|
2017-07-25 20:41:22 +02:00
|
|
|
else
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=ON
|
2013-07-11 13:42:48 +02:00
|
|
|
endif
|
|
|
|
|
2022-04-03 17:46:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_GCRYPT=OFF
|
|
|
|
CPPCMS_DEPENDENCIES += libgcrypt
|
|
|
|
else
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_GCRYPT=ON
|
|
|
|
endif
|
|
|
|
|
2022-04-03 17:46:11 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_OPENSSL=OFF
|
|
|
|
CPPCMS_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_OPENSSL=ON
|
|
|
|
endif
|
|
|
|
|
2022-04-03 17:46:09 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=OFF
|
|
|
|
CPPCMS_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=ON
|
|
|
|
endif
|
|
|
|
|
2014-04-07 21:17:24 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
|
|
# posix backend needs monetary.h which isn't available on uClibc
|
2014-09-27 21:32:44 +02:00
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on
|
2014-04-07 21:17:24 +02:00
|
|
|
endif
|
|
|
|
|
2013-07-11 13:42:48 +02:00
|
|
|
# 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
|
2017-07-05 13:14:19 +02:00
|
|
|
cp $(STAGING_DIR)/usr/bin/cppcms_tmpl_cc $(HOST_DIR)/bin/cppcms_tmpl_cc
|
2013-07-11 13:42:48 +02:00
|
|
|
endef
|
|
|
|
CPPCMS_POST_INSTALL_STAGING_HOOKS += CPPCMS_INSTALL_HOST_TOOLS
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|