poco: switch to building with cmake
[feed/packages.git] / libs / poco / Makefile
1 #
2 # Copyright (C) 2007-2016 OpenWrt.org
3 # Copyright (C) 2017 Daniel Engberg <daniel.engberg.lists@pyret.net>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=poco
12 PKG_VERSION:=1.11.0
13 PKG_RELEASE:=$(AUTORELEASE)
14
15 ifeq ($(BUILD_VARIANT),all)
16 _PKG_VERSION:=${PKG_VERSION}-all
17 PKG_HASH:=b08cf73926fa92a6c8f3c712e8fb217d5d0c2fa5248ec0281f251fe1e925d2f1
18 else
19 _PKG_VERSION:=${PKG_VERSION}
20 PKG_HASH:=06ddc4934ff0a11be425d697f861c15b43b77b610e3642a2f85d0c34d7425ea4
21 endif
22
23 PKG_SOURCE:=$(PKG_NAME)-$(_PKG_VERSION).tar.bz2
24 PKG_SOURCE_URL:=https://pocoproject.org/releases/$(PKG_NAME)-$(PKG_VERSION)
25 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(_PKG_VERSION)
26
27 PKG_MAINTAINER:=Jean-Michel Julien <jean-michel.julien@trilliantinc.com>
28 PKG_LICENSE:=BSL-1.0
29 PKG_LICENSE_FILES:=LICENSE
30 PKG_CPE_ID:=cpe:/a:pocoproject:poco
31
32 include $(INCLUDE_DIR)/package.mk
33 include $(INCLUDE_DIR)/cmake.mk
34
35 define Package/poco
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE:=Poco C++ libraries
39 URL:=https://www.pocoproject.org/
40 DEPENDS:=+libstdcpp +libpthread +librt @!arc
41 VARIANT:=minimal
42 endef
43
44 define Package/poco/description
45 POrtable COmponents, a modern and powerful open source C++ class libraries
46 and frameworks for building network and internet-based applications that
47 run on desktop, server and embedded systems.
48 endef
49
50 define Package/poco-all
51 $(call Package/poco)
52 SECTION:=libs
53 CATEGORY:=Libraries
54 TITLE+=(Complete Edition)
55 DEPENDS+=+libopenssl +libmariadb +libpq +unixodbc
56 VARIANT:=all
57 endef
58
59 define Package/poco-all/description
60 POrtable COmponents, a modern and powerful open source C++ class libraries
61 and frameworks for building network and internet-based applications that
62 run on desktop, server and embedded systems. The Complete Edition contains
63 all libraries.
64 endef
65
66 define Package/poco/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco*.so* $(1)/usr/lib/
69 endef
70
71 define Package/poco-all/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco*.so* $(1)/usr/lib/
74 endef
75
76 define Build/InstallDev
77 $(INSTALL_DIR) $(1)/usr/include
78 $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
79
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco*.so* $(1)/usr/lib/
82 endef
83
84
85 $(eval $(call BuildPackage,poco))
86 $(eval $(call BuildPackage,poco-all))