[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[openwrt/svn-archive/archive.git] / utils / dt / Makefile
1 #
2 # Copyright (C) 2009 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:=dt
11 PKG_VERSION:=15.14
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-source.tar.gz
15 PKG_SOURCE_URL:=http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/$(PKG_NAME)/
16 PKG_MD5SUM:=5776233a2d301a50b314306538257a45
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_UNPACK= \
21 zcat $(DL_DIR)/$(PKG_SOURCE) | \
22 $(TAR) -C $(PKG_BUILD_DIR) --strip-components 2 $(TAR_OPTIONS);
23
24 define Package/dt
25 CATEGORY:=Utilities
26 SECTION:=utils
27 TITLE:=A generic data test program
28 URL:=http://www.scsifaq.org/RMiller_Tools/index.html
29 DEPENDS:=+libpthread
30 endef
31
32 define Package/dt/description
33 dt is a generic data test program used to verify proper operation of peripherals,
34 file systems, device drivers, or any data stream supported by the operating system.
35 In its' simplest mode of operation, dt writes and then verifys its' default data pattern,
36 then displays performance statisics and other test parameters before exiting.
37 Since verification of data is performed, dt can be thought of as a generic diagnostic tool.
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \
42 CC="$(TARGET_CC)" \
43 CFLAGS="$(TARGET_CFLAGS) -DFIFO -DMMAP -DTTY -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
44 dt
45 endef
46
47 define Package/dt/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dt $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,dt))