* luci/contrib: let operate axhttpd in nph mode
[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   SECTION:=net
33   CATEGORY:=Networking
34   DEPENDS:=+libaxtls
35   TITLE:=axTLS embedded http/https server
36 endef
37
38 define Build/Configure
39         $(INSTALL_DIR) $(PKG_BUILD_DIR)/config
40         $(CP) ./files/axtls-config $(PKG_BUILD_DIR)/config/.config
41         $(CP) ./files/axtls-config.h $(PKG_BUILD_DIR)/config/config.h
42 endef
43
44 TARGET_CFLAGS += $(FPIC)
45
46 #define Build/Compile
47 #       $(MAKE) -C $(PKG_BUILD_DIR)
48 #endef
49
50 define Package/libaxtls/install
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(CP) $(PKG_BUILD_DIR)/_stage/libaxtls.so* $(1)/usr/lib/
53 endef
54
55 define Package/axhttpd/install
56         $(INSTALL_DIR) $(1)/usr/sbin
57         $(INSTALL_BIN) $(PKG_BUILD_DIR)/_stage/axhttpd $(1)/usr/sbin/
58 endef
59
60 $(eval $(call BuildPackage,libaxtls))
61 $(eval $(call BuildPackage,axhttpd))