Ticket #38758: Portfile.diff
File Portfile.diff, 7.0 KB (added by howarth@…, 12 years ago) |
---|
-
Portfile
old new 5 5 PortGroup compiler_blacklist_versions 1.0 6 6 7 7 name gcc48 8 subport libstdcxx-devel {} 8 subport libstdcxx {} 9 epoch 1 9 10 10 # Remove the revision in libstdcxx-devel when bumping 11 version 4.8-20130404 12 revision 1 11 version 4.8.0 13 12 platforms darwin 14 13 categories lang 15 14 maintainers mww openmaintainer 16 15 # an exception in the license allows dependents to not be GPL 17 16 license {GPL-3+ Permissive} 18 description The GNU compiler collection , prerelease BETA17 description The GNU compiler collection 19 18 long_description The GNU compiler collection, including front ends for \ 20 C, C++, Objective-C, Objective-C++, Fortran and Java. \ 21 This is a prerelease BETA version! 19 C, C++, Objective-C, Objective-C++, Fortran and Java. 22 20 23 21 homepage http://gcc.gnu.org/ 24 master_sites http://gcc.petsads.us/snapshots/${version} \ 25 ftp://ftp.gwdg.de/pub/linux/gcc/snapshots/${version}/ \ 26 ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/snapshots/${version}/ \ 27 ftp://gcc.gnu.org/pub/gcc/snapshots/${version}/ \ 28 http://mirrors-us.seosue.com/gcc/snapshots/${version}/ \ 29 http://gcc.skazkaforyou.com/snapshots/${version}/ 22 master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/:gcc \ 23 ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/:gcc \ 24 ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/:gcc \ 25 ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/:gcc \ 26 gnu:gcc/gcc-${version}:gcc \ 27 ftp://sourceware.org/pub/java/:ecj \ 28 http://mirrors.kernel.org/sources.redhat.com/java/:ecj \ 29 http://www.mirrorservice.org/sites/sources.redhat.com/pub/java/:ecj \ 30 http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/java/:ecj 30 31 31 32 distname gcc-${version} 32 33 33 checksums rmd160 b5ac698129f3be6c4a6e6424b71ee51041ce9bb9 \ 34 sha256 428088223bec4ab6b832196ac84da1ae25ac72bf26403b49851a20a19d4d915e 34 set ecj ecj-4.5.jar 35 35 36 supported_archs i386 x86_64 36 checksums gcc-${version}.tar.bz2 \ 37 rmd160 0000f2af2aa4daa32108ba4725938833684f6937 \ 38 sha256 b037fe5132b71ecad2ea7141ec92292b5d32427bf90fd90cde432b1d5abacc2c \ 39 ${ecj} \ 40 rmd160 d3f4da657f086b6423f74e93f001132f4855368a \ 41 sha256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 37 42 38 43 use_bzip2 yes 39 44 45 distfiles [suffix ${distname}]:gcc ${ecj}:ecj 46 47 extract.only [suffix ${distname}] 48 40 49 depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl port:cloog 41 depends_run port:gcc_select port:ld64 port:cctools p ort:libstdcxx-devel50 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc\\\\+\\\\+.6.dylib:libstdcxx 42 51 43 52 depends_skip_archcheck-append gcc_select ld64 cctools 44 53 license_noconflict gmp mpfr ppl libmpc 45 54 55 patchfiles skip-libffi-install.patch 46 56 patch.dir ${workpath}/gcc-${version} 47 57 48 58 set major 4.8 … … 51 61 52 62 post-extract { 53 63 file mkdir ${worksrcpath} 64 copy ${distpath}/${ecj} ${workpath}/${distname}/ecj.jar 54 65 } 55 66 56 67 platform darwin { … … 58 69 } 59 70 60 71 configure.cmd ../gcc-${version}/configure 61 configure.args --enable-languages=c,c++,objc,obj-c++, fortran,java \72 configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran,java \ 62 73 --libdir=${prefix}/lib/${name} \ 63 74 --includedir=${prefix}/include/${name} \ 64 75 --infodir=${prefix}/share/info \ 65 76 --mandir=${prefix}/share/man \ 66 77 --datarootdir=${prefix}/share/gcc-${major} \ 78 --with-libiconv-prefix=${prefix} \ 67 79 --with-local-prefix=${prefix} \ 68 80 --with-system-zlib \ 69 81 --disable-nls \ … … 78 90 --enable-stage1-checking \ 79 91 --disable-multilib \ 80 92 --enable-lto \ 81 --enable-libstdcxx-time \82 93 --with-as=${prefix}/bin/as \ 83 94 --with-ld=${prefix}/bin/ld \ 84 95 --with-ar=${prefix}/bin/ar \ … … 110 121 111 122 destroot.target install install-info-host 112 123 113 if {${subport} == "libstdcxx-devel"} { 114 conflicts libstdcxx 115 116 patchfiles-append force-static-gcc.patch 124 if {${subport} == "libstdcxx"} { 125 conflicts libstdcxx-devel 117 126 118 depends_run-delete p ort:${subport}127 depends_run-delete path:lib/libstdc\\\\+\\\\+.6.dylib:libstdcxx 119 128 120 129 configure.args-delete --libdir=${prefix}/lib/${name} 121 130 122 131 configure.args-delete --enable-languages=c,c++,objc,obj-c++,lto,fortran,java 123 configure.args-append --enable-languages=c ++132 configure.args-append --enable-languages=c,c++ 124 133 125 134 # http://trac.macports.org/ticket/36116 126 135 compiler.blacklist-append {clang < 425} 127 136 128 configure.args-append --disable-bootstrap 129 build.target all 137 build.target 130 138 131 139 destroot.target install-target-libstdc++-v3 132 140 133 141 post-destroot { 134 142 eval file delete [glob ${destroot}${prefix}/lib/*{a,py}] 135 eval file delete [glob ${destroot}${prefix}/lib/libgcc*]136 143 file delete -force ${destroot}${prefix}/lib/gcc 137 144 file delete -force ${destroot}${prefix}/share/gcc-${major} 138 145 file delete -force ${destroot}${prefix}/include/${name} … … 179 186 180 187 # http://trac.macports.org/ticket/35770 181 188 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 189 eval delete [glob ${destroot}${prefix}/lib/${name}/libgcc*dylib] 182 190 183 191 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 192 ln -s ${prefix}/lib/libgcc_ext.10.4.dylib ${destroot}${prefix}/lib/${name}/libgcc_ext.10.4.dylib 193 ln -s ${prefix}/lib/libgcc_ext.10.5.dylib ${destroot}${prefix}/lib/${name}/libgcc_ext.10.5.dylib 194 ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s.1.dylib 195 ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s_ppc64.1.dylib 196 ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s_x86_64.1.dylib 184 197 185 198 # This symlink is provided as a transition aide and will be removed 186 199 # with a future revision of this port. … … 215 228 configure.universal_args 216 229 217 230 livecheck.type regex 218 livecheck.url ftp://gcc.gnu.org/pub/gcc/snapshots/219 livecheck.regex LATEST-4.8 -> (4.8-\[0-9\]+)231 livecheck.url http://gcc.gnu.org/gcc-4.8/ 232 livecheck.regex GCC (4\\.8\\.\[0-9\])