[108385] trunk/dports/gis/gdal/Portfile

Vincent Habchi vince at macports.org
Mon Jul 22 13:15:47 PDT 2013


Ryan,

> To consolidate the redundant code, the gcc variants could be reduced to e.g.:
> 
> variant gcc45 {
>    configure.compiler macports-gcc-4.5
> }
> 
> And then later, it would do:
> 
> pre-build {
>    build.env-append CC=${configure.cc} CXX=${configure.cxx}
> }
> 
> pre-destroot {
>    destroot.env-append CC=${configure.cc} CXX=${configure.cxx}
> }

Well, I guess you’re right, that was not a good example at all. I give up, it’s too late, and the weather is too hot! But there will be a lot of housekeeping to do before we can safely rely just on configure.compiler to do the job.

Have a great day!
Vincent



More information about the macports-dev mailing list