source: packages/libs/axtls/Makefile @ 21030

Last change on this file since 21030 was 21030, checked in by nico, 6 years ago

[packages] axtls: update to 1.2.4, add new axtlswrap (SSL/TLS wrapper)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1#
2# Copyright (C) 2006-2010 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:=axtls
11PKG_VERSION:=1.2.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/axtls
16PKG_MD5SUM:=4b7a6dafbe45357f63813410dae676fd
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/libaxtls
21  SUBMENU:=SSL
22  SECTION:=libs
23  CATEGORY:=Libraries
24  SUBMENU:=SSL
25  TITLE:=Embedded client/server TLSv1 SSL library
26  URL:=http://sourceforge.net/projects/axtls
27endef
28
29define Package/axhttpd
30  SUBMENU:=Web
31  SECTION:=net
32  CATEGORY:=Network
33  TITLE:=A small embedded web server using the axTLS library
34  URL:=http://www.axtls.co.nr/
35  DEPENDS:=+libaxtls
36endef
37
38define Package/axtlswrap
39  SUBMENU:=SSL
40  SECTION:=net
41  CATEGORY:=Network
42  SUBMENU:=Web
43  TITLE:=A simple TLS/SSL wrapper using the axTLS library
44  URL:=http://sourceforge.net/projects/axtls
45  DEPENDS:=+libaxtls
46endef
47
48define Build/Configure
49        $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
50        $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
51endef
52
53TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
54
55TARGET_CFLAGS += $(FPIC)
56
57define Build/Compile
58        $(MAKE) -C $(PKG_BUILD_DIR) \
59                CC="$(TARGET_CC)" \
60                STRIP="/bin/true" \
61                OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" \
62                all
63        $(MAKE) -C $(PKG_BUILD_DIR) \
64                PREFIX="$(PKG_INSTALL_DIR)/usr" \
65                install
66endef
67
68define Build/InstallDev
69        $(INSTALL_DIR) $(1)/usr/include
70        $(CP) $(PKG_INSTALL_DIR)/usr/include/axTLS $(1)/usr/include/
71
72        $(INSTALL_DIR) $(1)/usr/lib
73        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.{a,so*} $(1)/usr/lib/
74endef
75
76define Package/libaxtls/install
77        $(INSTALL_DIR) $(1)/usr/lib
78        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
79endef
80
81define Package/axhttpd/install
82        $(INSTALL_DIR) $(1)/usr/sbin
83        $(CP) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
84endef
85
86define Package/axtlswrap/install
87        $(INSTALL_DIR) $(1)/usr/sbin
88        $(INSTALL_BIN) $(PKG_BUILD_DIR)/_stage/axtlswrap $(1)/usr/sbin/
89endef
90
91$(eval $(call BuildPackage,libaxtls))
92$(eval $(call BuildPackage,axhttpd))
93$(eval $(call BuildPackage,axtlswrap))
Note: See TracBrowser for help on using the repository browser.