[95397] trunk/dports/cross/arm-aout-binutils
jmr at macports.org
jmr at macports.org
Wed Jul 11 13:36:49 PDT 2012
Revision: 95397
https://trac.macports.org/changeset/95397
Author: jmr at macports.org
Date: 2012-07-11 13:36:48 -0700 (Wed, 11 Jul 2012)
Log Message:
-----------
arm-aout-binutils: update to 2.22
Modified Paths:
--------------
trunk/dports/cross/arm-aout-binutils/Portfile
Removed Paths:
-------------
trunk/dports/cross/arm-aout-binutils/files/
Modified: trunk/dports/cross/arm-aout-binutils/Portfile
===================================================================
--- trunk/dports/cross/arm-aout-binutils/Portfile 2012-07-11 20:20:27 UTC (rev 95396)
+++ trunk/dports/cross/arm-aout-binutils/Portfile 2012-07-11 20:36:48 UTC (rev 95397)
@@ -1,137 +1,11 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+PortGroup crossbinutils 1.0
-name arm-aout-binutils
-version 2.17
+crossbinutils.setup arm-aout 2.22
-# Parameters for this port.
-set crossgcc-target arm-aout
+checksums rmd160 34cebe4cdca9480d5dc6f6b00b052c48c8ac30dc \
+ sha256 6c7af8ed1c8cf9b4b9d6e6fe09a3e1d3d479fe63984ba8b9b26bf356b6313ca9
-description FSF Binutils for arm-aout cross development
-long_description Free Software Foundation development toolchain ("binutils") for \
- arm-aout cross development.
-platforms darwin
-categories cross devel
-license GPL-2+
-maintainers nomaintainer
-homepage http://www.gnu.org/software/binutils/binutils.html
-# gnu:binutils removed, tarball modified in 2011
-master_sites macports:binutils
-distname binutils-${version}
-use_bzip2 yes
-checksums md5 e26e2e06b6e4bf3acf1dc8688a94c0d1 \
- sha1 a557686eef68362ea31a3aa41ce274e3eeae1ef0 \
- rmd160 3995d7ed97f115e76ce55b4c1f5256d53559c84f
-
-# All cross ports violate the mtree layout.
-destroot.violate_mtree yes
-
-# Download everything to binutils/
-dist_subdir binutils
-
-# Build in a different directory, as advised in the README file.
-pre-configure { system "cd ${workpath} && mkdir -p build"}
-configure.dir ${workpath}/build
-configure.cmd ${worksrcpath}/configure
-configure.args --infodir='${prefix}/share/info' --target=${crossgcc-target} \
- --program-prefix=${crossgcc-target}- --mandir='${prefix}/share/man' \
- --disable-werror
-build.dir ${workpath}/build
-
-# We don't want the etc module.
-post-extract {
- system "rm -rf ${worksrcpath}/etc"
-}
-
-patchfiles patch-configure.diff
-
-post-patch {
- namespace eval crossgcc {}
-
- # 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 souce page (texinfo or texi)
- proc crossgcc::fixinfo { path makefile name suffix } {
- global crossgcc-target worksrcpath
-
- # Fix the source
- reinplace "s|setfilename ${name}.info|setfilename ${crossgcc-target}-${name}.info|g" \
- ${worksrcpath}/${path}/${name}.${suffix}
- reinplace "s|(${name})|(${crossgcc-target}-${name})|g" \
- ${worksrcpath}/${path}/${name}.${suffix}
- reinplace "s|@file{${name}}|@file{${crossgcc-target}-${name}}|g" \
- ${worksrcpath}/${path}/${name}.${suffix}
-
- # Fix the Makefile
- reinplace "s|${name}.info|${crossgcc-target}-${name}.info|g" \
- ${worksrcpath}/${makefile}
- reinplace "s|${name}.${suffix}|${crossgcc-target}-${name}.${suffix}|g" \
- ${worksrcpath}/${makefile}
-
- # Rename the source
- file rename ${worksrcpath}/${path}/${name}.${suffix} \
- ${worksrcpath}/${path}/${crossgcc-target}-${name}.${suffix}
-
- # Fix install-info's dir.
- # (note: this may be effectless if there was no info dir to be fixed)
- reinplace "s|--info-dir=\$(DESTDIR)\$(infodir)|--dir-file=\$(DESTDIR)\$(infodir)/${crossgcc-target}-dir|g" \
- "${worksrcpath}/${makefile}"
- }
-
- # Fix the gettext files and related stuff.
- #
- # module: name of the module (e.g. gas)
- proc crossgcc::fixgettext { module } {
- global crossgcc-target worksrcpath
-
- if { [ file exists "${worksrcpath}/${module}/Makefile.in" ] } {
- reinplace "s|@PACKAGE@|${crossgcc-target}- at PACKAGE@|g" \
- "${worksrcpath}/${module}/Makefile.in"
- }
- if { [ file exists "${worksrcpath}/${module}/doc/Makefile.in" ] } {
- reinplace "s|@PACKAGE@|${crossgcc-target}- at PACKAGE@|g" \
- "${worksrcpath}/${module}/doc/Makefile.in"
- }
- if { [ file exists "${worksrcpath}/${module}/po/Make-in" ] } {
- reinplace "s|@PACKAGE@|${crossgcc-target}- at PACKAGE@|g" \
- "${worksrcpath}/${module}/po/Make-in"
- }
- }
-
- # gas/doc/as.texinfo
- crossgcc::fixinfo gas/doc/ gas/doc/Makefile.in as texinfo
-
- # bfd/doc/bfd.texinfo
- crossgcc::fixinfo bfd/doc/ bfd/doc/Makefile.in bfd texinfo
-
- # binutils/doc/binutils.texi
- crossgcc::fixinfo binutils/doc/ binutils/doc/Makefile.in binutils texi
-
- # gprof/gprof.texi
- crossgcc::fixinfo gprof/ gprof/Makefile.in gprof texi
-
- # ld/ld.texinfo
- crossgcc::fixinfo ld/ ld/Makefile.in ld texinfo
-
- # gettext stuff.
- crossgcc::fixgettext bfd
- crossgcc::fixgettext binutils
- crossgcc::fixgettext gas
- crossgcc::fixgettext gprof
- crossgcc::fixgettext ld
- crossgcc::fixgettext opcodes
-}
-
-post-destroot {
- # Installing (host) libiberty was a mistake.
- foreach f [glob -directory "${destroot}${prefix}/lib" libiberty.a */libiberty.a] {
- file delete $f
- }
-}
-
-livecheck.type freecode
-livecheck.name binutils
+configure.args-append --disable-werror
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120711/c3799a0d/attachment.html>
More information about the macports-changes
mailing list