Ticket #49227: Portfile-gcc5.4.0-2.diff

File Portfile-gcc5.4.0-2.diff, 2.8 KB (added by nortcele, 7 years ago)

Modify Portfile for GCC 5.4.0 with modification from Ticket #53726

  • Portfile

    old new  
    88
    99epoch               2
    1010version             5.4.0
    11 revision            1
     11revision            2
    1212platforms           darwin
    1313categories          lang
    1414maintainers         nomaintainer
     
    2323                    ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \
    2424                    ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \
    2525                    ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
    26                     gnu:gcc/gcc-${version}
     26                    gnu:gcc/gcc-${version} \
     27                    ftp://sourceware.org/pub/java/
    2728
    2829distname            gcc-${version}
    2930use_bzip2           yes
    3031
    31 checksums           rmd160  7ae3413ca7e90bb21e65e637c02ddf2b675b45f4 \
    32                     sha256  608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a
     32distfiles           gcc-${version}.tar.bz2 \
     33                    ecj-4.9.jar
     34
     35checksums           gcc-${version}.tar.bz2 \
     36                    rmd160  7ae3413ca7e90bb21e65e637c02ddf2b675b45f4 \
     37                    sha256  608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a \
     38                    ecj-4.9.jar \
     39                    rmd160  eb1b19d9ac0e9e265bf993f38b9576e3c710e91e \
     40                    sha256  9506e75b862f782213df61af67338eb7a23c35ff425d328affc65585477d34cd
    3341
    3442depends_lib         port:cctools \
    3543                    port:gmp \
     
    4755# <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>).
    4856patchfiles-append   macosx-version-min.patch
    4957
     58# Provide linkage for MacPorts libiconv in gcj
     59patchfiles-append   gcj-libiconv-linkage.patch
     60
     61extract.only        gcc-${version}.tar.bz2
     62
    5063set major           [lindex [split ${version} .-] 0]
    5164
    5265platform darwin {
     66    if {${os.major} > 14} {
     67        # Hack around boehm-gc and associated gcj failures from recompilation
     68        # of libunwind.dylib with Apple Clang 7.0 in El Capitan by reducing
     69        # alignment to 2
     70        patchfiles-append   boehm-gc-darwin15-hack.patch
     71    }
    5372    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
    5473}
    5574
     
    6685                    --disable-nls \
    6786                    --program-suffix=-mp-${major} \
    6887                    --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
     88                    --with-libiconv-prefix=${prefix} \
    6989                    --with-gmp=${prefix} \
    7090                    --with-mpfr=${prefix} \
    7191                    --with-mpc=${prefix} \
     
    91111                    OTOOL=${prefix}/bin/otool \
    92112                    OTOOL64=${prefix}/bin/otool
    93113
     114post-extract {
     115    copy ${distpath}/ecj-4.9.jar ${worksrcpath}/ecj.jar
     116}
     117
    94118pre-configure {
    95119    configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
    96120