source: packages/libs/axtls/Makefile @ 16365

Last change on this file since 16365 was 16365, checked in by jow, 8 years ago

[packages] axtls: Capitalize axtls' SSL submenu (#5295)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=axtls
11PKG_VERSION:=1.2.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/axtls
16PKG_MD5SUM:=03471b5a5874e2ce86025f24b3fa0958
17
18TAR_OPTIONS:=--transform='s,axTLS,$(PKG_NAME)-$(PKG_VERSION),' -xvf -
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/libaxtls
23  SECTION:=libs
24  CATEGORY:=Libraries
25  SUBMENU:=SSL
26  TITLE:=Embedded client/server TLSv1 SSL library
27  URL:=http://sourceforge.net/projects/axtls
28endef
29
30define Package/axhttpd
31  SECTION:=net
32  CATEGORY:=Network
33  SUBMENU:=Web
34  DEPENDS:=+libaxtls
35  TITLE:=A small embedded web server using the axTLS library
36  URL:=http://www.axtls.co.nr/
37endef
38
39define Build/Configure
40        $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
41        $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
42endef
43
44TARGET_CFLAGS += $(FPIC)
45
46define 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
55endef
56
57define 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/
63endef
64
65define Package/libaxtls/install
66        $(INSTALL_DIR) $(1)/usr/lib
67        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
68endef
69
70define Package/axhttpd/install
71        $(INSTALL_DIR) $(1)/usr/sbin
72        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
73endef
74
75$(eval $(call BuildPackage,libaxtls))
76$(eval $(call BuildPackage,axhttpd))
Note: See TracBrowser for help on using the repository browser.