2013-07-11 13:42:48 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cppcms
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-08-28 23:31:06 +02:00
|
|
|
CPPCMS_VERSION = 1.0.5
|
2013-07-11 13:42:48 +02:00
|
|
|
CPPCMS_SOURCE = cppcms-$(CPPCMS_VERSION).tar.bz2
|
|
|
|
CPPCMS_LICENSE = LGPLv3
|
2013-08-02 10:57:31 +02:00
|
|
|
CPPCMS_LICENSE_FILES = COPYING.TXT
|
2013-07-11 13:42:48 +02:00
|
|
|
CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
|
|
|
|
CPPCMS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON
|
2013-07-11 13:42:48 +02:00
|
|
|
CPPCMS_DEPENDENCIES += icu
|
|
|
|
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
|
|
|
|
cp $(STAGING_DIR)/usr/bin/cppcms_tmpl_cc $(HOST_DIR)/usr/bin/cppcms_tmpl_cc
|
|
|
|
endef
|
|
|
|
CPPCMS_POST_INSTALL_STAGING_HOOKS += CPPCMS_INSTALL_HOST_TOOLS
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|