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.
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# $NetBSD: texmf.mk,v 1.8 2015/11/25 12:53:09 jperkin Exp $
|
|
#
|
|
# This Makefile fragment is intended to be included by packages that
|
|
# install TeX packages. It rebuilds the ls-R databases at
|
|
# (de)installation time.
|
|
#
|
|
# The following variable can be defined:
|
|
#
|
|
# TEX_TEXMF_DIRS - A list of texmf directories that need to update ls-R.
|
|
# Default: ${PREFIX}/share/texmf-dist
|
|
#
|
|
# TEX_CONFIG_NAMES - A list of config fragments to add to texmf.cnf.
|
|
#
|
|
# TEX_KANJIMAP_FILES
|
|
# See ../../print/texlive-tetex/map.mk.
|
|
#
|
|
# TEX_MAP_FILES
|
|
# See ../../print/texlive-tetex/map.mk.
|
|
#
|
|
# TEX_MIXEDMAP_FILES
|
|
# See ../../print/texlive-tetex/map.mk.
|
|
#
|
|
|
|
.if !defined(TEX_TEXMF_MK)
|
|
TEX_TEXMF_MK= # defined
|
|
|
|
DEPENDS+= kpathsea>=3.5.7:../../print/kpathsea
|
|
|
|
TEX_TEXMF_DIRS?= ${PREFIX}/share/texmf-dist
|
|
FILES_SUBST+= MKTEXLSR=${LOCALBASE}/bin/mktexlsr
|
|
FILES_SUBST+= TEXMF_DIRS=${TEX_TEXMF_DIRS:Q}
|
|
.if !empty(TEX_TEXMF_DIRS)
|
|
INSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-install.tmpl
|
|
DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-deinstall.tmpl
|
|
.endif
|
|
|
|
. if !empty(TEX_CONFIG_NAMES)
|
|
FILES_SUBST+= CONFIG_NAMES=${TEX_CONFIG_NAMES:Q}
|
|
INSTALL_TEMPLATES+= ../../print/kpathsea/files/config-install.tmpl
|
|
DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/config-deinstall.tmpl
|
|
. endif
|
|
|
|
.if !empty(TEX_FORMATS)
|
|
. include "../../print/tex-tetex/format.mk"
|
|
.endif
|
|
.if !empty(TEX_HYPHEN_DAT) || !empty(TEX_HYPHEN_DEF)
|
|
. include "../../print/tex-tetex/hyphen.mk"
|
|
.endif
|
|
.if !empty(TEX_KANJIMAP_FILES) || !empty(TEX_MAP_FILES) \
|
|
|| !empty(TEX_MIXEDMAP_FILES)
|
|
. include "../../print/tex-tetex/map.mk"
|
|
.endif
|
|
|
|
.endif # TEX_TEXMF_MK
|