unorthodox build setup?

Mark Brethen mark.brethen at gmail.com
Thu Oct 4 17:05:14 UTC 2018


I’d have to patch makefile and config.ac, at least. Can set variables be exported to global?  


Mark Brethen
mark.brethen at gmail.com



> On Oct 4, 2018, at 11:57 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
> 
> 
> On Oct 4, 2018, at 11:55, Mark Brethen wrote:
> 
>> There’s just one glitch, the name of the build directory is determined by 
>> 
>> BUILD = $(shell ../../scripts/findhost.sh $(shell src/config.guess))
>> 
>> I can set it after the extract phase like so
>> 
>> post-extract {
>> set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]
>> configure.dir ${worksrcdir}/${builddir}
>> }
>> 
>> but then configure.dir isn't global for the config/build phases, is it?
> 
> That's correct.
> 
> Can you fix the build system so that it uses a predictable build directory name (such as "build"), and then use that name in the portfile?
> 



More information about the macports-dev mailing list