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:=2.00a
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=https://www.coker.com.au/bonnie++
  13. PKG_HASH:=a8d33bbd81bc7eb559ce5bf6e584b9b53faea39ccfb4ae92e58f27257e468f0e
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=copyright.txt
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/meson.mk
  20. define Package/bonniexx
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+libstdcpp +libpthread
  24. TITLE:=Bonnie++ - hard drive bottleneck testing program.
  25. URL:=https://www.coker.com.au/bonnie++/
  26. endef
  27. define Package/bonniexx/description
  28. Bonnie++ is a benchmark suite that is aimed at performing a number of simple
  29. tests of hard drive and file system performance.
  30. endef
  31. MESON_ARGS += \
  32. -Db_lto=true \
  33. -Dcpp_eh=none \
  34. -Dcpp_rtti=false
  35. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections
  36. define Package/bonniexx/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bonnie++ $(1)/usr/bin/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bon_csv2html $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,bonniexx))