systemd: bump version to 233
[buildroot-gz.git] / package / poco / poco.mk
blob90dfb343404375d5e4b68324134d769ecdb261b5
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 # Use $(MAKE1) to avoid failures on heavilly parallel machines (e.g. -j25)
61 define POCO_BUILD_CMDS
62 $(TARGET_MAKE_ENV) $(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
63 MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
64 MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \
65 DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D)
66 endef
68 define POCO_INSTALL_STAGING_CMDS
69 $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
70 DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
71 endef
73 define POCO_INSTALL_TARGET_CMDS
74 $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
75 DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
76 endef
78 $(eval $(generic-package))