name arm-none-linux-gnueabi-gcc
# Parameters for this port.
set scratchboxversion 1.0.5
set crossgcc-target arm-none-linux-gnueabi
set default-languages --enable-languages="c,c++,objc"
description gcc 3.x cross-compilers for arm-none-linux-gnueabi.
long_description gnu compilers collection version 3.x (including c++ and objc) for \
arm-none-linux-gnueabi, Nokia Internet Tablet version from Code Sourcery
homepage http://www.codesourcery.com/gnu_toolchains/arm
master_sites macports:pguyot
distfiles gcc-${version}.tar.bz2
worksrcdir gcc-${gccversion}
checksums gcc-${version}.tar.bz2 \
md5 8fb231e1d8573b9e14e4d518a1c781a2 \
sha1 99334733b0e0b2befd7f5eb9c6fac407a71f563e \
rmd160 8d08aa976a84e9058ae95616c25e2c5a00ac9b4c
# All cross ports violate the mtree layout.
destroot.violate_mtree yes
# Download everything to gcc/
depends_lib port:${crossgcc-target}-binutils \
port:${crossgcc-target}-runtime
depends_build bin:msgfmt:gettext
# Since we don't build gcc and binutils at the same time, gcc's Makefile will try to transform
# program names as gcc's name (add -${version} with ${version} being the version of gcc).
# But it won't work because binutils binaries don't have the ${version} suffix, and even if they
# had, they would actually have the binutils' version suffix (and not gcc's version).
# So let's tell gcc's Makefile not to do that mistake.
set environment [list AR_FOR_TARGET=${crossgcc-target}-ar \
AS_FOR_TARGET=${crossgcc-target}-as \
LD_FOR_TARGET=${crossgcc-target}-ld \
NM_FOR_TARGET=${crossgcc-target}-nm \
RANLIB_FOR_TARGET=${crossgcc-target}-ranlib]
# fix bad yacc code, ticket #28296
patchfiles patch-c-parse.in.diff
# Build in a different directory, as advised in the README file.
file mkdir "${workpath}/build"
configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.env ${environment}
configure.args --infodir='${prefix}/share/info' \
--mandir='${prefix}/share/man' \