Ticket #20838: Portfile_optimized.diff
File Portfile_optimized.diff, 2.7 KB (added by howarth@…, 15 years ago) |
---|
-
Portfile.
old new 5 5 name gcc44 6 6 epoch 1 7 7 version 4.4.1 8 revision 1 8 9 platforms darwin 9 10 categories lang 10 11 maintainers mww … … 42 43 43 44 set major 4.4 44 45 46 patchfiles gcc44-config.guess.diff \ 47 gcc44-PR41180.diff \ 48 gcc44-disable-libjava.diff 45 49 worksrcdir build 46 47 # the generated compiler doesn't accept -arch 48 if {[info exists build_arch] && ${os.platform} == "darwin"} { 49 if {(${os.arch} == "i386" && $build_arch == "i386") || (${os.arch} == "powerpc" && $build_arch == "ppc")} { 50 configure.env-append CFLAGS_FOR_TARGET="-m32 ${configure.cflags}" 51 } elseif {(${os.arch} == "i386" && $build_arch == "x86_64") || (${os.arch} == "powerpc" && $build_arch == "ppc64")} { 52 configure.env-append CFLAGS_FOR_TARGET="-m64 ${configure.cflags}" 53 } else { 54 pre-fetch { 55 return -code error "Cannot build $name for $build_arch" 56 } 57 } 58 configure.env-append CFLAGS_FOR_BUILD="${configure.cc_archflags} ${configure.cflags}" 59 configure.cc_archflags 60 configure.cxx_archflags 61 configure.objc_archflags 50 pre-patch { 51 file mkdir ${worksrcpath} 62 52 } 53 patch.dir ${workpath}/gcc-${version} 54 55 configure.env-append CFLAGS_FOR_BUILD="${configure.cflags}" 56 configure.cc_archflags 57 configure.cxx_archflags 58 configure.objc_archflags 63 59 64 60 pre-configure { 65 61 file mkdir ${worksrcpath} … … 77 73 --program-suffix=-mp-${major} \ 78 74 --with-gxx-include-dir=${prefix}/include/${name}/c++/ \ 79 75 --with-gmp=${prefix} \ 80 --with-mpfr=${prefix} 76 --with-mpfr=${prefix} \ 77 --disable-libjava-multilib 78 79 if {[info exists build_arch] && ${os.platform} == "darwin" && ${os.arch} == "i386" && $build_arch == "i386" } { 80 configure.args-append --with-arch=nocona --with-tune=generic --build=i686-apple-darwin${os.major} --host=i686-apple-darwin${os.major} --target=i686-apple-darwin${os.major} 81 } 82 81 83 # do NOT use MacPorts binutils -- they do not work 82 84 configure.env-append AR_FOR_TARGET=/usr/bin/ar \ 83 85 AS_FOR_TARGET=/usr/bin/as \ … … 104 106 xinstall -m 444 ${filespath}/mp-gcc44 ${destroot}${prefix}/etc/select/gcc/ 105 107 } 106 108 107 #platform darwin 7 {108 # configure.cflags-append -force_cpusubtype_ALL109 # confgiure.env BOOT_CFLAGS="-g -O2 -force_cpusubtype_ALL"110 # build.args-append XCFLAGS=-force_cpusubtype_ALL111 #}112 113 platform powerpc {114 configure.args-append --disable-multilib115 }116 117 109 # odcctools currently do not compile for x64 - move to variant for the time being 118 110 variant odcctools \ 119 111 description "Use the odcctools instead of the system provided ones - does not work for x64 currently!" {