You may find a formula with Hugin and use that in the lensfun XML. It’s fiddly and takes a while. I went that way with a 15mm lens with heavy distortion and got a very good result.
Anamorphic lenses are mainly, if not only, video lenses. I wouldn’t use it for pix.
That’s basically what @st.raw and @chhil were talking about: use Hugin to calculate the parameters to use in Lensfun, for the specific anamorphic lens.
Lensfun is more or less just a database (in XML format) with data of various lenses. If your lens is not in it, you can try your luck with a similar lens. Or try to create some XML data yourself with Hugin. This said, I am not sure if Hugin has a model for ‘anamorphic’ lenses, they have a rather specific distortion.
Somebody mentioned DaVinci (they have a totally free version), they are more video oriented, but have some image tools. Maybe they can do something (DaVinci needs 16Mb RAM, or won’t start)
If you (or the software you use) uses libraw, you can set the libraw_image_sizes_t structure element pixel_aspect to a floating-point number, and I expect that would work, but I haven’t tried it.