Ticket #55033: gcc5.5-java.diff
File gcc5.5-java.diff, 3.5 KB (added by kencu (Ken), 7 years ago) |
---|
-
Portfile
old new 7 7 name gcc5 8 8 9 9 epoch 2 10 version 5.4.0 11 revision 2 10 version 5.5.0 12 11 platforms darwin 13 12 categories lang 14 13 maintainers nomaintainer … … 18 17 long_description The GNU compiler collection, including front ends for \ 19 18 C, C++, Objective-C, Objective-C++, Fortran and Java. 20 19 20 set release -RC-20171002 21 21 homepage http://gcc.gnu.org/ 22 22 master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \ 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://gcc.gnu.org/pub/gcc/snapshots/${version}${release}/ \ 28 ftp://sourceware.org/pub/java/ 27 29 28 distname gcc-${version} 30 distname gcc-${version}${release} 29 31 use_bzip2 yes 30 32 31 checksums rmd160 7ae3413ca7e90bb21e65e637c02ddf2b675b45f4 \ 32 sha256 608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a 33 distfiles gcc-${version}${release}.tar.bz2 \ 34 ecj-4.9.jar 35 36 checksums gcc-${version}${release}.tar.bz2 \ 37 rmd160 0645fb833c2e7170cc97f5dbc4d45ebf9f391152 \ 38 sha256 2034063aa1ae199651eeb0f7dd0906bdb5fe0c22213e474e5173545d9556ba95 \ 39 ecj-4.9.jar \ 40 rmd160 eb1b19d9ac0e9e265bf993f38b9576e3c710e91e \ 41 sha256 9506e75b862f782213df61af67338eb7a23c35ff425d328affc65585477d34cd 33 42 34 43 depends_lib port:cctools \ 35 44 port:gmp \ … … 45 54 depends_skip_archcheck-append gcc_select ld64 cctools 46 55 license_noconflict gmp mpfr ppl libmpc 47 56 48 # Handle OS X deployment targets correctly (GCC PR target/63810 49 # <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>). 50 patchfiles-append macosx-version-min.patch 57 # Provide linkage for MacPorts libiconv in gcj 58 patchfiles-append gcj-libiconv-linkage.patch 59 60 extract.only gcc-${version}${release}.tar.bz2 51 61 52 62 set major [lindex [split ${version} .-] 0] 53 63 54 64 platform darwin { 65 if {${os.major} > 14} { 66 # Hack around boehm-gc and associated gcj failures from recompilation 67 # of libunwind.dylib with Apple Clang in macOS > 10.11 by reducing 68 # alignment to 2 69 patchfiles-append boehm-gc-darwin15-hack.patch 70 } 55 71 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} 56 72 } 57 73 … … 68 84 --disable-nls \ 69 85 --program-suffix=-mp-${major} \ 70 86 --with-gxx-include-dir=${prefix}/include/${name}/c++/ \ 87 --with-libiconv-prefix=${prefix} \ 71 88 --with-gmp=${prefix} \ 72 89 --with-mpfr=${prefix} \ 73 90 --with-mpc=${prefix} \ … … 99 116 OTOOL=${prefix}/bin/otool \ 100 117 OTOOL64=${prefix}/bin/otool 101 118 119 post-extract { 120 copy ${distpath}/ecj-4.9.jar ${worksrcpath}/ecj.jar 121 } 122 102 123 pre-configure { 103 124 configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}" 104 125