2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=axTLS-
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/axtls http
://www.leroc.com.au
/axTLS
/
17 PKG_MD5SUM
:=50e63d5fe002399e2ae63591908f7f5a
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/axTLS
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libaxtls
26 TITLE
:=Embedded client
/server TLSv1 SSL library
27 URL
:=http
://sourceforge.net
/projects
/axtls
30 define Package
/axhttpd
35 TITLE
:=A small embedded web server using the axTLS library
36 URL
:=http
://www.axtls.
co.nr
/
39 define Build
/Configure
40 $(CP
) .
/files
/config
$(PKG_BUILD_DIR
)/config
/.config
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) oldconfig
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 OPT_CFLAGS
="$(TARGET_CFLAGS)" OPT_LDFLAGS
="" \
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 PREFIX
="$(PKG_INSTALL_DIR)/usr" \
55 define Build
/InstallDev
56 mkdir
-p
$(1)/usr
/include
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/axTLS
$(1)/usr
/include/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libaxtls.
{a
,so
*} $(1)/usr
/lib
/
62 define Package
/libaxtls
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/libaxtls.so.
* $(1)/usr
/lib
/
67 define Package
/axhttpd
/install
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/axhttpd
$(1)/usr
/sbin
/
72 $(eval
$(call BuildPackage
,libaxtls
))
73 $(eval
$(call BuildPackage
,axhttpd
))