Commit graph

15 commits

Author SHA1 Message Date
wiz
dec806e5ed fonts.mk: hide echo itself, and improve quoting 2019-04-06 08:43:41 +00:00
maya
e1e1001a1a Fix previous properly:
Avoid matching newly created files in destdir and re-installing them
and erroring on install.

find | xargs achieves the same by coincidence.

suggested by kre.
2019-04-06 06:55:18 +00:00
maya
54a4b19da8 Tolerate uppercase .TTF (for uralic-ttf) and do a case-insensitive compare
use find -print | xargs to avoid hitting find limits.

Thanks leot for lots of help figuring out why some packages were failing.
2019-04-04 10:27:35 +00:00
maya
66557204a2 Add a generic fonts.mk makefile fragment.
Reviewed by rillig in
http://mail-index.netbsd.org/tech-pkg/2019/03/05/msg020895.html

I am only adding TTF and OTF handling because I don't know enough about
the other font formats. :)
2019-04-04 07:34:11 +00:00
wiz
aad076d3ad Remove deprecated and now unused file. 2006-02-18 10:02:36 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
jlam
f0aa85ac53 Re-implement the pkgsrc fonts-handling by integrating it into the
pkginstall framework:

  * Rewrite the mk/install/fonts script fragment as a scriptlet that's
    generated by the +INSTALL script during package installation.

  * Rename the FONTS_<TYPE>_DIRS variables to FONTS_DIRS.<type> to
    be more consistent with how "families" of variables are currently
    named in pkgsrc.

  * Rewrite mk/fonts.mk so that it's implemented in terms of the new
    functionality in the pkginstall framework.  This file will be
    obsoleted in the near future after packages have been transitioned
    to use the new functionality in the pkginstall framework.  Currently,
    packages will continue to work with no changes.

Integrating the fonts-handling into the pkginstall framework has the
benefit of generating a +FONTS scriptlet that may be run independently
of the +INSTALL scripts to (idempotently) update the fonts databases
and fix package installation errors.
2005-12-29 03:44:38 +00:00
joerg
ae4dbe9cb8 When MKFONTDIR is set, it is most likely used as well. Add a build time
dependency on it.
2005-12-28 17:54:20 +00:00
rillig
999f8b6e04 Applied all quoting fixes found by "pkglint --autofix". 2005-12-05 22:07:07 +00:00
wiz
bc871f8be3 Fix ttf/type1 handling in fonts.mk:
Previously, ttmkfdir's output was redirected to fonts.dir,
while the correct behaviour is to let it create fonts.scale
and then let mkfontdir merge fonts.scale into fonts.dir.
type1 handling had a similar problem.
Get the wanted behaviour by automatically appending the contents of
FONTS_TTF_DIRS and FONTS_TYPE1_DIRS to FONTS_X11_DIRS.
Also, save a subshell in install/fonts while there.

Bump PKGREVISION for all affected packages.

jmmv@ says ok.
2004-12-28 14:38:03 +00:00
recht
4dc7c39d0d Use ttmkfdir2 by default.
Closes PR 24934 by Martin Husemann.
2004-03-29 22:13:47 +00:00
jmmv
456a588def Handle font (de)installation before bsd.pkg.install.mk handles OWN_DIRS.
This way font directories are not automatically removed; the package must
define OWN_DIRS if it wants them to be deleted during deinstallation.
This is done to avoid removal of standard font directories (those that
appear in *.dist files).
2003-12-19 23:46:41 +00:00
jmmv
4bd7f0e8c7 Use ${.CURDIR} when referencing install/deinstall scripts. 2003-02-18 17:51:08 +00:00
seb
9b776bd8c4 Use EVAL_PREFIX on ttmkfdir and type1inst so LOCALBASE is not harcoded.
Okay'ed by jmmv.
2003-02-16 21:34:04 +00:00
jmmv
62f4d1bb45 Implement a simple framework to handle font databases. It regenerates the
fonts.dir, fonts.scale and Fontmap files (depending on the font type) in
the right directories at (de)install time.  Support included for TrueType,
Type1 and standard X11 fonts.

Reviewed by jlam.
2003-02-16 12:14:31 +00:00