2 # Copyright (C) 2009-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.coker.com.au/bonnie++/experimental/
16 PKG_MD5SUM:=7b8594559f00887d2865de1838328b35
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/bonniexx
25 DEPENDS:=+libstdcpp +libpthread
26 TITLE:=Bonnie++ - hard drive bottleneck testing program.
27 URL:=http://www.coker.com.au/bonnie++/
30 define Package/bonniexx/description
31 Bonnie++ is a benchmark suite that is aimed at performing a number of simple
32 tests of hard drive and file system performance.
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 TARGET_CXX="$(TARGET_CXX)" \
38 TARGET_LINK="$(TARGET_CXX)" \
39 MORECFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS)" \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
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/
50 $(eval $(call BuildPackage,bonniexx))