2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-04 10:02:03 +02:00
|
|
|
#
|
|
|
|
# poco
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2018-01-17 10:15:00 +01:00
|
|
|
POCO_VERSION = poco-1.8.1-release
|
2015-08-04 11:57:27 +02:00
|
|
|
POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION))
|
2017-03-30 15:43:46 +02:00
|
|
|
POCO_LICENSE = BSL-1.0
|
2012-08-01 06:48:57 +02:00
|
|
|
POCO_LICENSE_FILES = LICENSE
|
2011-10-04 10:02:03 +02:00
|
|
|
POCO_INSTALL_STAGING = YES
|
|
|
|
|
2017-04-21 17:24:48 +02:00
|
|
|
POCO_DEPENDENCIES = zlib pcre \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_XML),expat) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_CRYPTO),openssl) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_NETSSL_OPENSSL),openssl) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_SQLITE),sqlite) \
|
2014-01-22 07:24:35 +01:00
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_MYSQL),mysql)
|
2011-10-04 10:02:03 +02:00
|
|
|
|
2017-04-21 17:24:48 +02:00
|
|
|
POCO_OMIT = Data/ODBC PageCompiler \
|
2018-02-15 14:32:35 +01:00
|
|
|
$(if $(BR2_PACKAGE_POCO_JSON),,JSON) \
|
2017-04-21 17:24:48 +02:00
|
|
|
$(if $(BR2_PACKAGE_POCO_XML),,XML) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_UTIL),,Util) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_NET),,Net) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_NETSSL_OPENSSL),,NetSSL_OpenSSL) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_CRYPTO),,Crypto) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_ZIP),,Zip) \
|
2018-02-15 14:32:35 +01:00
|
|
|
$(if $(BR2_PACKAGE_POCO_CPP_PARSER),,CppParser) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_PDF),,PDF) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_REDIS),,Redis) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_MONGODB),,MongoDB) \
|
2017-04-21 17:24:48 +02:00
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA),,Data) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_MYSQL),,Data/MySQL) \
|
2011-10-04 10:02:03 +02:00
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_SQLITE),,Data/SQLite)
|
|
|
|
|
2017-09-17 19:58:18 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POCO_CONF_OPTS += --no-fpenvironment --no-wstring
|
2011-10-04 10:02:03 +02:00
|
|
|
endif
|
|
|
|
|
2014-01-25 20:49:11 +01:00
|
|
|
# architectures missing some FE_* in their fenv.h
|
|
|
|
ifeq ($(BR2_sh4a)$(BR2_nios2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POCO_CONF_OPTS += --no-fpenvironment
|
2013-11-25 17:47:28 +01:00
|
|
|
endif
|
|
|
|
|
2018-10-10 10:22:14 +02:00
|
|
|
# disable fpenvironment for soft floating point configuration
|
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
POCO_CONF_OPTS += --no-fpenvironment
|
|
|
|
endif
|
|
|
|
|
2016-04-05 22:40:26 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
POCO_MAKE_TARGET = static_release
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
POCO_MAKE_TARGET = shared_release
|
|
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
POCO_MAKE_TARGET = all_release
|
|
|
|
endif
|
|
|
|
|
2011-10-04 10:02:03 +02:00
|
|
|
define POCO_CONFIGURE_CMDS
|
2016-10-17 18:05:49 +02:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) ./configure \
|
2017-04-21 17:24:48 +02:00
|
|
|
--config=Linux \
|
|
|
|
--prefix=/usr \
|
|
|
|
--omit="$(POCO_OMIT)" \
|
|
|
|
$(POCO_CONF_OPTS) \
|
|
|
|
--unbundled \
|
|
|
|
--no-tests \
|
2011-10-04 10:02:03 +02:00
|
|
|
--no-samples)
|
|
|
|
endef
|
|
|
|
|
2017-01-20 19:18:54 +01:00
|
|
|
# Use $(MAKE1) to avoid failures on heavilly parallel machines (e.g. -j25)
|
2011-10-04 10:02:03 +02:00
|
|
|
define POCO_BUILD_CMDS
|
2017-01-20 19:18:54 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
|
2011-10-08 23:06:43 +02:00
|
|
|
MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
|
2016-04-05 22:40:26 +02:00
|
|
|
MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \
|
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D)
|
2011-10-04 10:02:03 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_STAGING_CMDS
|
2016-10-17 18:05:49 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
|
2016-04-05 22:40:26 +02:00
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
|
2011-10-04 10:02:03 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_TARGET_CMDS
|
2016-10-17 18:05:49 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
|
2016-04-05 22:40:26 +02:00
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
|
2011-10-04 10:02:03 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|