Files
haikuports/dev-embedded/avrdude/avrdude-6.3.recipe
Gerasim Troeglazov 9a76ce3123 avrdude: bump version
2017-04-09 17:49:05 +00:00

64 lines
1.5 KiB
Bash

SUMMARY="A tool to up/download to AVR microcontrollers"
DESCRIPTION="AVRDUDE is an utility to download/upload/manipulate the ROM and \
EEPROM contents of AVR microcontrollers using the in-system programming \
technique (ISP)."
HOMEPAGE="http://www.nongnu.org/avrdude/"
COPYRIGHT="2003-2016 Brian S. Dean"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://download.savannah.gnu.org/releases/avrdude/avrdude-6.3.tar.gz"
CHECKSUM_SHA256="0f9f731b6394ca7795b88359689a7fa1fba818c6e1d962513eb28da670e0a196"
PATCHES="avrdude-6.3.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
GLOBAL_WRITABLE_FILES="
settings/avrdude.conf keep-old
"
PROVIDES="
avrdude$secondaryArchSuffix = $portVersion
lib:libavrdude$secondaryArchSuffix = $portVersion
cmd:avrdude$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libusb_1.0$secondaryArchSuffix
lib:libftdi1$secondaryArchSuffix
lib:libelf$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libusb_1.0$secondaryArchSuffix
devel:libftdi1$secondaryArchSuffix
devel:libelf$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:automake
cmd:autoconf
cmd:libtool
cmd:make
cmd:yacc
cmd:flex
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --force --copy --install
export PKG_CONFIG_LIBDIR=/system/develop/lib/x86/pkgconfig/
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/lib*.a
rm $libDir/lib*.la
}