| @@ -1,33 +1,35 @@ | | | @@ -1,33 +1,35 @@ |
1 | # $NetBSD: texmf.mk,v 1.2 2009/01/11 09:11:07 minskim Exp $ | | 1 | # $NetBSD: texmf.mk,v 1.3 2010/01/29 04:10:14 minskim Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is intended to be included by packages that | | 3 | # This Makefile fragment is intended to be included by packages that |
4 | # install TeX packages. It rebuilds the ls-R databases at | | 4 | # install TeX packages. It rebuilds the ls-R databases at |
5 | # (de)installation time. | | 5 | # (de)installation time. |
6 | # | | 6 | # |
7 | # The following variable can be defined: | | 7 | # The following variable can be defined: |
8 | # | | 8 | # |
9 | # TEX_TEXMF_DIRS - A list of texmf directories that need to update ls-R. | | 9 | # TEX_TEXMF_DIRS - A list of texmf directories that need to update ls-R. |
10 | # Default: ${PREFIX}/share/texmf-dist | | 10 | # Default: ${PREFIX}/share/texmf-dist |
11 | # | | 11 | # |
12 | # TEX_CONFIG_NAMES - A list of config fragments to add to texmf.cnf. | | 12 | # TEX_CONFIG_NAMES - A list of config fragments to add to texmf.cnf. |
13 | # | | 13 | # |
14 | | | 14 | |
15 | .if !defined(TEX_TEXMF_MK) | | 15 | .if !defined(TEX_TEXMF_MK) |
16 | TEX_TEXMF_MK= # defined | | 16 | TEX_TEXMF_MK= # defined |
17 | | | 17 | |
18 | DEPENDS+= kpathsea>=3.5.7:../../print/kpathsea | | 18 | DEPENDS+= kpathsea>=3.5.7:../../print/kpathsea |
19 | | | 19 | |
20 | TEX_TEXMF_DIRS?= ${PREFIX}/share/texmf-dist | | 20 | TEX_TEXMF_DIRS?= ${PREFIX}/share/texmf-dist |
21 | EVAL_PREFIX+= KPATHSEA_PREFIX=kpathsea | | 21 | EVAL_PREFIX+= KPATHSEA_PREFIX=kpathsea |
22 | FILES_SUBST+= MKTEXLSR=${KPATHSEA_PREFIX:Q}/bin/mktexlsr | | 22 | FILES_SUBST+= MKTEXLSR=${KPATHSEA_PREFIX:Q}/bin/mktexlsr |
23 | FILES_SUBST+= TEXMF_DIRS=${TEX_TEXMF_DIRS:Q} | | 23 | FILES_SUBST+= TEXMF_DIRS=${TEX_TEXMF_DIRS:Q} |
| | | 24 | .if !empty(TEX_TEXMF_DIRS) |
24 | INSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-install.tmpl | | 25 | INSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-install.tmpl |
25 | DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-deinstall.tmpl | | 26 | DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-deinstall.tmpl |
| | | 27 | .endif |
26 | | | 28 | |
27 | . if !empty(TEX_CONFIG_NAMES) | | 29 | . if !empty(TEX_CONFIG_NAMES) |
28 | FILES_SUBST+= CONFIG_NAMES=${TEX_CONFIG_NAMES:Q} | | 30 | FILES_SUBST+= CONFIG_NAMES=${TEX_CONFIG_NAMES:Q} |
29 | INSTALL_TEMPLATES+= ../../print/kpathsea/files/config-install.tmpl | | 31 | INSTALL_TEMPLATES+= ../../print/kpathsea/files/config-install.tmpl |
30 | DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/config-deinstall.tmpl | | 32 | DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/config-deinstall.tmpl |
31 | . endif | | 33 | . endif |
32 | | | 34 | |
33 | .endif # TEX_TEXMF_MK | | 35 | .endif # TEX_TEXMF_MK |