Anthony J. Bentley writes: > The diff below replaces MODFONT_TYPES with a mechanism similar to > MODFONT_DOCFILES: the port sets MODFONT_FONTFILES to a list of paths > (which may contain wildcards) relative to WRKSRC to install to the font > directory. This means 12 of the 14 custom install targets in ports using > the font module can be eliminated. (The other two were not trivial > conversions.) And many of the 50+ other font ports that don't use the > font module yet can now start using it, although I haven't converted any > in this diff.
And the manpage diff: Index: port-modules.5 =================================================================== RCS file: /cvs/src/share/man/man5/port-modules.5,v retrieving revision 1.269 diff -u -p -r1.269 port-modules.5 --- port-modules.5 9 Jul 2024 13:05:15 -0000 1.269 +++ port-modules.5 11 Jul 2024 10:09:11 -0000 @@ -697,7 +697,7 @@ it sets .Ev MODFONT_FAMILY should be set to the name of the font family. This sets -.Ev MODFONT_DIR +.Ev MODFONT_FONTDIR and .Ev MODFONT_DOCDIR using said family name. @@ -707,10 +707,15 @@ target is provided if the port itself do This installs fonts from .Ev WRKSRC in the distribution. -If one or more file extensions are listed in -.Ev MODFONT_TYPES , -files of those types will be used. -Otherwise, otf files are preferred, with a fallback to ttf. +If one or more filenames (relative to +.Ev WRKSRC ) +are listed in +.Ev MODFONT_FONTFILES , +they will be installed to +.Ev MODFONT_FONTDIR . +Otherwise, otf files in +.Ev WRKSRC +will be installed, with a fallback to ttf. If filenames (relative to .Ev WRKSRC ) are listed in