source: packages/libs/polarssl/Makefile @ 29331

Last change on this file since 29331 was 29331, checked in by jow, 5 years ago

[packages] polarssl: update to v1.0.0, switch to cmake

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=polarssl
11PKG_VERSION:=1.0.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-gpl.tgz
15PKG_SOURCE_URL:=http://polarssl.org/code/releases
16PKG_MD5SUM:=9e0ef5090070ae95363f201851ca62f2
17
18include $(INCLUDE_DIR)/package.mk
19include $(INCLUDE_DIR)/cmake.mk
20
21define Package/polarssl/Default
22  SUBMENU:=SSL
23  TITLE:=Embedded SSL
24  URL:=http://polarssl.org/
25endef
26
27define Package/polarssl/Default/description
28The aim of the PolarSSL project is to provide a quality, open-source
29cryptographic library written in C and targeted at embedded systems.
30endef
31
32define Package/libpolarssl
33$(call Package/polarssl/Default)
34  SECTION:=libs
35  CATEGORY:=Libraries
36  TITLE+= (library)
37endef
38
39define Package/libpolarssl/description
40$(call Package/polarssl/Default/description)
41This package contains the PolarSSL library.
42endef
43
44define Package/polarssl-progs
45$(call Package/polarssl/Default)
46  SECTION:=utils
47  CATEGORY:=Utilities
48  DEPENDS:=+libpolarssl
49  TITLE+= (programs)
50endef
51
52define Package/polarssl-progs/description
53$(call Package/polarssl/Default/description)
54This package contains the PolarSSL programs.
55endef
56
57PKG_INSTALL:=1
58
59CMAKE_OPTIONS += \
60        -DCMAKE_BUILD_TYPE:String="Release" \
61        -DUSE_SHARED_POLARSSL_LIBRARY:Bool=ON \
62
63define Build/InstallDev
64        $(INSTALL_DIR) $(1)/usr/include
65        $(CP) $(PKG_INSTALL_DIR)/usr/include/polarssl $(1)/usr/include/
66        $(INSTALL_DIR) $(1)/usr/lib
67        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpolarssl.so* $(1)/usr/lib/
68endef
69
70define Package/libpolarssl/install
71        $(INSTALL_DIR) $(1)/usr/lib
72        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libpolarssl.so* $(1)/usr/lib/
73endef
74
75define Package/polarssl-progs/install
76        $(INSTALL_DIR) $(1)/usr/bin
77        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
78endef
79
80$(eval $(call BuildPackage,libpolarssl))
81$(eval $(call BuildPackage,polarssl-progs))
Note: See TracBrowser for help on using the repository browser.