1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name avr-binutils-atmel |
---|
7 | categories cross |
---|
8 | version 2.24 |
---|
9 | maintainers gmail.com:bbandi86 |
---|
10 | |
---|
11 | description FSF Binutils for AVR cross development with Atmel patches |
---|
12 | long_description \ |
---|
13 | Free Software Foundation development toolchain ("binutils") for \ |
---|
14 | AVR cross development with Atmel patches |
---|
15 | |
---|
16 | homepage http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx |
---|
17 | |
---|
18 | platforms darwin |
---|
19 | |
---|
20 | license GPL-2 |
---|
21 | |
---|
22 | master_sites http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.4.4/ |
---|
23 | distname avr-binutils-${version} |
---|
24 | patchfiles patch-atmel-binutils-3.4.4-autotool.diff |
---|
25 | |
---|
26 | use_bzip2 yes |
---|
27 | worksrcdir binutils |
---|
28 | |
---|
29 | checksums rmd160 a937d1e8efd7685e6c2426467ec0fbe5589ec15f \ |
---|
30 | sha256 96fcc09b51f0180b27a9841660988af599f655bbf918da397e386809e3eb4721 |
---|
31 | |
---|
32 | conflicts avr-binutils |
---|
33 | |
---|
34 | patch.pre_args -p1 |
---|
35 | |
---|
36 | configure.dir ${worksrcpath}/build |
---|
37 | configure.cmd ../configure |
---|
38 | configure.optflags "-Os -g0 -s" |
---|
39 | configure.args --disable-nls\ |
---|
40 | --enable-doc\ |
---|
41 | --target=avr\ |
---|
42 | --libdir=${prefix}/lib\ |
---|
43 | --infodir=${prefix}/share/info\ |
---|
44 | --mandir=${prefix}/share/man\ |
---|
45 | --docdir=${prefix}/share/doc/avr-binutils\ |
---|
46 | --disable-werror\ |
---|
47 | --enable-install-libiberty\ |
---|
48 | --enable-instal-libbfd |
---|
49 | |
---|
50 | build.dir ${configure.dir} |
---|
51 | pre-build { |
---|
52 | system " |
---|
53 | pushd ${build.dir} |
---|
54 | make configure-host |
---|
55 | popd |
---|
56 | " |
---|
57 | } |
---|
58 | |
---|
59 | build.args tooldir=${prefix} |
---|
60 | |
---|
61 | post-destroot { |
---|
62 | system " |
---|
63 | for filename in ar as nm objcopy ranlib strip ; do |
---|
64 | rm -f ${destroot}${prefix}/bin/\${filename} |
---|
65 | done |
---|
66 | rm -rf ${destroot}${prefix}/share/info/dir |
---|
67 | for filename in `ls ${destroot}${prefix}/share/info`; do |
---|
68 | mv ${destroot}${prefix}/share/info/\${filename} ${destroot}${prefix}/share/info/avr-\${filename} |
---|
69 | done |
---|
70 | " |
---|
71 | } |
---|
72 | |
---|
73 | destroot.args prefix=${prefix} tooldir=${prefix} |
---|