I’ve started to work on moving out the fetch code from bsd.port.mk, which fetches all the distfiles and patchfiles for ports, because this makes bsd.port.mk pretty messy. The fetch code is about 12 pages of A4 and located in bsd.port.mk in bunches, not as a whole. The task is quite simple, I need to convert make if and for cluases to shell, as well as the make substitution expressions.
Besided, I’m still working on DESTDIR. In the exp run, my patches broke some extra ports, that were not broken on the latest i386-7 run, so I need to investigate what caused these breakages.