2006-07-19 06:53:07 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=axtls
|
2007-09-05 06:16:39 +00:00
|
|
|
PKG_VERSION:=1.1.6
|
2006-07-19 06:53:07 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
|
2006-08-09 00:36:24 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/axtls http://www.leroc.com.au/axTLS/
|
2007-09-05 06:16:39 +00:00
|
|
|
PKG_MD5SUM:=50e63d5fe002399e2ae63591908f7f5a
|
2006-07-19 06:53:07 +00:00
|
|
|
|
2007-04-08 15:50:39 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/axTLS
|
|
|
|
|
2006-07-19 06:53:07 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libaxtls
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Embedded client/server TLSv1 SSL library
|
2006-08-09 00:36:24 +00:00
|
|
|
URL:=http://sourceforge.net/projects/axtls
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-08 15:50:39 +00:00
|
|
|
define Package/axhttpd
|
2006-07-26 01:26:21 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-12-28 14:53:06 +00:00
|
|
|
SUBMENU:=Web
|
2006-07-26 01:26:21 +00:00
|
|
|
DEPENDS:=+libaxtls
|
2007-04-08 15:50:39 +00:00
|
|
|
TITLE:=A small embedded web server using the axTLS library
|
2006-07-19 06:53:07 +00:00
|
|
|
URL:=http://www.axtls.co.nr/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) oldconfig
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-07-19 06:53:07 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-04 03:28:27 +00:00
|
|
|
CC="$(TARGET_CC)" \
|
2007-04-08 15:50:39 +00:00
|
|
|
STRIP="/bin/true" \
|
|
|
|
OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" \
|
|
|
|
all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
PREFIX="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/axTLS $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.{a,so*} $(1)/usr/lib/
|
2007-04-08 15:50:39 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-19 06:53:07 +00:00
|
|
|
define Package/libaxtls/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-04-08 15:50:39 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-08 15:50:39 +00:00
|
|
|
define Package/axhttpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-04-08 15:50:39 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libaxtls))
|
2007-04-08 15:50:39 +00:00
|
|
|
$(eval $(call BuildPackage,axhttpd))
|