1 | # $Id: Portfile 37082 2008-05-26 13:45:35Z mmoll@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name arm-none-eabi-gdb |
---|
6 | version 7.1 |
---|
7 | categories cross |
---|
8 | maintainers nomaintainer |
---|
9 | description GDB for the ARM processors |
---|
10 | long_description arm-none-eabi-gdb is a version of the GNU Debugger that \ |
---|
11 | can be used to debug \ |
---|
12 | code for the ARM processors. |
---|
13 | homepage http://www.gnu.org/software/gdb/ |
---|
14 | platforms darwin |
---|
15 | distfiles gdb-${version}.tar.bz2 |
---|
16 | worksrcdir gdb-${version} |
---|
17 | |
---|
18 | master_sites http://ftp.gnu.org/gnu/gdb/ \ |
---|
19 | ftp://mirrors.usc.edu/pub/gnu/gdb \ |
---|
20 | ftp://ftp.mcc.ac.uk/pub/gnu/gdb |
---|
21 | |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | checksums md5 21dce610476c054687b52770d2ddc657 \ |
---|
25 | sha1 417e2e637a296ea0e1cdddf56233311b8708fa19 \ |
---|
26 | rmd160 800d224496240a360c996e588490f2d87367c4e3 |
---|
27 | |
---|
28 | depends_build port:gettext |
---|
29 | |
---|
30 | # This actually breaks the build process |
---|
31 | #configure.env CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" |
---|
32 | # without --disable-nls the build process also breaks |
---|
33 | |
---|
34 | if {${configure.build_arch} == "ppc" || ${configure.build_arch} == "ppc64"} { |
---|
35 | notes "${name} does not support building on ${configure.build_arch}." |
---|
36 | pre-fetch { |
---|
37 | ui_error "${name} does not support building on ${configure.build_arch}." |
---|
38 | return -code error "Unsupported architecture." |
---|
39 | } |
---|
40 | } |
---|
41 | |
---|
42 | configure.args-append \ |
---|
43 | --target=arm-none-eabi \ |
---|
44 | --infodir=${prefix}/share/info \ |
---|
45 | --mandir=${prefix}/share/man \ |
---|
46 | --with-docdir=${prefix}/share/doc \ |
---|
47 | --program-prefix=arm-none-eabi- |
---|
48 | |
---|
49 | configure.cflags-append -I${prefix}/include |
---|
50 | configure.cxxflags-append -I${prefix}/include |
---|
51 | |
---|
52 | post-destroot { |
---|
53 | # Installing (host) libiberty was a mistake. |
---|
54 | file delete "${destroot}/${prefix}/lib/x86_64/libiberty.a" |
---|
55 | system "chgrp procmod ${destroot}${prefix}/bin/arm-none-eabi-gdb*" |
---|
56 | system "chmod g+s ${destroot}${prefix}/bin/arm-none-eabi-gdb*" |
---|
57 | move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/gdb-standards.info |
---|
58 | } |
---|