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