polarssl: add missing version bump
[openwrt.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.8
12 PKG_RELEASE:=2
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:=d1a2b4f21727e888f143414d2e3144e6
18
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/polarssl/Default
25   SUBMENU:=SSL
26   TITLE:=Embedded SSL
27   URL:=http://polarssl.org/
28 endef
29
30 define Package/polarssl/Default/description
31 The aim of the PolarSSL project is to provide a quality, open-source
32 cryptographic library written in C and targeted at embedded systems.
33 endef
34
35 define Package/libpolarssl
36 $(call Package/polarssl/Default)
37   SECTION:=libs
38   CATEGORY:=Libraries
39   TITLE+= (library)
40   ABI_VERSION:=$(PKG_VERSION)
41 endef
42
43 define Package/libpolarssl/description
44 $(call Package/polarssl/Default/description)
45 This package contains the PolarSSL library.
46 endef
47
48 PKG_INSTALL:=1
49
50 CMAKE_OPTIONS += \
51         -DCMAKE_BUILD_TYPE:String="Release" \
52         -DUSE_SHARED_POLARSSL_LIBRARY:Bool=ON \
53         -DENABLE_TESTING:Bool=OFF \
54
55 define Build/InstallDev
56         $(INSTALL_DIR) $(1)/usr/include
57         $(CP) $(PKG_INSTALL_DIR)/usr/include/polarssl $(1)/usr/include/
58         $(INSTALL_DIR) $(1)/usr/lib
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpolarssl.so* $(1)/usr/lib/
60 endef
61
62 define Package/libpolarssl/install
63         $(INSTALL_DIR) $(1)/usr/lib
64         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpolarssl.so* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libpolarssl))