Ticket #49227: Portfile-gcc5.4.0.diff
File Portfile-gcc5.4.0.diff, 2.8 KB (added by nortcele, 8 years ago) |
---|
-
Portfile
old new 9 9 10 10 epoch 2 11 11 version 5.4.0 12 revision 1 12 13 platforms darwin 13 14 categories lang 14 15 maintainers mww openmaintainer … … 23 24 ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \ 24 25 ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \ 25 26 ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \ 26 gnu:gcc/gcc-${version} 27 gnu:gcc/gcc-${version} \ 28 ftp://sourceware.org/pub/java/ 27 29 28 30 distname gcc-${version} 29 31 use_bzip2 yes 30 32 31 checksums rmd160 7ae3413ca7e90bb21e65e637c02ddf2b675b45f4 \ 32 sha256 608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a 33 distfiles gcc-${version}.tar.bz2 \ 34 ecj-4.9.jar 35 36 checksums gcc-${version}.tar.bz2 \ 37 rmd160 7ae3413ca7e90bb21e65e637c02ddf2b675b45f4 \ 38 sha256 608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a \ 39 ecj-4.9.jar \ 40 rmd160 eb1b19d9ac0e9e265bf993f38b9576e3c710e91e \ 41 sha256 9506e75b862f782213df61af67338eb7a23c35ff425d328affc65585477d34cd 33 42 34 43 depends_lib port:cctools \ 35 44 port:gmp \ … … 47 56 # <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>). 48 57 patchfiles-append macosx-version-min.patch 49 58 59 # Provide linkage for MacPorts libiconv in gcj 60 patchfiles-append gcj-libiconv-linkage.patch 61 62 extract.only gcc-${version}.tar.bz2 63 50 64 set major [lindex [split ${version} .-] 0] 51 65 52 66 platform darwin { 67 if {${os.major} > 14} { 68 # Hack around boehm-gc and associated gcj failures from recompilation 69 # of libunwind.dylib with Apple Clang 7.0 in El Capitan by reducing 70 # alignment to 2 71 patchfiles-append boehm-gc-darwin15-hack.patch 72 } 53 73 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} 54 74 } 55 75 … … 66 86 --disable-nls \ 67 87 --program-suffix=-mp-${major} \ 68 88 --with-gxx-include-dir=${prefix}/include/${name}/c++/ \ 89 --with-libiconv-prefix=${prefix} \ 69 90 --with-gmp=${prefix} \ 70 91 --with-mpfr=${prefix} \ 71 92 --with-mpc=${prefix} \ … … 91 112 OTOOL=${prefix}/bin/otool \ 92 113 OTOOL64=${prefix}/bin/otool 93 114 115 post-extract { 116 copy ${distpath}/ecj-4.9.jar ${worksrcpath}/ecj.jar 117 } 118 94 119 pre-configure { 95 120 configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}" 96 121