mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
avrdude needs both libusb1 and libusb0 to work with all USB adapters. Alsmo move the binary to the main directory as we don't plan to get this building with gcc2.
70 lines
1.7 KiB
Bash
70 lines
1.7 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="4"
|
|
SOURCE_URI="http://download.savannah.gnu.org/releases/avrdude/avrdude-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="0f9f731b6394ca7795b88359689a7fa1fba818c6e1d962513eb28da670e0a196"
|
|
PATCHES="avrdude-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/avrdude.conf keep-old
|
|
"
|
|
|
|
PROVIDES="
|
|
avrdude$secondaryArchSuffix = $portVersion
|
|
cmd:avrdude = $portVersion
|
|
lib:libavrdude$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libelf$secondaryArchSuffix
|
|
lib:libftdi1$secondaryArchSuffix
|
|
lib:libusb_1.0$secondaryArchSuffix
|
|
lib:libusb_0.1$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libelf$secondaryArchSuffix
|
|
devel:libftdi1$secondaryArchSuffix
|
|
devel:libusb_1.0$secondaryArchSuffix
|
|
devel:libusb_0.1$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtool
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:yacc
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
libtoolize --force --copy --install
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
export PKG_CONFIG_LIBDIR=/system/$relativeDevelopLibDir/pkgconfig/
|
|
fi
|
|
automake --add-missing
|
|
runConfigure --omit-dirs bindir ./configure --bindir=$prefix/bin
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/lib*.a
|
|
rm $libDir/lib*.la
|
|
}
|