work around permission problems in the avrdude tarball - fixes avr32 compile error
[packages.git] / utils / avrdude / Makefile
1
2 # Copyright (C) 2008 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:=avrdude
12 PKG_VERSION:=5.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:= http://download.savannah.gnu.org/releases/avrdude/
17 PKG_MD5SUM:=60180d3f5f467987bfd7bc4505796fae
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/avrdude
22   SECTION:=utils
23   CATEGORY:=Utilities
24   TITLE:=AVR Downloader/UploaDEr
25   URL:=http://www.bsdhome.com/avrdude/
26   DEPENDS:=+libncurses
27 endef
28
29 define Package/avrdude/description
30  AVRDUDE is a full featured program for programming Atmel's AVR CPU's.
31 endef
32
33 define Build/Prepare
34         $(call Build/Prepare/Default)
35         chmod -R u+w $(PKG_BUILD_DIR)
36 endef
37
38 CONFIGURE_ARGS+= \
39         --enable-shared \
40         --disable-static \
41         --disable-parport \
42
43 define Build/Compile
44         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
45 endef
46
47 define Package/avrdude/conffiles
48 /etc/avrdude.conf
49 endef
50
51 define Package/avrdude/install
52         $(INSTALL_DIR) $(1)/etc
53         $(CP) $(PKG_INSTALL_DIR)/etc/avrdude.conf $(1)/etc/
54         $(INSTALL_DIR) $(1)/usr/bin
55         $(CP) $(PKG_INSTALL_DIR)/usr/bin/avrdude $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,avrdude))