Ticket #54198: gcc7.diff
File gcc7.diff, 5.7 KB (added by RJVB (René Bertin), 7 years ago) |
---|
-
lang/gcc7/Portfile
a b 5 5 PortGroup compiler_blacklist_versions 1.0 6 6 7 7 name gcc7 8 subport libgcc -devel{}8 subport libgcc {} 9 9 10 epoch 111 version 7 -2017042010 epoch 2 11 version 7.1.0 12 12 platforms darwin 13 13 categories lang 14 14 maintainers nomaintainer 15 15 # an exception in the license allows dependents to not be GPL 16 16 license {GPL-3+ Permissive} 17 description The GNU compiler collection , prerelease BETA17 description The GNU compiler collection 18 18 long_description The GNU compiler collection, including front ends for \ 19 C, C++, Objective-C, Objective-C++, and Fortran. \ 20 This is a prerelease BETA version! 19 C, C++, Objective-C, Objective-C++, and Fortran. 21 20 22 21 homepage http://gcc.gnu.org/ 23 master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/snapshots/${version}/ \ 24 ftp://gcc.gnu.org/pub/gcc/snapshots/${version}/ \ 25 http://gcc.skazkaforyou.com/snapshots/${version}/ 22 master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \ 23 ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \ 24 ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \ 25 ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \ 26 gnu:gcc/gcc-${version} 26 27 27 28 distname gcc-${version} 28 29 use_bzip2 yes 29 30 30 checksums rmd160 58ab8c87a1f78ec12135741844362089f0401e28\31 sha256 93d6e4b559c8191cb91dd49586a0020f0e239a119ccb7d329ff4d03e123c196a31 checksums rmd160 a228dc45a09eda91b1a201d234f9013b3009b461 \ 32 sha256 8a8136c235f64c6fef69cac0d73a46a1a09bb250776a050aec8f9fc880bebc17 32 33 33 34 depends_lib port:cctools \ 34 35 port:gmp \ 35 36 path:lib/pkgconfig/isl.pc:isl \ 36 37 port:ld64 \ 37 p ort:libgcc-devel\38 path:lib/libgcc/libgcc_s.1.dylib:libgcc \ 38 39 port:libiconv \ 39 40 port:libmpc \ 40 41 port:mpfr … … 49 50 50 51 # see https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00672.html 51 52 patchfiles-append patch-float128.diff 53 # cause `as` to be invoked with the -q option so that it 54 # invokes the clang integrated assembler (instead of the obsolete GNU as) 55 # `man as` claims that this is the default but clearly that is not true everywhere. 56 patchfiles-append patch-default-clang-assembler.diff 52 57 } 53 58 54 59 configure.dir ${workpath}/build … … 131 136 132 137 destroot.target install install-info-host 133 138 134 if {${subport} eq "libgcc-devel"} { 135 conflicts libgcc 139 set standardLibs {libgcc_ext.10.4.dylib libgcc_ext.10.5.dylib \ 140 libgcc_s.1.dylib libgfortran.4.dylib libquadmath.0.dylib \ 141 libstdc++.6.dylib libobjc-gnu.4.dylib libgomp.1.dylib \ 142 libitm.1.dylib libssp.0.dylib libasan.0.dylib libatomic.1.dylib} 143 144 if {${subport} eq "libgcc"} { 145 conflicts libgcc-devel 146 long_description-append \ 147 This port installs the standard runtime libraries, including libstdc++. 136 148 137 149 # http://trac.macports.org/ticket/35770 138 150 # http://trac.macports.org/ticket/38814 … … 146 158 # version should continue to provide a subport for that and older gcc 147 159 # versions. 148 160 149 depends_lib-delete p ort:libgcc-devel161 depends_lib-delete path:lib/libgcc/libgcc_s.1.dylib:libgcc 150 162 151 163 configure.args-delete --libdir=${prefix}/lib/${name} 152 164 configure.args-append --libdir=${prefix}/lib/libgcc … … 166 178 # Note that we really don't want to include libgcc_ext.10.[45].dylib here, but install_name_tool 167 179 # doesn't know how to change the id of stubs, and it's easier than recreating them for each 168 180 # gcc port. 169 set dylibs {libgcc_ext.10.4.dylib libgcc_ext.10.5.dylib libgcc_s.1.dylib libgfortran.4.dylib libquadmath.0.dylib libstdc++.6.dylib libobjc-gnu.4.dylib libgomp.1.dylib libitm.1.dylib libssp.0.dylib libasan.0.dylib libatomic.1.dylib}170 181 171 foreach dylib ${ dylibs} {182 foreach dylib ${standardLibs} { 172 183 # Different OS versions (eg: Leopard) or architectures (eg: PPC) don't produce all the dylibs 173 184 # https://trac.macports.org/ticket/40098 174 185 # https://trac.macports.org/ticket/40100 … … 208 219 # For binary compatibility with binaries that linked against the old libstdcxx port 209 220 ln -s libgcc/libstdc++.6.dylib ${destroot}${prefix}/lib/libstdc++.6.dylib 210 221 } 222 211 223 } else { 224 212 225 depends_run-append port:gcc_select 213 226 214 227 post-destroot { … … 221 234 file rename ${file} ${newfile} 222 235 } 223 236 224 foreach dylib {libgcc_ext.10.4.dylib libgcc_ext.10.5.dylib libgcc_s.1.dylib libgfortran.3.dylib libquadmath.0.dylib libstdc++.6.dylib libobjc-gnu.4.dylib libgomp.1.dylib libitm.1.dylib libssp.0.dylib libasan.0.dylib libatomic.1.dylib} {237 foreach dylib ${standardLibs} { 225 238 # Different OS versions (eg: Leopard) or architectures (eg: PPC) don't produce all the dylibs 226 239 # https://trac.macports.org/ticket/40098 227 240 # https://trac.macports.org/ticket/40100 … … 274 287 configure.universal_args 275 288 276 289 livecheck.type regex 277 livecheck.url ftp://gcc.gnu.org/pub/gcc/snapshots/278 livecheck.regex LATEST-${major} -> (${major}-\[0-9\]+)290 livecheck.url http://ftp.gnu.org/gnu/gcc/ 291 livecheck.regex gcc-(${major}\\.\[0-9.\]+)/