Ticket #37479: Portfile-variant.patch
File Portfile-variant.patch, 5.7 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 12 years ago) |
---|
-
Portfile
9 9 revision 9 10 10 categories lang 11 11 platforms darwin 12 license 12 license GPL-2 13 13 maintainers jeremyhu openmaintainer 14 installs_libs no14 installs_libs no 15 15 16 16 description Apple's version of gcc 4.2 17 17 long_description Apple's version of the GNU compiler collection, \ 18 18 version 4.2. Supports C, Objective-C, anc C++ 19 19 20 variant gpl3 description {Merge in changes from gcc-4.2.4} { 21 license GPL-3 22 set gcc_version 4.2.4 23 maintainers googlemail.com:tobias.netzel openmaintainer 24 25 patchfiles-append gcc-4.2.1-4.2.4.patch 26 } 27 20 28 homepage http://opensource.apple.com/ 21 master_sites gnu:/gcc/gcc- 4.2.1:gnu \29 master_sites gnu:/gcc/gcc-${gcc_version}:gnu \ 22 30 http://opensource.apple.com/tarballs/gcc/:apple 23 31 24 32 distname gcc-${version} … … 30 38 distfiles ${dcore}:apple 31 39 # ${dfort}:gnu ${djava}:gnu 32 40 33 checksums gcc-5666.3.tar.gz \ 34 md5 188c7769db5c898922b0976fab148a63 \ 35 sha1 292a0cfcfdc061cb083658efd9a3812a120a1f50 \ 36 rmd160 a01d000f89c0e89dd0079dcd202bba7629ba78dc 41 checksums gcc-4.2.1-4.2.4.patch \ 42 rmd160 c622d642511ed84853520b3b96cfdf5767bb7b2d \ 43 sha256 829f98bc2237ef8723125b6714e2bcc1341310186ffa5c62cca86aa4f6617191 \ 44 gcc-5666.3.tar.gz \ 45 rmd160 a01d000f89c0e89dd0079dcd202bba7629ba78dc \ 46 sha256 6c46f4376d11ada5be0cfc3894b9296edf574af3c616ab71803ea78edfd7015b 37 47 38 48 # gcc-fortran-4.2.1.tar.bz2 \ 39 49 # md5 2a91d467b50a404ca0cd3b10b413f9b2 \ … … 44 54 # sha1 4615c85ef9010304bf412adc2f2c33d256e177fd \ 45 55 # rmd160 bb4b256f7e7779361214593343821a127ee78d1a 46 56 57 # gcc-fortran-4.2.4.tar.bz2 \ 58 # md5 d8896f33f91eca12135df2c1e5aa0887 \ 59 # sha1 ? \ 60 # rmd160 ? \ 61 # gcc-java-4.2.4.tar.bz2 \ 62 # md5 dd05ac72f8563c98af6946f9334668f1 \ 63 # sha1 ? \ 64 # rmd160 ? 65 47 66 # Needed for gfortran: 48 67 #files/other_langs.patch: 49 68 #+ --with-gmp=$DEST_ROOT \ … … 77 96 # driverdriver-num_infiles.patch : Fix linking with no input files (ie all static archives passed with -l...) 78 97 # driverdriver-armcheck.patch : Build fix for the driverdriver when arm support is not available (eg: Tiger) 79 98 80 patchfiles \99 patchfiles-append \ 81 100 werror-c-incpath.patch \ 82 101 werror-local-alloc.patch \ 83 102 incpath.patch \ … … 226 245 destroot {} 227 246 post-destroot { 228 247 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/ld248 delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/as 249 ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/as 250 delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/ld 251 ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/ld 233 252 234 253 # 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++.dylib254 delete ${destroot}${prefix}/lib/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 255 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/gcc/i686-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 237 256 } 238 257 239 258 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/ld259 delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/as 260 ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/as 261 delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/ld 262 ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/ld 244 263 245 264 # 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++.dylib265 delete ${destroot}${prefix}/lib/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 266 ln -s /usr/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/gcc/powerpc-apple-darwin${os.major}/${gcc_version}/libstdc++.dylib 248 267 } 249 268 } 250 269