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.

62 lines
1.5 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.97.3
  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:=e27b386ae0dc054fa7b530aab6bdead7aea6337a864d1f982bc9ebacb320746e
  14. PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=copyright.txt
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_FIXUP:=autoreconf
  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 +=-fno-rtti
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR) \
  38. TARGET_CXX="$(TARGET_CXX)" \
  39. TARGET_LINK="$(TARGET_CXX)" \
  40. MORECFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS)" \
  41. DESTDIR="$(PKG_INSTALL_DIR)" \
  42. all
  43. endef
  44. define Package/bonniexx/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(CP) $(PKG_BUILD_DIR)/bonnie++ $(1)/usr/bin/
  47. $(CP) $(PKG_BUILD_DIR)/bon_csv2html $(1)/usr/bin/
  48. endef
  49. $(eval $(call BuildPackage,bonniexx))