e344eee73639fb957ef0fce06390c851b96798ee
[openwrt/svn-archive/archive.git] / utils / dfu-util / 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: Makefile 6500 2007-03-04 04:19:46Z pavlov $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dfu-util
12 PKG_VERSION:=r3095
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://sources.nslu2-linux.org/sources
17 PKG_MD5SUM:=2346dddceeab0e7090109f04d9c3a6be
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dfu-util
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=OpenMoko device flash utility
28 DESCRIPTION:=\
29 Dfu-util is a program that implements the host side of the USB DFU \
30 (Universal Serial Bus Device Firmware Upgrade) protocol. \
31 This version is specifically used to flash the FIC Neo 1973 mobile phone.
32 URL:=http://wiki.openmoko.org/wiki/Dfu-util
33 DEPENDS:=+libusb
34 endef
35
36 # CONFIGURE_VARS += USB_CFLAGS="-I $(STAGING_DIR)/usr/include" \
37 # USB_LIBS="-L $(STAGING_DIR)/usr/lib"
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
41 ./autogen.sh \
42 );
43 $(call Build/Configure/Default)
44 endef
45
46 define Package/dfu-util/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dfu-util $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,dfu-util))