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
|
|
|
|
2015-08-04 11:57:27 +02:00
|
|
|
POCO_VERSION = poco-1.6.1-release
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-10-04 10:02:03 +02:00
|
|
|
define POCO_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); ./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
|
2015-08-04 11:57:27 +02:00
|
|
|
$(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
|
2011-10-08 23:06:43 +02:00
|
|
|
MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
|
|
|
|
MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql -C $(@D)
|
2011-10-04 10:02:03 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_STAGING_CMDS
|
2012-09-17 21:18:06 +02:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D)
|
2011-10-04 10:02:03 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_TARGET_CMDS
|
2012-09-17 21:18:06 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D)
|
2011-10-04 10:02:03 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|