devio: a utility to manipulate formatted data in mtd partitions (or other block devices)
[packages.git] / utils / devio / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=devio
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/devio
17 PKG_MD5SUM:=
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/devio
24   SECTION:=utils
25   CATEGORY:=Utilities
26   TITLE:=Correctly write to and read from mtd character (and other block) devices
27   DESCRIPTION:=\
28         A command line program to correctly read (or write) a region of a block device.\\\
29         Primary use is for extracting formatted data from MTD partitions.
30   URL:=http://sourceforge.net/projects/devio/
31 endef
32
33 define Build/Configure
34         (cd $(PKG_BUILD_DIR) ; \
35                 ./configure \
36         );
37 endef
38
39 define Build/Compile
40         $(call Build/Compile/Default, \
41                 CFLAGS="$(EXTRA_CFLAGS)" \
42                 LDFLAGS="$(EXTRA_LDFLAGS)" \
43         )
44 endef
45
46 define Package/devio/install
47         $(INSTALL_DIR) $(1)/usr/sbin
48         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/devio $(1)/usr/sbin
49 endef
50
51 $(eval $(call BuildPackage,devio))