[packages] pv: update to 1.2.0, use PKG_INSTALL
[openwrt/svn-archive/archive.git] / utils / mtd-utils / Makefile
1 #
2 # Copyright (C) 2009-2010 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:=mtd-utils
11 PKG_REV:=a2d010f8fca904fffa3c6e5a5d148cc96a37a08a
12 PKG_VERSION:=20090227
13 PKG_RELEASE:=1
14 PKG_INSTALL:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mtd-utils
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=Utilities for flash info/debug
28 URL:=http://www.linux-mtd.infradead.org/
29 DEPENDS:=+zlib +liblzo +libuuid
30 endef
31
32 define Package/mtd-utils/description
33 Utilities for manipulating memory technology devices.
34 endef
35
36 MAKE_FLAGS += \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 BUILDDIR="$(PKG_BUILD_DIR)" \
39 LDLIBS+="$(LIBGCC_S)" \
40 WITHOUT_XATTR=1
41
42 ifeq ($(CONFIG_LINUX_2_4),y)
43 MAKE_FLAGS += \
44 SUBDIRS=""
45 endif
46
47 define Package/mtd-utils/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,mtd-utils))