a42c59dba1
Also: * switch from sourceforge to github * remove hash (github-helper) * remove upstream applied patches * re-number remaining patches * add patch to fix build issue with `--bundled` config option [Thomas: really remove hash file, since we're fetching from Github.] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
66 lines
1.9 KiB
Makefile
66 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# poco
|
|
#
|
|
################################################################################
|
|
|
|
POCO_VERSION = poco-1.6.1-release
|
|
POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION))
|
|
POCO_LICENSE = Boost-v1.0
|
|
POCO_LICENSE_FILES = LICENSE
|
|
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)
|
|
|
|
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_OPTS += --no-fpenvironment --no-wstring
|
|
endif
|
|
|
|
# architectures missing some FE_* in their fenv.h
|
|
ifeq ($(BR2_sh4a)$(BR2_nios2),y)
|
|
POCO_CONF_OPTS += --no-fpenvironment
|
|
endif
|
|
|
|
define POCO_CONFIGURE_CMDS
|
|
(cd $(@D); ./configure \
|
|
--config=Linux \
|
|
--prefix=/usr \
|
|
--omit="$(POCO_OMIT)" \
|
|
$(POCO_CONF_OPTS) \
|
|
--unbundled \
|
|
--no-tests \
|
|
--no-samples)
|
|
endef
|
|
|
|
define POCO_BUILD_CMDS
|
|
$(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
|
|
MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
|
|
MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql -C $(@D)
|
|
endef
|
|
|
|
define POCO_INSTALL_STAGING_CMDS
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D)
|
|
endef
|
|
|
|
define POCO_INSTALL_TARGET_CMDS
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|