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
|
|
|
|
2013-03-13 06:15:49 +08:00
|
|
|
POCO_VERSION_MAJOR = 1.4.6
|
|
|
|
POCO_VERSION = $(POCO_VERSION_MAJOR)p1
|
2011-10-04 16:02:03 +08:00
|
|
|
POCO_SOURCE = poco-$(POCO_VERSION)-all.tar.gz
|
2012-08-26 07:52:48 +08:00
|
|
|
POCO_SITE = http://downloads.sourceforge.net/project/poco/sources/poco-$(POCO_VERSION_MAJOR)
|
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
|
|
|
|
|
|
|
|
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) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_MYSQL),mysql_client)
|
|
|
|
|
|
|
|
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)
|
|
|
|
POCO_CONF_OPT += --no-fpenvironment --no-wstring
|
|
|
|
endif
|
|
|
|
|
|
|
|
define POCO_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); ./configure \
|
|
|
|
--config=Linux-CrossEnv \
|
|
|
|
--prefix=/usr \
|
|
|
|
--omit="$(POCO_OMIT)" \
|
|
|
|
$(POCO_CONF_OPT) \
|
|
|
|
--unbundled \
|
|
|
|
--no-tests \
|
|
|
|
--no-samples)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_BUILD_CMDS
|
2012-09-18 03:18:06 +08:00
|
|
|
$(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSSENV=$(TARGET_CROSS) \
|
2011-10-09 05:06:43 +08:00
|
|
|
MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
|
|
|
|
MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_STAGING_CMDS
|
2012-09-18 03:18:06 +08:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_TARGET_CMDS
|
2012-09-18 03:18:06 +08:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(generic-package))
|