Ticket #51397: crossgcc-1.0.tcl.diff

File crossgcc-1.0.tcl.diff, 1.5 KB (added by denis-fr (Denis), 8 years ago)
  • crossgcc-1.0.tcl

    old new  
    6969            and Objective-C++ for cross development for ${crossgcc.target}.
    7070
    7171        homepage        http://gcc.gnu.org/
    72         master_sites    gnu:gcc/gcc-${version}/:gcc
     72        master_sites    gnu:gcc/gcc-${crossgcc.version}/:gcc
    7373        use_bzip2       yes
    7474
    7575        dist_subdir     gcc
    76         distfiles       gcc-${version}.tar.bz2:gcc
     76        distfiles       gcc-${crossgcc.version}.tar.bz2:gcc
    7777
    78         worksrcdir      gcc-${version}
     78        worksrcdir      gcc-${crossgcc.version}
    7979
    8080        depends_lib     port:${crossgcc.target}-binutils \
    8181                        port:gmp \
     
    8888
    8989        # Extract gcc distfiles only. libc tarball might be available as gzip only;
    9090        # handled below in post-extract in the variant.
    91         extract.only    gcc-${version}.tar.bz2
     91        extract.only    gcc-${crossgcc.version}.tar.bz2
    9292
    9393        # Build in a different directory, as advised in the README file.
    9494        post-extract {
     
    229229
    230230                post-extract {
    231231                    system -W ${workpath} "tar -xzf ${distpath}/newlib-${crossgcc.libc_version}.tar.gz"
    232                     ln -s ${workpath}/newlib-${crossgcc.libc_version}/newlib ${workpath}/gcc-${version}/
     232                    ln -s ${workpath}/newlib-${crossgcc.libc_version}/newlib ${workpath}/gcc-${crossgcc.version}/
    233233                }
    234234
    235235                configure.args-append --with-newlib