20e7f1cffe89a5a0a9c8a5defc607b05b8400b83
[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:=@SF/axtls 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 DEPENDS:=libgdbm
28 DESCRIPTION:=Embedded client/server TLSv1 SSL library.
29 URL:=http://sourceforge.net/projects/axtls
30 endef
31
32 define Package/awhttpd
33 SECTION:=net
34 CATEGORY:=Network
35 DEPENDS:=+libaxtls
36 TITLE:=Anti-Web webserver
37 DESCRIPTION:=Anti-Web webserver.
38 URL:=http://www.axtls.co.nr/
39 endef
40
41 define Build/Configure
42 $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
43 $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 CC="$(TARGET_CC)" \
49 OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS=""
50 endef
51
52 define Package/libaxtls/install
53 install -d -m0755 $(1)/usr/lib
54 install -m0755 $(PKG_BUILD_DIR)/libaxtls.so $(1)/usr/lib/
55 endef
56
57 define Package/awhttpd/install
58 install -d -m0755 $(1)/usr/sbin
59 install -m0755 $(PKG_BUILD_DIR)/awhttpd $(1)/usr/sbin/
60 endef
61
62 $(eval $(call BuildPackage,libaxtls))
63 $(eval $(call BuildPackage,awhttpd))