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
|
|
|
|
2016-04-05 22:40:26 +02:00
|
|
|
POCO_VERSION = poco-1.7.2-release
|
2015-08-04 11:57:27 +02:00
|
|
|
POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION))
|
2012-08-01 06:48:57 +02:00
|
|
|
POCO_LICENSE = Boost-v1.0
|
|
|
|
POCO_LICENSE_FILES = LICENSE
|
2011-10-04 10:02:03 +02:00
|
|
|
POCO_INSTALL_STAGING = YES
|
2016-04-05 22:40:27 +02:00
|
|
|
POCO_PATCH = https://github.com/pocoproject/poco/commit/30159aea4b3f6421da9d74a8bf22aad6d3bf26b4.patch
|
2011-10-04 10:02:03 +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
|
|
|
|
|
|
|
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-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
|
|
|
|
|
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 \
|
2015-08-04 11:57:27 +02:00
|
|
|
--config=Linux \
|
2011-10-04 10:02:03 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--omit="$(POCO_OMIT)" \
|
2014-09-27 21:32:44 +02:00
|
|
|
$(POCO_CONF_OPTS) \
|
2011-10-04 10:02:03 +02:00
|
|
|
--unbundled \
|
|
|
|
--no-tests \
|
|
|
|
--no-samples)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_BUILD_CMDS
|
2016-10-17 18:05:49 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) 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))
|