Ticket #35770: libstdcxx.patch
File libstdcxx.patch, 11.0 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 12 years ago) |
---|
-
lang/gcc42/Portfile
5 5 6 6 name gcc42 7 7 version 4.2.4 8 revision 58 revision 6 9 9 platforms darwin 10 10 categories lang 11 11 maintainers mww openmaintainer … … 41 41 universal_variant no 42 42 43 43 depends_lib port:gmp port:mpfr port:libiconv 44 depends_run port:gcc_select port:ld64 port:cctools 44 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc++.dylib:libstdcxx 45 45 46 46 depends_skip_archcheck-append gcc_select ld64 cctools 47 47 … … 119 119 # http://trac.macports.org/ticket/35770 120 120 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 121 121 122 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 123 122 124 # This symlink is provided as a transition aide and will be removed 123 125 # with a future revision of this port. 124 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib126 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 125 127 } 126 128 127 129 post-destroot { -
lang/gcc43/Portfile
5 5 6 6 name gcc43 7 7 version 4.3.6 8 revision 58 revision 6 9 9 platforms darwin 10 10 categories lang 11 11 maintainers mww openmaintainer … … 54 54 rmd160 cde38f66b4b952f52938dc50d7606a0e1ccc7d2f 55 55 56 56 depends_lib port:gmp port:mpfr port:libiconv 57 depends_run port:gcc_select port:ld64 port:cctools 57 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc++.dylib:libstdcxx 58 58 59 59 depends_skip_archcheck-append gcc_select ld64 cctools 60 60 … … 139 139 # http://trac.macports.org/ticket/35770 140 140 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 141 141 142 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 143 142 144 # This symlink is provided as a transition aide and will be removed 143 145 # with a future revision of this port. 144 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib146 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 145 147 } 146 148 147 149 select.group gcc -
lang/gcc44/Portfile
6 6 name gcc44 7 7 epoch 1 8 8 version 4.4.7 9 revision 39 revision 4 10 10 platforms darwin 11 11 categories lang 12 12 maintainers mww openmaintainer … … 55 55 rmd160 660d8e2f8162458e463de6195e58391ee711ed59 56 56 57 57 depends_lib port:gmp port:mpfr port:libiconv 58 depends_run port:gcc_select port:ld64 port:cctools 58 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc++.dylib:libstdcxx 59 59 60 60 depends_skip_archcheck-append gcc_select ld64 cctools 61 61 … … 144 144 # http://trac.macports.org/ticket/35770 145 145 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 146 146 147 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 148 147 149 # This symlink is provided as a transition aide and will be removed 148 150 # with a future revision of this port. 149 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib151 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 150 152 } 151 153 152 154 select.group gcc -
lang/gcc45/Portfile
6 6 name gcc45 7 7 epoch 1 8 8 version 4.5.4 9 revision 39 revision 4 10 10 platforms darwin 11 11 categories lang 12 12 maintainers mww openmaintainer … … 60 60 sha256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 61 61 62 62 depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl 63 depends_run port:gcc_select port:ld64 port:cctools 63 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc++.dylib:libstdcxx 64 64 65 65 depends_skip_archcheck-append gcc_select ld64 cctools 66 66 … … 149 149 # http://trac.macports.org/ticket/35770 150 150 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 151 151 152 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 153 152 154 # This symlink is provided as a transition aide and will be removed 153 155 # with a future revision of this port. 154 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib156 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 155 157 } 156 158 157 159 select.group gcc -
lang/gcc46/Portfile
6 6 name gcc46 7 7 epoch 1 8 8 version 4.6.3 9 revision 69 revision 7 10 10 platforms darwin 11 11 categories lang 12 12 maintainers mww openmaintainer … … 46 46 sha256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 47 47 48 48 depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl port:cloog 49 depends_run port:gcc_select port:ld64 port:cctools 49 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc++.dylib:libstdcxx 50 50 51 51 depends_skip_archcheck-append gcc_select ld64 cctools 52 52 … … 128 128 # http://trac.macports.org/ticket/35770 129 129 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 130 130 131 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 132 131 133 # This symlink is provided as a transition aide and will be removed 132 134 # with a future revision of this port. 133 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib135 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 134 136 } 135 137 136 138 select.group gcc -
lang/gcc47/Portfile
4 4 PortGroup select 1.0 5 5 6 6 name gcc47 7 subport libstdcxx {} 7 8 epoch 1 8 9 version 4.7.1 9 revision 410 revision 5 10 11 platforms darwin 11 12 categories lang 12 13 maintainers mww openmaintainer … … 44 45 sha256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 45 46 46 47 depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl port:cloog 47 depends_run port:gcc_select port:ld64 port:cctools 48 depends_run port:gcc_select port:ld64 port:cctools path:lib/libstdc++.dylib:libstdcxx 48 49 49 50 depends_skip_archcheck-append gcc_select ld64 cctools 50 51 … … 117 118 118 119 destroot.target install install-info-host 119 120 121 # TODO: Optimize this. We don't need to actually bootstrap gcc to build libstdc++ 122 if {${subport} == "libstdcxx"} { 123 depends_run-delete port:${subport} 124 125 configure.args-delete --libdir=${prefix}/lib/${name} 126 127 configure.args-delete --enable-languages=c,c++,objc,obj-c++,lto,fortran,java 128 configure.args-append --enable-languages=c++ 129 130 destroot.target install-target-libstdc++-v3 131 132 post-destroot { 133 eval delete [glob ${destroot}${prefix}/lib/*{a,py}] 134 file delete -force ${destroot}${prefix}/share/gcc-${major} 135 file delete -force ${destroot}${prefix}/include/${name} 136 } 137 } else { 120 138 post-destroot { 121 139 file delete -force ${destroot}${prefix}/share/man/man7 \ 122 140 ${destroot}${prefix}/share/info … … 128 146 # http://trac.macports.org/ticket/35770 129 147 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 130 148 149 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 150 131 151 # This symlink is provided as a transition aide and will be removed 132 152 # with a future revision of this port. 133 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib153 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 134 154 } 135 155 136 156 select.group gcc 137 157 select.file ${filespath}/mp-${name} 138 158 159 } 160 139 161 platform powerpc { 140 162 configure.universal_archs ppc ppc64 141 163 } -
lang/gcc48/Portfile
4 4 PortGroup select 1.0 5 5 6 6 name gcc48 7 subport libstdcxx-devel {} 7 8 version 4.8-20120909 8 revision 29 revision 3 9 10 platforms darwin 10 11 categories lang 11 12 maintainers mww openmaintainer … … 32 33 use_bzip2 yes 33 34 34 35 depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl port:cloog 35 depends_run port:gcc_select port:ld64 port:cctools 36 depends_run port:gcc_select port:ld64 port:cctools port:libstdcxx-devel 36 37 37 38 depends_skip_archcheck-append gcc_select ld64 cctools 38 39 … … 98 99 99 100 destroot.target install install-info-host 100 101 102 # TODO: Optimize this. We don't need to actually bootstrap gcc to build libstdc++ 103 if {${subport} == "libstdcxx-devel"} { 104 depends_run-delete port:${subport} 105 106 configure.args-delete --libdir=${prefix}/lib/${name} 107 108 configure.args-delete --enable-languages=c,c++,objc,obj-c++,lto,fortran,java 109 configure.args-append --enable-languages=c++ 110 111 destroot.target install-target-libstdc++-v3 112 113 post-destroot { 114 eval delete [glob ${destroot}${prefix}/lib/*{a,py}] 115 file delete -force ${destroot}${prefix}/share/gcc-${major} 116 file delete -force ${destroot}${prefix}/include/${name} 117 } 118 } else { 101 119 post-destroot { 102 120 file delete -force ${destroot}${prefix}/share/man/man7 \ 103 121 ${destroot}${prefix}/share/info … … 109 127 # http://trac.macports.org/ticket/35770 110 128 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 111 129 130 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 131 112 132 # This symlink is provided as a transition aide and will be removed 113 133 # with a future revision of this port. 114 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib134 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 115 135 } 116 136 117 137 select.group gcc 118 138 select.file ${filespath}/mp-${name} 119 139 140 } 141 120 142 platform powerpc { 121 143 configure.universal_archs ppc ppc64 122 144 }