Ticket #38774: Portfile.diff
File Portfile.diff, 4.2 KB (added by howarth@…, 12 years ago) |
---|
-
Portfile
old new 6 6 PortGroup compiler_blacklist_versions 1.0 7 7 8 8 name gcc47 9 subport libstdcxx {}10 9 epoch 1 11 10 12 11 version 4.7.3 13 revision 012 revision 1 14 13 platforms darwin 15 14 categories lang 16 15 maintainers mww openmaintainer … … 54 53 depends_skip_archcheck-append gcc_select ld64 cctools 55 54 license_noconflict gmp mpfr ppl libmpc 56 55 57 patchfiles ppc_fde_encoding.diff gcc-PR-53453.patch 56 patchfiles ppc_fde_encoding.diff gcc-PR-53453.patch libstdc++_nanosleep.patch 58 57 patch.dir ${workpath}/gcc-${version} 59 58 60 59 set major 4.7 … … 92 91 --enable-stage1-checking \ 93 92 --disable-multilib \ 94 93 --enable-lto \ 95 --enable-libstdcxx-time \96 94 --with-as=${prefix}/bin/as \ 97 95 --with-ld=${prefix}/bin/ld \ 98 96 --with-ar=${prefix}/bin/ar \ … … 126 124 127 125 destroot.target install install-info-host 128 126 129 if {${subport} == "libstdcxx"} {130 conflicts libstdcxx-devel131 132 patchfiles-append force-static-gcc.patch133 134 depends_run-delete path:lib/libstdc\\\\+\\\\+.6.dylib:libstdcxx135 136 configure.args-delete --libdir=${prefix}/lib/${name}137 138 configure.args-delete --enable-languages=c,c++,objc,obj-c++,lto,fortran,java139 configure.args-append --enable-languages=c++140 141 # http://trac.macports.org/ticket/36116142 compiler.blacklist-append {clang < 425}143 144 configure.args-append --disable-bootstrap145 build.target all146 147 destroot.target install-target-libstdc++-v3148 149 post-destroot {150 eval file delete [glob ${destroot}${prefix}/lib/*{a,py}]151 file delete -force ${destroot}${prefix}/share/gcc-${major}152 file delete -force ${destroot}${prefix}/include/${name}153 154 # Don't install the linktime symlink. The compilers will place this155 # in their libdir, and we don't want to break other toolchains by having156 # them link against this libstdc++ (at least not until it is built on157 # top of libc++abi).158 file delete ${destroot}${prefix}/lib/libstdc++.dylib159 160 # For compatibility. Delete this eventually.161 system "touch ${destroot}${prefix}/lib/.libstdcxx"162 163 if {[variant_isset universal]} {164 foreach archdir [glob ${destroot}${prefix}/lib/*/] {165 if {[file exists ${archdir}/libstdc++.6.dylib]} {166 system "install_name_tool -id ${prefix}/lib/libstdc++.6.dylib ${archdir}/libstdc++.6.dylib"167 system "lipo -create -output ${destroot}${prefix}/lib/libstdc++.6.dylib~ ${destroot}${prefix}/lib/libstdc++.6.dylib ${archdir}/libstdc++.6.dylib && mv ${destroot}${prefix}/lib/libstdc++.6.dylib~ ${destroot}${prefix}/lib/libstdc++.6.dylib"168 }169 file delete -force ${archdir}170 }171 }172 }173 } else {174 127 post-destroot { 175 128 file delete -force ${destroot}${prefix}/share/man/man7 \ 176 129 ${destroot}${prefix}/share/info … … 193 146 194 147 # http://trac.macports.org/ticket/35770 195 148 eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*] 149 eval delete [glob ${destroot}${prefix}/lib/${name}/libgcc*dylib] 196 150 197 151 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib 152 ln -s ${prefix}/lib/libgcc_ext.10.4.dylib ${destroot}${prefix}/lib/${name}/libgcc_ext.10.4.dylib 153 ln -s ${prefix}/lib/libgcc_ext.10.5.dylib ${destroot}${prefix}/lib/${name}/libgcc_ext.10.5.dylib 154 ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s.1.dylib 155 ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s_ppc64.1.dylib 156 ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s_x86_64.1.dylib 198 157 199 158 # This symlink is provided as a transition aide and will be removed 200 159 # with a future revision of this port. 201 160 ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.6.dylib 202 }203 161 204 162 select.group gcc 205 163 select.file ${filespath}/mp-${name}