enable linux framebuffer support for SDL
[openwrt/svn-archive/archive.git] / libs / axtls / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=axtls
11 PKG_VERSION:=1.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/axtls
16 PKG_MD5SUM:=03471b5a5874e2ce86025f24b3fa0958
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libaxtls
21 SECTION:=libs
22 CATEGORY:=Libraries
23 SUBMENU:=SSL
24 TITLE:=Embedded client/server TLSv1 SSL library
25 URL:=http://sourceforge.net/projects/axtls
26 endef
27
28 define Package/axhttpd
29 SECTION:=net
30 CATEGORY:=Network
31 SUBMENU:=Web
32 DEPENDS:=+libaxtls
33 TITLE:=A small embedded web server using the axTLS library
34 URL:=http://www.axtls.co.nr/
35 endef
36
37 define Build/Configure
38 $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
39 $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
40 endef
41
42 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
43
44 TARGET_CFLAGS += $(FPIC)
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 CC="$(TARGET_CC)" \
49 STRIP="/bin/true" \
50 OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" \
51 all
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 PREFIX="$(PKG_INSTALL_DIR)/usr" \
54 install
55 endef
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/axTLS $(1)/usr/include/
60
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.{a,so*} $(1)/usr/lib/
63 endef
64
65 define Package/libaxtls/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
68 endef
69
70 define Package/axhttpd/install
71 $(INSTALL_DIR) $(1)/usr/sbin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
73 endef
74
75 $(eval $(call BuildPackage,libaxtls))
76 $(eval $(call BuildPackage,axhttpd))