lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1361B)


      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.3
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
     16 PKG_MD5SUM:=58bb42049122cf80fe4f4d0ce36d92ee
     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   SUBMENU:=Microcontroller programming
     32   TITLE:=AVR Downloader/UploaDEr
     33   URL:=http://www.nongnu.org/avrdude/
     34   DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf1
     35 endef
     36 
     37 define Package/avrdude/description
     38  AVRDUDE is a full featured program for programming Atmel's AVR CPU's.
     39 endef
     40 
     41 CONFIGURE_ARGS+= \
     42 	--disable-doc \
     43 	--disable-parport \
     44 	--enable-linuxgpio \
     45 
     46 TARGET_CFLAGS+= \
     47 	-D_GNU_SOURCE \
     48 
     49 define Package/avrdude/conffiles
     50 /etc/avrdude.conf
     51 endef
     52 
     53 define Package/avrdude/install
     54 	$(INSTALL_DIR) $(1)/etc
     55 	$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/avrdude.conf $(1)/etc/
     56 	$(INSTALL_DIR) $(1)/usr/bin
     57 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/avrdude $(1)/usr/bin/
     58 endef
     59 
     60 $(eval $(call BuildPackage,avrdude))