rabbitmq-server: security bump to version 3.6.6
[buildroot-gz.git] / package / poco / poco.mk
blob4b82c500a59e741fcc170041bb15a0e8358745f6
1 ################################################################################
3 # poco
5 ################################################################################
7 POCO_VERSION = poco-1.7.2-release
8 POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION))
9 POCO_LICENSE = Boost-v1.0
10 POCO_LICENSE_FILES = LICENSE
11 POCO_INSTALL_STAGING = YES
12 POCO_PATCH = https://github.com/pocoproject/poco/commit/30159aea4b3f6421da9d74a8bf22aad6d3bf26b4.patch
14 POCO_DEPENDENCIES = zlib pcre \
15 $(if $(BR2_PACKAGE_POCO_XML),expat) \
16 $(if $(BR2_PACKAGE_POCO_CRYPTO),openssl) \
17 $(if $(BR2_PACKAGE_POCO_NETSSL_OPENSSL),openssl) \
18 $(if $(BR2_PACKAGE_POCO_DATA_SQLITE),sqlite) \
19 $(if $(BR2_PACKAGE_POCO_DATA_MYSQL),mysql)
21 POCO_OMIT = Data/ODBC PageCompiler \
22 $(if $(BR2_PACKAGE_POCO_XML),,XML) \
23 $(if $(BR2_PACKAGE_POCO_UTIL),,Util) \
24 $(if $(BR2_PACKAGE_POCO_NET),,Net) \
25 $(if $(BR2_PACKAGE_POCO_NETSSL_OPENSSL),,NetSSL_OpenSSL) \
26 $(if $(BR2_PACKAGE_POCO_CRYPTO),,Crypto) \
27 $(if $(BR2_PACKAGE_POCO_ZIP),,Zip) \
28 $(if $(BR2_PACKAGE_POCO_DATA),,Data) \
29 $(if $(BR2_PACKAGE_POCO_DATA_MYSQL),,Data/MySQL) \
30 $(if $(BR2_PACKAGE_POCO_DATA_SQLITE),,Data/SQLite)
32 ifeq ($(LIBC),uclibc)
33 POCO_CONF_OPTS += --no-fpenvironment --no-wstring
34 endif
36 # architectures missing some FE_* in their fenv.h
37 ifeq ($(BR2_sh4a)$(BR2_nios2),y)
38 POCO_CONF_OPTS += --no-fpenvironment
39 endif
41 ifeq ($(BR2_STATIC_LIBS),y)
42 POCO_MAKE_TARGET = static_release
43 else ifeq ($(BR2_SHARED_LIBS),y)
44 POCO_MAKE_TARGET = shared_release
45 else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
46 POCO_MAKE_TARGET = all_release
47 endif
49 define POCO_CONFIGURE_CMDS
50 (cd $(@D); $(TARGET_MAKE_ENV) ./configure \
51 --config=Linux \
52 --prefix=/usr \
53 --omit="$(POCO_OMIT)" \
54 $(POCO_CONF_OPTS) \
55 --unbundled \
56 --no-tests \
57 --no-samples)
58 endef
60 define POCO_BUILD_CMDS
61 $(TARGET_MAKE_ENV) $(MAKE) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
62 MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
63 MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \
64 DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D)
65 endef
67 define POCO_INSTALL_STAGING_CMDS
68 $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
69 DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
70 endef
72 define POCO_INSTALL_TARGET_CMDS
73 $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
74 DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
75 endef
77 $(eval $(generic-package))