update axtls to v1.01
[openwrt/svn-archive/archive.git] / libs / axtls / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=axtls
12 PKG_VERSION:=1.01
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/axTLS
16 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.leroc.com.au/axTLS/
18 PKG_MD5SUM:=ff71cb64234cad020f92bffa534ab2b8
19 PKG_CAT:=zcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libaxtls
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Embedded client/server TLSv1 SSL library
27 DESCRIPTION:=Embedded client/server TLSv1 SSL library.
28 URL:=http://www.axtls.co.nr/
29 endef
30
31 define Package/awhttpd
32 SECTION:=net
33 CATEGORY:=Network
34 DEPENDS:=+libaxtls
35 TITLE:=Anti-Web webserver
36 DESCRIPTION:=Anti-Web webserver.
37 URL:=http://www.axtls.co.nr/
38 endef
39
40 define Build/Configure
41 $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
42 $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 CC="$(TARGET_CC)" \
48 OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS=""
49 endef
50
51 define Package/libaxtls/install
52 install -d -m0755 $(1)/usr/lib
53 install -m0755 $(PKG_BUILD_DIR)/libaxtls.so $(1)/usr/lib/
54 endef
55
56 define Package/awhttpd/install
57 install -d -m0755 $(1)/usr/sbin
58 install -m0755 $(PKG_BUILD_DIR)/awhttpd $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,libaxtls))
62 $(eval $(call BuildPackage,awhttpd))