Index | Thread | Search

From:
"Anthony J. Bentley" <bentley@openbsd.org>
Subject:
Re: woff2/woff support in font module
To:
ports@openbsd.org
Date:
Wed, 12 Nov 2025 06:19:05 -0700

Download raw body.

Thread
Anthony J. Bentley writes:
> Here's a diff that allows font ports to declare MODFONT_WEBFILES (just
> like they currently declare MODFONT_FONTFILES and MODFONT_DOCFILES) and
> have the module do the rest of the work, i.e., install them to
> /var/www/fonts. Also included are two examples (openmoji, public-sans)
> of what the result looks like: basically, set MULTI_PACKAGES = -main -web
> and MODFONT_WEBFILES, rerun 'make plist', and the module does the rest.

And the manpage diff:

--- share/man/man5/port-modules.5
+++ share/man/man5/port-modules.5
@@ -714,9 +714,10 @@ it sets
 .Ev MODFONT_FAMILY
 should be set to the name of the font family.
 This sets
-.Ev MODFONT_FONTDIR
+.Ev MODFONT_FONTDIR ,
+.Ev MODFONT_DOCDIR ,
 and
-.Ev MODFONT_DOCDIR
+.Ev MODFONT_WEBDIR
 using said family name.
 A
 .Cm do-install
@@ -739,6 +740,16 @@ are listed in
 .Ev MODFONT_DOCFILES ,
 they will be installed to
 .Ev MODFONT_DOCDIR .
+If filenames (relative to
+.Ev WRKSRC )
+are listed in
+.Ev MODFONT_WEBFILES ,
+they will be installed to
+.Ev MODFONT_WEBDIR ;
+ports that set
+.Ev MODFONT_WEBFILES
+must also declare a -web subpackage in
+.Ev MULTI_PACKAGES .
 .It fortran
 Sets
 .Ev MODFORTRAN_LIB_DEPENDS ,