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
|
|
|
|
2020-07-01 01:34:33 +08:00
|
|
|
POCO_VERSION = 1.10.1
|
package: remove non-conventional prefix/suffix from github-fetched packages
On Github, a large number of projects name their tag
<some-prefix>-0.3-<some-suffix> (i.e release-3.0, poco-0.1-release,
etc.). In fact majority of the cased adressed in this commit concerns
prefixes.
In most packages, we encode those prefix/suffix in the <pkg>_VERSION
variable.
The problem with this approach is that when used in conjunction with
release-monitoring.org, it doesn't work very well, because
release-monitoring.org has the concept of "version prefix/suffix" and
using that they drop the prefix/suffix to really get the version. For
example on https://release-monitoring.org/project/5418/ the latest
release of "poco" is "1.8.1", not "poco-1.8.1-release".
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org.
Since really the version number of 1.8.1, is makes sense to update our
packages to drop these prefixes/suffixes.
This commit addreses the case of github-fetched packages with
non-conventional prefixes/suffixes.
Note that these changes modify the name of the files stored in DL_DIR,
which means that this will force a re-download of those package source
code for all users, and requires a change to their .hash file.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 14:42:08 +08:00
|
|
|
POCO_SITE = $(call github,pocoproject,poco,poco-$(POCO_VERSION)-release)
|
2017-03-30 21:43:46 +08:00
|
|
|
POCO_LICENSE = BSL-1.0
|
2012-08-01 12:48:57 +08:00
|
|
|
POCO_LICENSE_FILES = LICENSE
|
2011-10-04 16:02:03 +08:00
|
|
|
POCO_INSTALL_STAGING = YES
|
|
|
|
|
2017-04-21 23:24:48 +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
|
|
|
|
2020-07-01 01:34:35 +08:00
|
|
|
POCO_OMIT = Data/ODBC PageCompiler \
|
2018-02-15 21:32:35 +08:00
|
|
|
$(if $(BR2_PACKAGE_POCO_JSON),,JSON) \
|
2017-04-21 23:24:48 +08:00
|
|
|
$(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) \
|
2018-02-15 21:32:35 +08:00
|
|
|
$(if $(BR2_PACKAGE_POCO_CPP_PARSER),,CppParser) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_PDF),,PDF) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_REDIS),,Redis) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_MONGODB),,MongoDB) \
|
2017-04-21 23:24:48 +08:00
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA),,Data) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_MYSQL),,Data/MySQL) \
|
2020-07-01 01:34:35 +08:00
|
|
|
$(if $(BR2_PACKAGE_POCO_DATA_SQLITE),,Data/SQLite) \
|
|
|
|
$(if $(BR2_PACKAGE_POCO_JWT),,JWT)
|
2011-10-04 16:02:03 +08:00
|
|
|
|
2017-09-18 01:58:18 +08:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
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
|
|
|
|
|
2018-10-10 16:22:14 +08:00
|
|
|
# disable fpenvironment for soft floating point configuration
|
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
POCO_CONF_OPTS += --no-fpenvironment
|
|
|
|
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
|
2016-10-18 00:05:49 +08:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) ./configure \
|
2017-04-21 23:24:48 +08:00
|
|
|
--config=Linux \
|
|
|
|
--prefix=/usr \
|
2020-07-01 01:34:33 +08:00
|
|
|
--cflags=-std=c++14 \
|
2017-04-21 23:24:48 +08:00
|
|
|
--omit="$(POCO_OMIT)" \
|
|
|
|
$(POCO_CONF_OPTS) \
|
|
|
|
--unbundled \
|
|
|
|
--no-tests \
|
2011-10-04 16:02:03 +08:00
|
|
|
--no-samples)
|
|
|
|
endef
|
|
|
|
|
2017-01-21 02:18:54 +08:00
|
|
|
# Use $(MAKE1) to avoid failures on heavilly parallel machines (e.g. -j25)
|
2011-10-04 16:02:03 +08:00
|
|
|
define POCO_BUILD_CMDS
|
2017-01-21 02:18:54 +08:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) 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-10-18 00:05:49 +08:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
|
2016-04-06 04:40:26 +08:00
|
|
|
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
|
2011-10-04 16:02:03 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define POCO_INSTALL_TARGET_CMDS
|
2016-10-18 00:05:49 +08:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
|
2016-04-06 04:40:26 +08:00
|
|
|
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))
|