Ignore:
Timestamp:
Dec 9, 2012, 2:12:30 AM (7 years ago)
Author:
raimue@…
Message:

group/crossgcc-1.0:
Use a single tarball for gcc sources (default distribution since 4.7.x, also available for 4.6.x).
Compilation with llvm-gcc-4.2 is supposed to work with Xcode >= 4.3.
Parallel building is already the default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/crossgcc-1.0.tcl

    r100243 r100350  
    6161            The GNU compiler collection, including front ends for C, C++, Objective-C \
    6262            and Objective-C++ for cross development for ${crossgcc.target}.
     63
    6364        homepage        http://gcc.gnu.org/
    64 
    65         set dcore       gcc-core-${version}.tar.bz2
    66         set dcxx        gcc-g++-${version}.tar.bz2
    67         set dobjc       gcc-objc-${version}.tar.bz2
    68 
    69         master_sites    gnu:gcc/gcc-${version}/:gcc \
    70                         ftp://ftp.gnu.org/pub/gnu/gcc/gcc-${version}
     65        master_sites    gnu:gcc/gcc-${version}/:gcc
     66        use_bzip2       yes
    7167
    7268        dist_subdir     gcc
    73         distfiles       ${dcore}:gcc \
    74                         ${dcxx}:gcc \
    75                         ${dobjc}:gcc
    76         use_bzip2       yes
     69        distfiles       gcc-${version}.tar.bz2:gcc
    7770
    7871        worksrcdir      gcc-${version}
     
    8679        depends_build   port:gettext
    8780
    88         # Extract gcc distfiles only. newlib tarball is available as gzip only;
     81        # Extract gcc distfiles only. libc tarball might be available as gzip only;
    8982        # handled below in post-extract in the variant.
    90         extract.only    ${dcore} ${dcxx} ${dobjc}
     83        extract.only    gcc-${version}.tar.bz2
    9184
    9285        # Build in a different directory, as advised in the README file.
     
    173166
    174167        # http://trac.macports.org/ticket/29104
    175         if {${configure.compiler} == "llvm-gcc-4.2"} {
    176             configure.compiler clang
     168        # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48301
     169        if {[vercmp ${xcodeversion} 4.3] < 0} {
     170            compiler.blacklist llvm-gcc-4.2
    177171        }
    178172
    179173        universal_variant no
    180174
    181         #GCC suports parallel building
    182         use_parallel_build yes
    183175        build.dir               ${workpath}/build
    184176
     177        # this port installs files to ${prefix}/${crossgcc.target}
    185178        destroot.violate_mtree yes
    186179
Note: See TracChangeset for help on using the changeset viewer.