nmenegale | c176563 | 2013-07-11 13:42:48 +0200 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # cppcms |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Jerzy Grzegorek | 3f0b9a6 | 2013-09-03 12:55:25 +0200 | [diff] [blame] | 7 | CPPCMS_VERSION = 1.0.4 |
nmenegale | c176563 | 2013-07-11 13:42:48 +0200 | [diff] [blame] | 8 | CPPCMS_SOURCE = cppcms-$(CPPCMS_VERSION).tar.bz2 |
| 9 | CPPCMS_LICENSE = LGPLv3 |
Jerzy Grzegorek | 6cabf13 | 2013-08-02 10:57:31 +0200 | [diff] [blame] | 10 | CPPCMS_LICENSE_FILES = COPYING.TXT |
nmenegale | c176563 | 2013-07-11 13:42:48 +0200 | [diff] [blame] | 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) |
Thomas De Schampheleire | aaffd20 | 2014-09-27 21:32:44 +0200 | [diff] [blame^] | 17 | CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON |
nmenegale | c176563 | 2013-07-11 13:42:48 +0200 | [diff] [blame] | 18 | CPPCMS_DEPENDENCIES += icu |
| 19 | endif |
| 20 | |
Lucile Quirion | a518381 | 2014-04-07 15:17:24 -0400 | [diff] [blame] | 21 | ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) |
| 22 | # posix backend needs monetary.h which isn't available on uClibc |
Thomas De Schampheleire | aaffd20 | 2014-09-27 21:32:44 +0200 | [diff] [blame^] | 23 | CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on |
Lucile Quirion | a518381 | 2014-04-07 15:17:24 -0400 | [diff] [blame] | 24 | endif |
| 25 | |
nmenegale | c176563 | 2013-07-11 13:42:48 +0200 | [diff] [blame] | 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)) |