Merge pull request #4853 from StevenHessing/noddos
[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.7.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://pocoproject.org/releases/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_HASH:=17783e30f5ef9c852544ac0e9d1fd316c4804317026059a9d6aad798b61c77f8
18
19 PKG_LICENSE:=BSL-1.0
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/poco
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Poco C++ libraries
30 URL:=http://www.pocoproject.org/
31 DEPENDS:=+libstdcpp +libpthread +librt
32 MAINTAINER:=Jean-Michel Julien <jean-michel.julien@trilliantinc.com>
33 endef
34
35 define Package/poco/description
36 POrtable COmponents, a modern and powerful open source C++ class libraries
37 and frameworks for building network and internet-based applications that
38 run on desktop, server and embedded systems.
39 endef
40
41 CONFIGURE_ARGS += \
42 --config=Linux \
43 --no-tests \
44 --no-samples \
45 --no-fpenvironment \
46 --no-sharedmemory \
47 --no-wstring \
48 --poquito \
49 --minimal \
50 --shared
51
52 define Package/poco/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util}.so* $(1)/usr/lib/
55 endef
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
60
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util}.so* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,poco))