Ticket #20838: Portfile_final.diff
File Portfile_final.diff, 2.4 KB (added by howarth@…, 15 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name gcc44 6 epoch 16 epoch 2 7 7 version 4.4.1 8 8 platforms darwin 9 9 categories lang … … 42 42 43 43 set major 4.4 44 44 45 patchfiles gcc44-config.guess.diff \ 46 gcc44-PR41180.diff \ 47 gcc44-disable-libjava.diff 45 48 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 49 pre-patch { 50 file mkdir ${worksrcpath} 62 51 } 52 patch.dir ${workpath}/gcc-${version} 53 54 configure.env-append CFLAGS_FOR_BUILD="${configure.cflags}" 55 configure.cc_archflags 56 configure.cxx_archflags 57 configure.objc_archflags 63 58 64 59 pre-configure { 65 60 file mkdir ${worksrcpath} … … 77 72 --program-suffix=-mp-${major} \ 78 73 --with-gxx-include-dir=${prefix}/include/${name}/c++/ \ 79 74 --with-gmp=${prefix} \ 80 --with-mpfr=${prefix} 75 --with-mpfr=${prefix} \ 76 --disable-libjava-multilib 81 77 # do NOT use MacPorts binutils -- they do not work 82 78 configure.env-append AR_FOR_TARGET=/usr/bin/ar \ 83 79 AS_FOR_TARGET=/usr/bin/as \ … … 104 100 xinstall -m 444 ${filespath}/mp-gcc44 ${destroot}${prefix}/etc/select/gcc/ 105 101 } 106 102 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 103 # odcctools currently do not compile for x64 - move to variant for the time being 118 104 variant odcctools \ 119 105 description "Use the odcctools instead of the system provided ones - does not work for x64 currently!" {