adding post-configure changes to a portfile

Gagan Sidhu broly at mac.com
Sun Jul 6 02:27:32 UTC 2025


ok there's teh pre-build keyword and also reinplace.

but the bigger question is, with a multi-build phase like clang, how can someone use those to shoehorn the replacement strings *later* in the process?

for example, the build.ninja file in runtimes-bins isn't available until the build process is well-underway. like 6083/6945.

will the build system automatically call pre-build at each phase?

Thanks,
Gagan

> On Jul 5, 2025, at 5:44 PM, Gagan Sidhu via macports-dev <macports-dev at lists.macports.org> wrote:
> 
> is there a way i can edit the files after configure, before build?
> 
> like, i need to edit the files after ninja creates teh cmake files
> 
> Thanks,
> Gagan
> 



More information about the macports-dev mailing list