blob: 6af893c2d31e6bbe37144e7f473b651a3f3f1f4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: texmf.mk,v 1.5 2012/03/04 01:03:59 minskim 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
EVAL_PREFIX+= KPATHSEA_PREFIX=kpathsea
FILES_SUBST+= MKTEXLSR=${KPATHSEA_PREFIX:Q}/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) || !empty(TEX_FORMAT_NAMES)
. include "../../print/texlive-tetex/format.mk"
.endif
.if !empty(TEX_HYPHEN_DAT) || !empty(TEX_HYPHEN_DEF)
. include "../../print/texlive-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
|