Created attachment 189055 [details]
Patch adding a knob for the optional 'guile' feature compilation
The attached patch add a knob which optionally enable the compilation of gmake with the 'guile' feature, it provides the evaluation of Scheme functions within makefiles.
The problem is that lang/guile2 depends on devel/gmake so this patch introduces a circular dependency.
(In reply to Tijl Coosemans from comment #1)
That is obviously a difficult problem. I'm not versed into the arcane arts of the ports infrastructure, would it be possible to automatically build the port in several stages when the SCHEME option is enabled and guile not yet installed?
Stage 1: build and install gmake after disabling the SCHEME option.
Stage 2: clean the stage 1 build.
Stage 3: build again with the option enabled (this would pull the guile dependency) but do not install yet.
Stage 4: forcibly delete the stage 1 installation.
Stage 5: install the stage 3 build.