Merge pull request #1340 from teslamint/patch-1
[feed/packages.git] / utils / avrdude / Makefile
1 #
2 # Copyright (C) 2008-2015 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:=avrdude
11 PKG_VERSION:=6.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/avrdude
16 PKG_MD5SUM:=9db8c25b935d34234b9b1ba16ad55fd5
17
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 define Package/avrdude
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=AVR Downloader/UploaDEr
32 URL:=http://www.nongnu.org/avrdude/
33 DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf1
34 endef
35
36 define Package/avrdude/description
37 AVRDUDE is a full featured program for programming Atmel's AVR CPU's.
38 endef
39
40 CONFIGURE_ARGS+= \
41 --disable-doc \
42 --disable-parport \
43 --enable-linuxgpio \
44
45 TARGET_CFLAGS+= \
46 -D_GNU_SOURCE \
47
48 define Package/avrdude/conffiles
49 /etc/avrdude.conf
50 endef
51
52 define Package/avrdude/install
53 $(INSTALL_DIR) $(1)/etc
54 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/avrdude.conf $(1)/etc/
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/avrdude $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,avrdude))