1SUMMARY="A tool to up/download to AVR microcontrollers" 2DESCRIPTION="AVRDUDE is an utility to download/upload/manipulate the ROM and \ 3EEPROM contents of AVR microcontrollers using the in-system programming \ 4technique (ISP)." 5HOMEPAGE="http://www.nongnu.org/avrdude/" 6COPYRIGHT="2003-2022 Brian S. Dean" 7LICENSE="GNU GPL v2" 8REVISION="2" 9SOURCE_URI="http://download.savannah.gnu.org/releases/avrdude/avrdude-$portVersion.tar.gz" 10CHECKSUM_SHA256="c0ef65d98d6040ca0b4f2b700d51463c2a1f94665441f39d15d97442dbb79b54" 11PATCHES="avrdude-$portVersion.patchset" 12 13ARCHITECTURES="all !x86_gcc2" 14SECONDARY_ARCHITECTURES="x86" 15 16commandSuffix=$secondaryArchSuffix 17commandBinDir=$binDir 18if [ "$targetArchitecture" = x86_gcc2 ]; then 19 commandSuffix= 20 commandBinDir=$prefix/bin 21fi 22 23libVersion="1.0.0" 24libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 25 26GLOBAL_WRITABLE_FILES=" 27 settings/avrdude.conf keep-old 28 " 29 30PROVIDES=" 31 avrdude$secondaryArchSuffix = $portVersion 32 cmd:avrdude$commandSuffix = $portVersion 33 lib:libavrdude$secondaryArchSuffix = $libVersionCompat 34 " 35REQUIRES=" 36 haiku$secondaryArchSuffix 37 lib:libelf$secondaryArchSuffix 38 lib:libftdi1$secondaryArchSuffix 39 lib:libncurses$secondaryArchSuffix 40 lib:libreadline$secondaryArchSuffix 41 lib:libusb_1.0$secondaryArchSuffix 42 lib:libusb_0.1$secondaryArchSuffix 43 " 44 45BUILD_REQUIRES=" 46 haiku${secondaryArchSuffix}_devel 47 devel:libelf$secondaryArchSuffix 48 devel:libftdi1$secondaryArchSuffix 49 devel:libncurses$secondaryArchSuffix 50 devel:libreadline$secondaryArchSuffix 51 devel:libusb_1.0$secondaryArchSuffix 52 devel:libusb_0.1$secondaryArchSuffix 53 " 54BUILD_PREREQUIRES=" 55 cmd:autoconf 56 cmd:automake 57 cmd:flex 58 cmd:gcc$secondaryArchSuffix 59 cmd:ld$secondaryArchSuffix 60 cmd:libtool$secondaryArchSuffix 61 cmd:make 62 cmd:pkg_config$secondaryArchSuffix 63 cmd:yacc 64 " 65 66BUILD() 67{ 68 autoreconf -vfi 69 runConfigure --omit-dirs bindir ./configure --bindir=$commandBinDir 70 make $jobArgs 71} 72 73INSTALL() 74{ 75 make install 76 rm $libDir/lib*.a 77 rm $libDir/lib*.la 78} 79