pkgsrc/print/tex-tetex/format.mk
jperkin e335c8910c Remove mk/find-prefix.mk usage from the print category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:53:09 +00:00

23 lines
722 B
Makefile

# $NetBSD: format.mk,v 1.2 2015/11/25 12:53:09 jperkin Exp $
#
# This Makefile fragment is intended to be included by packages that
# install TeX format files. It creates format files at
# (de)installation time.
#
# The following variable can be defined:
#
# TEX_FORMATS - A list of parameters to build formats
#
.if !defined(TEX_FORMAT_MK)
TEX_FORMAT_MK= # defined
DEPENDS+= tex-tetex>=3.0.27774:../../print/tex-tetex
FILES_SUBST+= FMTUTIL_SYS=${LOCALBASE}/bin/fmtutil-sys
FILES_SUBST+= FORMATS=${TEX_FORMATS:Q}
FILES_SUBST+= PRINTF=${PRINTF:Q}
INSTALL_TEMPLATES+= ../../print/tex-tetex/files/format-install.tmpl
DEINSTALL_TEMPLATES+= ../../print/tex-tetex/files/format-deinstall.tmpl
.endif # TEX_FORMAT_MK