Minor version change of dependency causes major differences in pkg-plist

I ported an Elixir service which has a build dependency erlang_runtime26>=26.0. The problem is that on every minor version change of the dependency, I need to generate a new pkg-plist file because directory erts-13.2.2.4 is replaced by erts-14.0.0.2. There are around 10 directories which get replaced, with dozens of files. Is there a better way to manage pkg-plist in this situation?
 
Thank you! I think I found a, probably not optimal but working, solution - TMPPLIST. If someone needs inspiration to do the same, it can be found in java/eclipse's Makefile.
 
Ah, x11/linux-nvidia-libs/Makefile has a bunch of ${TMPPLIST} operations, too.

For simple version replacements, %%VarName%% method is used.
But for more complicated cases such as "this file is only available versions before x" cases, ${TMPPLIST} method, which removes unneeded lines/portions of lines using ${REINPLACE_CMD}, are used. So it's complicated to understand. But supports many legacy versions with single Makefile as master port.
 
Back
Top