You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

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