| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: package.mk,v 1.2 2010/01/16 07:11:35 minskim Exp $ | | 1 | # $NetBSD: package.mk,v 1.3 2010/01/28 21:57:17 minskim Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is inteded to be included by packages that build | | 3 | # This Makefile fragment is inteded to be included by packages that build |
4 | # TeX Live packages. | | 4 | # TeX Live packages. |
5 | # | | 5 | # |
6 | # Package-settable variables: | | 6 | # Package-settable variables: |
7 | # | | 7 | # |
8 | # REPLACE_TEXLUA | | 8 | # REPLACE_TEXLUA |
9 | # A list of texlua scripts to be installed, relative to ${WRKSRC}. | | 9 | # A list of texlua scripts to be installed, relative to ${WRKSRC}. |
10 | # | | 10 | # |
11 | # TEX_FORMAT_NAMES | | 11 | # TEX_FORMAT_NAMES |
12 | # See ../../print/texlive-tetex/format.mk. | | 12 | # See ../../print/texlive-tetex/format.mk. |
13 | # | | 13 | # |
14 | # TEX_HYPHEN_DAT | | 14 | # TEX_HYPHEN_DAT |
| @@ -44,27 +44,28 @@ USE_TOOLS+= pax | | | @@ -44,27 +44,28 @@ USE_TOOLS+= pax |
44 | NO_BUILD?= yes | | 44 | NO_BUILD?= yes |
45 | WRKSRC?= ${WRKDIR} | | 45 | WRKSRC?= ${WRKDIR} |
46 | | | 46 | |
47 | .if defined(REPLACE_TEXLUA) | | 47 | .if defined(REPLACE_TEXLUA) |
48 | DEPENDS+= luatex-[0-9]*:../../print/luatex | | 48 | DEPENDS+= luatex-[0-9]*:../../print/luatex |
49 | | | 49 | |
50 | REPLACE_INTERPRETER= texlua | | 50 | REPLACE_INTERPRETER= texlua |
51 | REPLACE.texlua.old= .*texlua | | 51 | REPLACE.texlua.old= .*texlua |
52 | REPLACE.texlua.new= ${LOCALBASE}/bin/texlua | | 52 | REPLACE.texlua.new= ${LOCALBASE}/bin/texlua |
53 | REPLACE_FILES.texlua= ${REPLACE_TEXLUA} | | 53 | REPLACE_FILES.texlua= ${REPLACE_TEXLUA} |
54 | .endif | | 54 | .endif |
55 | | | 55 | |
56 | .if empty(TEX_TEXMF_DIRS) | | 56 | .if empty(TEX_TEXMF_DIRS) |
57 | _dirs= dvips fonts tex | | 57 | _dirs= bibtex doc dvips fonts makeindex metafont metapost \ |
| | | 58 | omega scripts source tex vtex |
58 | _topdir= ${DESTDIR}${PREFIX}/share/texmf-dist | | 59 | _topdir= ${DESTDIR}${PREFIX}/share/texmf-dist |
59 | .else | | 60 | .else |
60 | _dirs= texmf texmf-dist | | 61 | _dirs= texmf texmf-dist |
61 | _topdir= ${DESTDIR}${PREFIX}/share | | 62 | _topdir= ${DESTDIR}${PREFIX}/share |
62 | .endif | | 63 | .endif |
63 | | | 64 | |
64 | .PHONY: _texlive-set-permission _texlive-info _texlive-man _texlive-install | | 65 | .PHONY: _texlive-set-permission _texlive-info _texlive-man _texlive-install |
65 | _texlive-set-permission: | | 66 | _texlive-set-permission: |
66 | .for _pat in ${TEXLIVE_IGNORE_PATTERNS} | | 67 | .for _pat in ${TEXLIVE_IGNORE_PATTERNS} |
67 | ${RM} -rf ${WRKSRC}/${_pat} | | 68 | ${RM} -rf ${WRKSRC}/${_pat} |
68 | .endfor | | 69 | .endfor |
69 | .for _dir in ${_dirs} | | 70 | .for _dir in ${_dirs} |
70 | if [ -d ${WRKSRC}/${_dir} ]; then \ | | 71 | if [ -d ${WRKSRC}/${_dir} ]; then \ |