You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2009-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=bonnie++
  9. PKG_VERSION:=1.98
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=https://www.coker.com.au/bonnie++/
  13. PKG_HASH:=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
  14. PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=copyright.txt
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/bonniexx
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=$(CXX_DEPENDS) +libpthread
  25. TITLE:=Bonnie++ - hard drive bottleneck testing program.
  26. URL:=https://www.coker.com.au/bonnie++/
  27. endef
  28. define Package/bonniexx/description
  29. Bonnie++ is a benchmark suite that is aimed at performing a number of simple
  30. tests of hard drive and file system performance.
  31. endef
  32. ifeq ($(CONFIG_USE_UCLIBCXX),y)
  33. TARGET_LDFLAGS += -nodefaultlibs
  34. endif
  35. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -fno-rtti -flto -std=c++98
  36. define Package/bonniexx/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(CP) $(PKG_BUILD_DIR)/bonnie++ $(1)/usr/bin/
  39. $(CP) $(PKG_BUILD_DIR)/bon_csv2html $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,bonniexx))