[68232] trunk/dports/math/atlas/Portfile

Ryan Schmidt ryandesign at macports.org
Sat May 29 16:01:27 PDT 2010


On May 29, 2010, at 13:36, mcalhoun at macports.org wrote:

> Revision: 68232
>          http://trac.macports.org/changeset/68232
> Author:   mcalhoun at macports.org
> Date:     2010-05-29 11:36:53 -0700 (Sat, 29 May 2010)
> Log Message:
> -----------
> atlas: allow 32/64-bit universal build. Keep static libraries. Fixes #24923 (maintainer timeout).

[snip]

> +variant gcc43 conflicts gcc42 conflicts universal {}
> +variant gcc42 conflicts gcc43 conflicts universal {}
> +
> +if { [variant_isset gcc42] } {
> +  set gccversion    4.2
> +} elseif { [variant_isset gcc43] } {
> +  set gccversion    4.3
> +} else {
> +  set gccversion    4.4
> +}
> +
> +set gccnumber       [join [split ${gccversion} .] ""]
> +
> destroot.dir        ${build.dir}
> destroot.destdir    DESTDIR=${destroot}${prefix}
> -depends_lib         port:gcc43 \
> +depends_lib         port:gcc${gccnumber} \
>                     port:bzip2 \
>                     port:gzip
> 
> -universal_variant   no
> +configure.compiler  macports-gcc-${gccversion}
> 
> -# Set fortran compiler flags
> -set myf77           ${prefix}/bin/gfortran-mp-4.3

> -configure.args      -C xc ${prefix}/bin/gcc-mp-4.3 \
> -                    -C gc ${prefix}/bin/gcc-mp-4.3 \
> -                    -C if ${myf77} \
> -                    -C ic ${prefix}/bin/gcc-mp-4.3 \
> -                    -C dm ${prefix}/bin/gcc-mp-4.3 \
> -                    -C sm ${prefix}/bin/gcc-mp-4.3 \
> -                    -C dk ${prefix}/bin/gcc-mp-4.3 \
> -                    -C sk ${prefix}/bin/gcc-mp-4.3 \
> -                    --cc=${prefix}/bin/gcc-mp-4.3 \
> +configure.args      -C xc ${configure.cc} \
> +                    -C gc ${configure.cc} \
> +                    -C if ${configure.f77} \
> +                    -C ic ${configure.cc} \
> +                    -C dm ${configure.cc} \
> +                    -C sm ${configure.cc} \
> +                    -C dk ${configure.cc} \
> +                    -C sk ${configure.cc} \
> +                    --cc=${configure.cc} \
>                     -b ${my_arch} \
>                     -Fa alg -fPIC 
> 
> -configure.compiler  macports-gcc-4.3
> -configure.cc        ${prefix}/bin/gcc-mp-4.3  
> -configure.cxx       ${prefix}/bin/g++-mp-4.3
> -build.env-append    "CC=${prefix}/bin/gcc-mp-4.3 CXX=${prefix}/bin/g++-mp-4.3"

> +build.env-append    "CC=${configure.cc} CXX=${configure.cxx}"


Thank you for de-gcc43-hardcoding this port! I had tried to do so awhile ago but got stuck somewhere.




More information about the macports-dev mailing list