#
# Copyright (C) 2007-2016 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/version.mk

PKG_NAME:=ookla
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define Package/ookla
	SECTION:=base
	CATEGORY:=DNI
	SUBMENU:=dni_thirparty
	DEPENDS:=+libpthread +libstdcpp +libc 
	TITLE:=Base filesystem for OpenWrt
	URL:=http://openwrt.org/
endef

define Package/ookla/description
 This package contains ookla binary file for Speed test feature
endef


define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
	$(CP) ./src/* $(PKG_BUILD_DIR)/
endef

define Build/Compile/Default

endef
Build/Compile = $(Build/Compile/Default)

define Package/ookla/install
	$(CP) $(PKG_BUILD_DIR)/files/* $(1)/
endef

$(eval $(call BuildPackage,ookla))
