2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2011-10-04 16:02:03 +08:00
|
|
|
#
|
|
|
|
# poco
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-06-06 07:53:25 +08:00
|
|
|
|
2016-04-06 04:40:26 +08:00
|
|
|
POCO_VERSION = poco-1.7.2-release
|
2015-08-04 17:57:27 +08:00
|
|
|
POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION))
|
2012-08-01 12:48:57 +08:00
|
|
|
POCO_LICENSE = Boost-v1.0
|
|
|
|
POCO_LICENSE_FILES = LICENSE
|
2011-10-04 16:02:03 +08:00
|
|
|
POCO_INSTALL_STAGING = YES
|
2016-04-06 04:40:27 +08:00
|
|
|
POCO_PATCH = https://github.com/pocoproject/poco/commit/30159aea4b3f6421da9d74a8bf22aad6d3bf26b4.patch
|
2011-10-04 16:02:03 +08: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 14:24:35 +08:00
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_MYSQL),mysql)
|
2011-10-04 16:02:03 +08:00
|
|
|
|
|
|
|
POCO_OMIT = Data/ODBC PageCompiler \
|
|
|
|
$(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) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA),,Data) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_MYSQL),,Data/MySQL) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_SQLITE),,Data/SQLite)
|
|
|
|
|
|
|
|
ifeq ($(LIBC),uclibc)
|
2014-09-28 03:32:44 +08:00
|
|
|
POCO_CONF_OPTS += --no-fpenvironment --no-wstring
|
2011-10-04 16:02:03 +08:00
|
|
|
endif
|
|
|
|
|
2014-01-26 03:49:11 +08:00
|
|
|
# architectures missing some FE_* in their fenv.h
|
|
|
|
ifeq ($(BR2_sh4a)$(BR2_nios2),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
POCO_CONF_OPTS += --no-fpenvironment
|
2013-11-26 00:47:28 +08:00
|
|
|
endif
|
|
|
|
|
2016-04-06 04:40:26 +08: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 16:02:03 +08:00
|
|
|
define POCO_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); ./configure \
|
2015-08-04 17:57:27 +08:00
|
|
|
--config=Linux \
|
2011-10-04 16:02:03 +08:00
|
|
|
--prefix=/usr \
|
|
|
|
--omit="$(POCO_OMIT)" \
|
2014-09-28 03:32:44 +08:00
|
|
|
$(POCO_CONF_OPTS) \
|
2011-10-04 16:02:03 +08:00
|
|
|
--unbundled \
|
|
|
|
--no-tests \
|
|
|
|
--no-samples)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_BUILD_CMDS
|
2016-04-06 04:40:26 +08:00
|
|
|
$(MAKE) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
|
2011-10-09 05:06:43 +08:00
|
|
|
MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
|
2016-04-06 04:40:26 +08:00
|
|
|
MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \
|
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_STAGING_CMDS
|
2016-04-06 04:40:26 +08:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
|
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_TARGET_CMDS
|
2016-04-06 04:40:26 +08:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
|
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(generic-package))
|