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