gcc44

Jack Howarth howarth at bromo.med.uc.edu
Sat Sep 12 20:51:12 PDT 2009


On Sat, Sep 12, 2009 at 11:45:47PM -0400, Jack Howarth wrote:
>    What options do we have in the Portfile syntax to
> to extract out the darwin release? On fink we used...
> 
> darwinvers=`uname -r|cut -f1 -d.`
> 
> in a bash shell script. I ask because the 32-bit 
> compiler build is unoptimized unless we manage to get...
> 
> if {[info exists build_arch] && ${os.platform} == "darwin"} {
>     if {(${os.arch} == "i386" && $build_arch == "i386") {
>         configure.post_args --with-arch=nocona --with-tune=generic --host=i686-apple-darwin10 --build=i686-apple-darwin10 --target=i686-apple-darwin10
>     }
> }
> 
> 
> but I need some syntax that will allow me to determine the numerical
> darwin release there...ie darwin8, darwin9, darwin10, etc.
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Doh. Nevermind, guess we can use...

 if {[info exists build_arch] && ${os.platform} == "darwin"} {
     if {(${os.arch} == "i386" && $build_arch == "i386") {
         configure.post_args --with-arch=nocona --with-tune=generic --host=i686-apple-darwin${os.major} --build=i686-apple-darwin{os.major} --target=i686-apple-darwin${os.major}
     }
 }



More information about the macports-dev mailing list