Ticket #26250: Portfile

File Portfile, 2.0 KB (added by tcwan (TC Wan), 14 years ago)

arm-none-eabi-gdb Portfile

Line 
1# $Id: Portfile 37082 2008-05-26 13:45:35Z mmoll@macports.org $
2
3PortSystem 1.0
4
5name                    arm-none-eabi-gdb
6version                 7.1
7categories              cross
8maintainers             nomaintainer
9description             GDB for the ARM processors
10long_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.
13homepage        http://www.gnu.org/software/gdb/
14platforms       darwin
15distfiles               gdb-${version}.tar.bz2
16worksrcdir              gdb-${version}
17
18master_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
22use_bzip2       yes
23
24checksums           md5     21dce610476c054687b52770d2ddc657 \
25                    sha1    417e2e637a296ea0e1cdddf56233311b8708fa19 \
26                    rmd160  800d224496240a360c996e588490f2d87367c4e3
27
28depends_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
34if {${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
42configure.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
49configure.cflags-append     -I${prefix}/include
50configure.cxxflags-append   -I${prefix}/include
51
52post-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}