Ticket #37479: Portfile.patch
File Portfile.patch, 5.2 KB (added by internetzel, 12 years ago) |
---|
-
Portfile
old new 4 4 PortGroup select 1.0 5 5 6 6 name apple-gcc42 7 subport apple-gcc42-4.2.4 {} 7 8 version 5666.3 8 set gcc_version 4.2.19 9 revision 9 10 10 categories lang 11 11 platforms darwin 12 installs_libs no 13 14 if {${subport} == "apple-gcc42"} { 15 conflicts apple-gcc42-4.2.4 16 set gcc_version 4.2.1 12 17 license GPL-2 13 18 maintainers jeremyhu openmaintainer 14 installs_libs no15 19 16 20 description Apple's version of gcc 4.2 17 21 long_description Apple's version of the GNU compiler collection, \ 18 22 version 4.2. Supports C, Objective-C, anc C++ 23 } elseif {${subport} == "apple-gcc42-4.2.4"} { 24 conflicts apple-gcc42 25 set gcc_version 4.2.4 26 license GPL-3 27 maintainers openmaintainer 28 29 description Apple's version of gcc 4.2, merged with GNU gcc 4.2.4 30 long_description Apple's version of the GNU compiler collection, \ 31 version 4.2. Supports C, Objective-C, anc C++. \ 32 Missing bug fixes from GNU gcc 4.2.2 up to 4.2.4 \ 33 are applied to this release 34 } 19 35 20 36 homepage http://opensource.apple.com/ 21 master_sites gnu:/gcc/gcc- 4.2.1:gnu \37 master_sites gnu:/gcc/gcc-${gcc_version}:gnu \ 22 38 http://opensource.apple.com/tarballs/gcc/:apple 23 39 24 40 distname gcc-${version} … … 44 60 # sha1 4615c85ef9010304bf412adc2f2c33d256e177fd \ 45 61 # rmd160 bb4b256f7e7779361214593343821a127ee78d1a 46 62 63 # gcc-fortran-4.2.4.tar.bz2 \ 64 # md5 d8896f33f91eca12135df2c1e5aa0887 \ 65 # sha1 ? \ 66 # rmd160 ? \ 67 # gcc-java-4.2.4.tar.bz2 \ 68 # md5 dd05ac72f8563c98af6946f9334668f1 \ 69 # sha1 ? \ 70 # rmd160 ? 71 47 72 # Needed for gfortran: 48 73 #files/other_langs.patch: 49 74 #+ --with-gmp=$DEST_ROOT \ … … 84 109 driverdriver-num_infiles.patch \ 85 110 driverdriver-armcheck.patch 86 111 112 if {${subport} == "apple-gcc42-4.2.4"} { 113 patchfiles-append gcc-4.2.1-4.2.4.patch 114 } 115 87 116 # gcj fails to build: 88 117 # gcc/java/lang.c: In function 'java_init': 89 118 # gcc/java/lang.c:378: error: 'force_align_functions_log' undeclared (first use in this function) … … 226 255 destroot {} 227 256 post-destroot { 228 257 if {[string match "*i386*" ${build_targets}]} { 229 delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/ 4.2.1/as230 ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/ 4.2.1/as231 delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/ 4.2.1/ld232 ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/ 4.2.1/ld258 delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/as 259 ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/as 260 delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/ld 261 ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/ld 233 262 234 263 # http://trac.macports.org/ticket/35770 235 delete ${destroot}${prefix}/lib/${name}/gcc/i686-apple-darwin${os.major}/ 4.2.1/libstdc++.dylib236 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/gcc/i686-apple-darwin${os.major}/ 4.2.1/libstdc++.dylib264 delete ${destroot}${prefix}/lib/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 265 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 237 266 } 238 267 239 268 if {[string match "*ppc*" ${build_targets}]} { 240 delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/ 4.2.1/as241 ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/ 4.2.1/as242 delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/ 4.2.1/ld243 ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/ 4.2.1/ld269 delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/as 270 ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/as 271 delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/ld 272 ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/ld 244 273 245 274 # http://trac.macports.org/ticket/35770 246 delete ${destroot}${prefix}/lib/${name}/gcc/powerpc-apple-darwin${os.major}/ 4.2.1/libstdc++.dylib247 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/gcc/powerpc-apple-darwin${os.major}/ 4.2.1/libstdc++.dylib275 delete ${destroot}${prefix}/lib/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 276 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 248 277 } 249 278 } 250 279