blob: 7f9a4522961c707f4f9914552d3ce2c139141303 [file] [log] [blame]
nmenegalec1765632013-07-11 13:42:48 +02001################################################################################
2#
3# cppcms
4#
5################################################################################
6
Jerzy Grzegorek3f0b9a62013-09-03 12:55:25 +02007CPPCMS_VERSION = 1.0.4
nmenegalec1765632013-07-11 13:42:48 +02008CPPCMS_SOURCE = cppcms-$(CPPCMS_VERSION).tar.bz2
9CPPCMS_LICENSE = LGPLv3
Jerzy Grzegorek6cabf132013-08-02 10:57:31 +020010CPPCMS_LICENSE_FILES = COPYING.TXT
nmenegalec1765632013-07-11 13:42:48 +020011CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
12CPPCMS_INSTALL_STAGING = YES
13
14CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
15
16ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
Thomas De Schampheleireaaffd202014-09-27 21:32:44 +020017CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON
nmenegalec1765632013-07-11 13:42:48 +020018CPPCMS_DEPENDENCIES += icu
19endif
20
Lucile Quiriona5183812014-04-07 15:17:24 -040021ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
22# posix backend needs monetary.h which isn't available on uClibc
Thomas De Schampheleireaaffd202014-09-27 21:32:44 +020023CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on
Lucile Quiriona5183812014-04-07 15:17:24 -040024endif
25
nmenegalec1765632013-07-11 13:42:48 +020026# 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.
29define CPPCMS_INSTALL_HOST_TOOLS
30 cp $(STAGING_DIR)/usr/bin/cppcms_tmpl_cc $(HOST_DIR)/usr/bin/cppcms_tmpl_cc
31endef
32CPPCMS_POST_INSTALL_STAGING_HOOKS += CPPCMS_INSTALL_HOST_TOOLS
33
34$(eval $(cmake-package))