pkgsrc/print/tex-tetex/hyphen.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

27 lines
1,017 B
Makefile

# $NetBSD: hyphen.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 hyphenation pattens. It updates format files at
# (de)installation time.
#
# The following variable can be defined:
#
# TEX_HYPHEN_DAT - A list of hyphenation entries for language.dat.
# TEX_HYPHEN_DEF - A list of hyphenation entries for language.def.
# TEX_HYPHEN_LUA - A list of hyphenation entries for language.dat.lua.
#
.if !defined(TEX_HYPHEN_MK)
TEX_HYPHEN_MK= # defined
DEPENDS+= tex-hyphen-base>=2010nb1:../../print/tex-hyphen-base
DEPENDS+= tex-tetex>=3.0.27774nb1:../../print/tex-tetex
FILES_SUBST+= FMTUTIL_SYS=${LOCALBASE}/bin/fmtutil-sys
FILES_SUBST+= HYPHEN_DAT=${TEX_HYPHEN_DAT:Q}
FILES_SUBST+= HYPHEN_DEF=${TEX_HYPHEN_DEF:Q}
FILES_SUBST+= HYPHEN_LUA=${TEX_HYPHEN_LUA:Q}
INSTALL_TEMPLATES+= ../../print/tex-tetex/files/hyphen-install.tmpl
DEINSTALL_TEMPLATES+= ../../print/tex-tetex/files/hyphen-deinstall.tmpl
.endif # TEX_HYPHEN_MK