polarssl: bump to 1.3.7
[openwrt/staging/lynxis/omap.git] / package / libs / polarssl / Makefile
1 #
2 # Copyright (C) 2011-2013 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:=polarssl
11 PKG_VERSION:=1.3.7
12 PKG_RELEASE:=1
13 PKG_USE_MIPS16:=0
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-gpl.tgz
16 PKG_SOURCE_URL:=https://polarssl.org/code/releases
17 PKG_MD5SUM:=b656e4c83ee94f93d19eb0832fd7f976
18
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/cmake.mk
21
22 define Package/polarssl/Default
23 SUBMENU:=SSL
24 TITLE:=Embedded SSL
25 URL:=http://polarssl.org/
26 endef
27
28 define Package/polarssl/Default/description
29 The aim of the PolarSSL project is to provide a quality, open-source
30 cryptographic library written in C and targeted at embedded systems.
31 endef
32
33 define Package/libpolarssl
34 $(call Package/polarssl/Default)
35 SECTION:=libs
36 CATEGORY:=Libraries
37 TITLE+= (library)
38 ABI_VERSION:=$(PKG_VERSION)
39 endef
40
41 define Package/libpolarssl/description
42 $(call Package/polarssl/Default/description)
43 This package contains the PolarSSL library.
44 endef
45
46 define Package/polarssl-progs
47 $(call Package/polarssl/Default)
48 SECTION:=utils
49 CATEGORY:=Utilities
50 DEPENDS:=+libpolarssl +libpthread
51 TITLE+= (programs)
52 endef
53
54 define Package/polarssl-progs/description
55 $(call Package/polarssl/Default/description)
56 This package contains the PolarSSL programs.
57 endef
58
59 PKG_INSTALL:=1
60
61 CMAKE_OPTIONS += \
62 -DCMAKE_BUILD_TYPE:String="Release" \
63 -DUSE_SHARED_POLARSSL_LIBRARY:Bool=ON \
64 -DENABLE_TESTING:Bool=OFF \
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/include
68 $(CP) $(PKG_INSTALL_DIR)/usr/include/polarssl $(1)/usr/include/
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpolarssl.so* $(1)/usr/lib/
71 endef
72
73 define Package/libpolarssl/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpolarssl.so* $(1)/usr/lib/
76 endef
77
78 define Package/polarssl-progs/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
81 endef
82
83 $(eval $(call BuildPackage,libpolarssl))
84 $(eval $(call BuildPackage,polarssl-progs))