[81847] trunk/dports/cross
raimue at macports.org
raimue at macports.org
Fri Aug 5 13:17:59 PDT 2011
Revision: 81847
http://trac.macports.org/changeset/81847
Author: raimue at macports.org
Date: 2011-08-05 13:17:58 -0700 (Fri, 05 Aug 2011)
Log Message:
-----------
cross/arm-none-eabi-gdb:
New port
Added Paths:
-----------
trunk/dports/cross/arm-none-eabi-gdb/
trunk/dports/cross/arm-none-eabi-gdb/Portfile
Removed Paths:
-------------
trunk/dports/cross/arm-none-eabi-gdb/Portfile
Deleted: trunk/dports/cross/arm-none-eabi-gdb/Portfile
===================================================================
--- trunk/dports/devel/gdb/Portfile 2011-08-04 20:31:03 UTC (rev 81778)
+++ trunk/dports/cross/arm-none-eabi-gdb/Portfile 2011-08-05 20:17:58 UTC (rev 81847)
@@ -1,72 +0,0 @@
-# -*- 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
-# $Id$
-
-PortSystem 1.0
-
-name gdb
-version 7.2
-revision 2
-categories devel
-maintainers dweber openmaintainer
-description GDB: The GNU Project Debugger
-
-long_description \
-GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
-another program while it executes -- or what another program was doing at the \
-moment it crashed. GDB can do four main kinds of things (plus other things \
-in support of these) to help you catch bugs in the act: \
- a) start your program, specifying anything that might affect its behavior, \
- b) make your program stop on specified conditions, \
- c) examine what has happened, when your program has stopped, \
- d) change things in your program, so you can experiment with correcting \
- the effects of one bug and go on to learn about another. \
-The program being debugged can be written in Ada, C, C++, Objective-C, \
-Pascal (and many other languages). Those programs might be executing on \
-the same machine as GDB (native) or on another machine (remote). GDB \
-can run on most popular UNIX and Microsoft Windows variants.
-
-homepage http://www.gnu.org/software/gdb/
-platforms darwin
-
-master_sites gnu
-
-use_bzip2 yes
-
-checksums md5 64260e6c56979ee750a01055f16091a5 \
- sha1 cae138dee0c11778c471a1d5e4b09e0ae08f9e9d \
- rmd160 2f2f5eb331593a276f1b7024ac35f7ca1520653d
-
-depends_build port:gettext
-
-
-if {${configure.build_arch} == "ppc" || ${configure.build_arch} == "ppc64"} {
- notes "${name} does not support building on ${configure.build_arch}."
- pre-fetch {
- ui_error "${name} does not support building on ${configure.build_arch}."
- return -code error "Unsupported architecture."
- }
-}
-
-configure.args-append \
- --infodir=${prefix}/share/info \
- --mandir=${prefix}/share/man \
- --with-docdir=${prefix}/share/doc \
- --program-prefix=g
-
-configure.cflags-append -I${prefix}/include
-configure.cxxflags-append -I${prefix}/include
-
-post-destroot {
- system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
- system "chmod g+s ${destroot}${prefix}/bin/ggdb*"
-
- foreach info [glob -tails -directory ${destroot}${prefix}/share/info g*] {
- move ${destroot}${prefix}/share/info/${info} ${destroot}${prefix}/share/info/g${info}
- }
- move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/ggdb-standards.info
-
- xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
- foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
- ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
- }
-}
Copied: trunk/dports/cross/arm-none-eabi-gdb/Portfile (from rev 81783, trunk/dports/devel/gdb/Portfile)
===================================================================
--- trunk/dports/cross/arm-none-eabi-gdb/Portfile (rev 0)
+++ trunk/dports/cross/arm-none-eabi-gdb/Portfile 2011-08-05 20:17:58 UTC (rev 81847)
@@ -0,0 +1,104 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name arm-none-eabi-gdb
+version 7.3
+categories devel
+platforms darwin
+license GPL-3+
+maintainers nomaintainer
+description GDB: The GNU Project Debugger for arm-none-eabi
+
+long_description \
+GDB, the GNU Project Debugger, for arm-none-eabi cross development.
+
+homepage http://www.gnu.org/software/gdb/
+master_sites gnu
+distname gdb-${version}
+dist_subdir gdb
+use_bzip2 yes
+
+checksums sha1 fefd90275d6decdca00c5c29c533e2ef3d439664 \
+ rmd160 3df9a15e2d276f4f7f30e5d2a7d86a8c63f30a34
+
+set crossgdb-target arm-none-eabi
+
+if {${configure.build_arch} == "ppc" || ${configure.build_arch} == "ppc64"} {
+ notes "${name} does not support building on ${configure.build_arch}."
+ pre-fetch {
+ ui_error "${name} does not support building on ${configure.build_arch}."
+ return -code error "Unsupported architecture."
+ }
+}
+
+depends_build port:${crossgdb-target}-gcc \
+ port:gettext
+
+post-patch {
+ namespace eval crossgdb {}
+
+ # Fix the info pages and related stuff.
+ #
+ # path: path to the doc directory (e.g. gas/doc/)
+ # makefile: path to Makefile.in (e.g. gas/doc/Makefile.in)
+ # name: name of the info page (e.g. as)
+ # suffix: suffix of the source page (texinfo or texi)
+ proc crossgdb::fixinfo { path makefile name suffix } {
+ global crossgdb-target workpath version
+
+ # Fix the source
+ reinplace "s|setfilename ${name}.info|setfilename ${crossgdb-target}-${name}.info|g" \
+ ${workpath}/gdb-${version}/${path}/${name}.${suffix}
+ reinplace "s|(${name})|(${crossgdb-target}-${name})|g" \
+ ${workpath}/gdb-${version}/${path}/${name}.${suffix}
+ reinplace "s|@file{${name}}|@file{${crossgdb-target}-${name}}|g" \
+ ${workpath}/gdb-${version}/${path}/${name}.${suffix}
+
+ # Fix the Makefile
+ reinplace -E "s:^${name}\\.(info|pod|${suffix}):${crossgdb-target}-${name}.\\1:g" \
+ ${workpath}/gdb-${version}/${makefile}
+ reinplace -E "s:(\[ /'`\])${name}\\.(info|pod|${suffix}):\\1${crossgdb-target}-${name}.\\2:g" \
+ ${workpath}/gdb-${version}/${makefile}
+
+ # Rename the source
+ file rename ${workpath}/gdb-${version}/${path}/${name}.${suffix} \
+ ${workpath}/gdb-${version}/${path}/${crossgdb-target}-${name}.${suffix}
+
+ reinplace "s|--info-dir=\$(DESTDIR)\$(infodir)|--dir-file=\$(DESTDIR)\$(infodir)/${crossgdb-target}-gdb-dir|g" \
+ ${workpath}/gdb-${version}/${makefile}
+ }
+
+ crossgdb::fixinfo bfd/doc/ bfd/doc/Makefile.in bfd texinfo
+ crossgdb::fixinfo etc/ etc/Makefile.in configure texi
+ crossgdb::fixinfo etc/ etc/Makefile.in standards texi
+ crossgdb::fixinfo gdb/doc/ gdb/doc/Makefile.in annotate texinfo
+ crossgdb::fixinfo gdb/doc/ gdb/doc/Makefile.in gdb texinfo
+ crossgdb::fixinfo gdb/doc/ gdb/doc/Makefile.in gdbint texinfo
+ crossgdb::fixinfo gdb/doc/ gdb/doc/Makefile.in stabs texinfo
+}
+
+configure.args --target=${crossgdb-target} \
+ --infodir=${prefix}/share/info \
+ --mandir=${prefix}/share/man \
+ --with-docdir=${prefix}/share/doc \
+ --with-gdb-datadir=${prefix}/share/${name} \
+ --disable-nls \
+ --enable-multilib
+
+# specific to ARM
+configure.args-append \
+ --enable-interwork
+
+post-destroot {
+ # (host) libiberty
+ file delete "${destroot}${prefix}/lib/${build_arch}/libiberty.a"
+
+ # avoid conflicts with arm-none-eabi-binutils port
+ file delete ${destroot}${prefix}/share/info/arm-none-eabi-bfd.info
+}
+
+livecheck.type regex
+livecheck.url http://ftp.gnu.org/gnu/gdb/
+livecheck.regex gdb-(\\d+(?:\\.\\d+)+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110805/72757009/attachment.html>
More information about the macports-changes
mailing list