Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://www.coker.com.au/bonnie++/experimental/
  13. PKG_MD5SUM:=d6cf9703242998b2ddc2d875b028b3c6
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=copyright.txt
  16. PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/bonniexx
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. DEPENDS:=+libstdcpp +libpthread
  23. TITLE:=Bonnie++ - hard drive bottleneck testing program.
  24. URL:=http://www.coker.com.au/bonnie++/
  25. endef
  26. define Package/bonniexx/description
  27. Bonnie++ is a benchmark suite that is aimed at performing a number of simple
  28. tests of hard drive and file system performance.
  29. endef
  30. define Build/Compile
  31. $(MAKE) -C $(PKG_BUILD_DIR) \
  32. TARGET_CXX="$(TARGET_CXX)" \
  33. TARGET_LINK="$(TARGET_CXX)" \
  34. MORECFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS)" \
  35. DESTDIR="$(PKG_INSTALL_DIR)" \
  36. all
  37. endef
  38. define Package/bonniexx/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(CP) $(PKG_BUILD_DIR)/bonnie++ $(1)/usr/bin/
  41. $(CP) $(PKG_BUILD_DIR)/bon_csv2html $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,bonniexx))