avr_libc-2.0.0.recipe revision 53bb7b63
1SUMMARY="C library for Atmel AVR microcontrollers"
2DESCRIPTION="
3AVR Libc is a Free Software project whose goal is to provide a high quality C
4library for use with GCC on Atmel AVR microcontrollers.
5
6Together, avr-binutils, avr-gcc, and avr-libc form the heart of the Free
7Software toolchain for the Atmel AVR microcontrollers.
8"
9HOMEPAGE="https://www.nongnu.org/avr-libc/"
10LICENSE="BSD (3-clause)"
11COPYRIGHT="1999-2016 Keith Gudger, Bjoern Haase, Steinar Haugen, Peter Jansen,
12	Reinhard Jessich, Magnus Johansson, Artur Lipowski, Marek Michalkiewicz,
13	Colin O'Flynn, Bob Paddock, Reiner Patommel, Michael Rickman,
14	Theodore A. Roth, Juergen Schilling, Philip Soeberg, Anatoly Sokolov,
15	Nils Kristian Strom, Michael Stumpf, Stefan Swanepoel, Eric B. Weddington,
16	Joerg Wunsch, Dmitry Xmelkov, The Regents of the University of California."
17SOURCE_URI="http://download.savannah.gnu.org/releases/avr-libc/avr-libc-$portVersion.tar.bz2"
18CHECKSUM_SHA256="b2dd7fd2eefd8d8646ef6a325f6f0665537e2f604ed02828ced748d49dc85b97"
19REVISION="3"
20ARCHITECTURES="any"
21SECONDARY_ARCHITECTURES="x86"
22
23PROVIDES="
24	avr_libc$secondaryArchSuffix = $portVersion
25	"
26
27REQUIRES="
28	haiku$secondaryArchSuffix
29	"
30BUILD_REQUIRES="
31	"
32BUILD_PREREQUIRES="
33	haiku${secondaryArchSuffix}_devel	
34	cmd:autoconf
35	cmd:automake
36	cmd:autoreconf
37	cmd:avr_as$secondaryArchSuffix
38	cmd:avr_gcc$secondaryArchSuffix
39	cmd:libtoolize$secondaryArchSuffix
40	cmd:make
41	"
42
43SOURCE_DIR="avr-libc-$portVersion"
44
45relativeInstallDir="develop/tools/avr"
46installDir="$prefix/$relativeInstallDir"
47
48BUILD()
49{	
50	autoreconf -fi
51	runConfigure ./configure --host=avr --build=$effectiveTargetMachineTriple \
52		--prefix=$installDir --libexecdir=$installDir/lib --mandir=$manDir \
53		--docdir=$docDir --target=avr
54	make $jobArgs
55}
56
57INSTALL()
58{
59	make install
60}
61