stress: bring in stress, modified patch from ticket:1777 -- now honors copts
[openwrt/svn-archive/archive.git] / utils / stress / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=stress
11 PKG_VERSION:=0.18.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://weather.ou.edu/~apw/projects/stress/
16 PKG_MD5SUM:=e6fba31fbac8d0a1b359c7e25cba8e3f
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/stress
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=@LINUX_2_6_X86
27 TITLE:=stress is a simple stress utility
28 DESCRIPTION:=\
29 stress is a simple tool that imposes certain types of compute \
30 stress on UNIX-like operating systems.
31 URL:=http://weather.ou.edu/~apw/projects/stress/
32 endef
33
34 CONFIGURE_ARGS += \
35 --prefix="/usr"
36
37 MAKE_FLAGS += \
38 CFLAGS="$(TARGET_CFLAGS)"
39
40 define Package/stress/install
41 install -d -m0755 $(1)/usr/bin
42 install -m0755 $(PKG_BUILD_DIR)/src/stress $(1)/usr/bin
43 endef
44
45 $(eval $(call BuildPackage,stress))