aaffd209fa
To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# cppcms
|
|
#
|
|
################################################################################
|
|
|
|
CPPCMS_VERSION = 1.0.4
|
|
CPPCMS_SOURCE = cppcms-$(CPPCMS_VERSION).tar.bz2
|
|
CPPCMS_LICENSE = LGPLv3
|
|
CPPCMS_LICENSE_FILES = COPYING.TXT
|
|
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)
|
|
CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON
|
|
CPPCMS_DEPENDENCIES += icu
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
# posix backend needs monetary.h which isn't available on uClibc
|
|
CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on
|
|
endif
|
|
|
|
# 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))
|