contrib/lar: remove bitrot from lar.h
[project/luci.git] / contrib / axtls / Makefile
1 #
2 # Copyright (C) 2008 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.2.0
13 PKG_RELEASE:=2
14
15 PKG_BUILD_DIR=$(BUILD_DIR)/axTLS
16 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/axtls
18 PKG_MD5SUM:=af805c76c0da1dbfc0c5e6b8dbd6706a
19
20 include $(INCLUDE_DIR)/package.mk
21
22 # set to 1 to enable debugging
23 DEBUG=
24
25 define Package/libaxtls
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=axTLS embedded SSL library
29 endef
30
31 define Package/axhttpd
32   SUBMENU:=Web
33   SECTION:=net
34   CATEGORY:=Network
35   DEPENDS:=+libaxtls
36   TITLE:=axTLS embedded http/https server
37 endef
38
39 define Build/Configure
40         $(INSTALL_DIR) $(PKG_BUILD_DIR)/config
41         $(CP) ./files/axtls-config $(PKG_BUILD_DIR)/config/.config
42         $(CP) ./files/axtls-config.h $(PKG_BUILD_DIR)/config/config.h
43 endef
44
45 TARGET_CFLAGS += $(FPIC)
46
47 #define Build/Compile
48 #       $(MAKE) -C $(PKG_BUILD_DIR)
49 #endef
50
51 define Package/libaxtls/install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_BUILD_DIR)/_stage/libaxtls.so* $(1)/usr/lib/
54 endef
55
56 define Package/axhttpd/install
57         $(INSTALL_DIR) $(1)/usr/sbin
58         $(INSTALL_BIN) $(PKG_BUILD_DIR)/_stage/axhttpd $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,libaxtls))
62 $(eval $(call BuildPackage,axhttpd))