2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/axtls
16 PKG_MD5SUM:=4b7a6dafbe45357f63813410dae676fd
18 include $(INCLUDE_DIR)/package.mk
20 define Package/libaxtls
25 TITLE:=Embedded client/server TLSv1 SSL library
26 URL:=http://sourceforge.net/projects/axtls
29 define Package/axhttpd
33 TITLE:=A small embedded web server using the axTLS library
34 URL:=http://www.axtls.co.nr/
38 define Package/axtlswrap
43 TITLE:=A simple TLS/SSL wrapper using the axTLS library
44 URL:=http://sourceforge.net/projects/axtls
48 define Build/Configure
49 $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
50 $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
53 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
55 TARGET_CFLAGS += $(FPIC)
58 $(MAKE) -C $(PKG_BUILD_DIR) \
61 OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" \
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 PREFIX="$(PKG_INSTALL_DIR)/usr" \
68 define Build/InstallDev
69 $(INSTALL_DIR) $(1)/usr/include
70 $(CP) $(PKG_INSTALL_DIR)/usr/include/axTLS $(1)/usr/include/
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.{a,so*} $(1)/usr/lib/
76 define Package/libaxtls/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
81 define Package/axhttpd/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(CP) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
86 define Package/axtlswrap/install
87 $(INSTALL_DIR) $(1)/usr/sbin
88 $(INSTALL_BIN) $(PKG_BUILD_DIR)/_stage/axtlswrap $(1)/usr/sbin/
91 $(eval $(call BuildPackage,libaxtls))
92 $(eval $(call BuildPackage,axhttpd))
93 $(eval $(call BuildPackage,axtlswrap))