remove empty directories
[packages.git] / libs / poco / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=poco
11 PKG_VERSION:=1.3.6p2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/poco/sources/poco-1.3.6
16 PKG_MD5SUM:=32d154ca5f34d20217c0baaffa432c1c
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/poco
23   NAME:=poco
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=Poco C++ libraries
27   URL:=http://www.pocoproject.org/
28   DEPENDS:=+libstdcpp +libpthread +librt
29 endef
30
31 define Package/poco/description
32   Modern, powerful open source C++ class libraries and frameworks for building
33   network- and internet-based applications that run on desktop, server and
34   embedded systems.
35 endef
36
37 CONFIGURE_ARGS += \
38         --config=Linux \
39         --no-tests \
40         --no-samples \
41         --no-fpenvironment \
42         --no-sharedmemory \
43         --no-wstring
44
45 MAKE_FLAGS += \
46         CXXFLAGS32="$(TARGET_CXXFLAGS)" \
47         CFLAGS32="$(TARGET_CFLAGS)" \
48         LINKFLAGS32="$(TARGET_LDFLAGS)"
49
50 define Package/poco/install
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,Net,Util}.so* $(1)/usr/lib/
53 endef
54
55 define Build/InstallDev
56         $(INSTALL_DIR) $(1)/usr/include
57         $(CP) -r $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
58
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,Net,Util}.so* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,poco))