7f9a4522961c707f4f9914552d3ce2c139141303
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cppcms / cppcms.mk
1 ################################################################################
2 #
3 # cppcms
4 #
5 ################################################################################
6
7 CPPCMS_VERSION = 1.0.4
8 CPPCMS_SOURCE = cppcms-$(CPPCMS_VERSION).tar.bz2
9 CPPCMS_LICENSE = LGPLv3
10 CPPCMS_LICENSE_FILES = COPYING.TXT
11 CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
12 CPPCMS_INSTALL_STAGING = YES
13
14 CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
15
16 ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
17 CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON
18 CPPCMS_DEPENDENCIES += icu
19 endif
20
21 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
22 # posix backend needs monetary.h which isn't available on uClibc
23 CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on
24 endif
25
26 # We copy cppcms_tmpl_cc from staging to host because this file can be
27 # needed for compiling packages using cppcms. And it is not worth
28 # creating a host package just for a python script.
29 define CPPCMS_INSTALL_HOST_TOOLS
30         cp $(STAGING_DIR)/usr/bin/cppcms_tmpl_cc $(HOST_DIR)/usr/bin/cppcms_tmpl_cc
31 endef
32 CPPCMS_POST_INSTALL_STAGING_HOOKS += CPPCMS_INSTALL_HOST_TOOLS
33
34 $(eval $(cmake-package))