diff options
author | tonio <tonio> | 2006-01-08 14:00:11 +0000 |
---|---|---|
committer | tonio <tonio> | 2006-01-08 14:00:11 +0000 |
commit | 0821c765b6a7fdda8c81f03ae729b4292ab810f8 (patch) | |
tree | 4e2501ff1292c647808c2d60a1f115cf87fd0afd /mk/tex.buildlink3.mk | |
parent | 276e3b96950aed0569dd3323a5bf2819526209d6 (diff) | |
download | pkgsrc-0821c765b6a7fdda8c81f03ae729b4292ab810f8.tar.gz |
Make teTeX3 the default TEX_DEFAULT
bump PKGREVISION where necessary
Move PKG_TEXMFPREFIX and PKG_LOCALTEXMFPREFIX definitions to
teTeX?/buidlink3.mk, so that packages may include
print/teTeX1-bin/buildlink3.mk directly (however, using teTeX/module.mk do not
allow that)
Diffstat (limited to 'mk/tex.buildlink3.mk')
-rw-r--r-- | mk/tex.buildlink3.mk | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/mk/tex.buildlink3.mk b/mk/tex.buildlink3.mk index 97b70676e48..5087cf19271 100644 --- a/mk/tex.buildlink3.mk +++ b/mk/tex.buildlink3.mk @@ -1,9 +1,9 @@ -# $NetBSD: tex.buildlink3.mk,v 1.8 2005/12/05 22:07:07 rillig Exp $ +# $NetBSD: tex.buildlink3.mk,v 1.9 2006/01/08 14:00:11 tonio Exp $ # # A Makefile fragment for TeX and LaTeX packages # # * Determine the version of teTeX to be used. -# Modify TEX_DEFAULT to change the default version (default to teTeX2) +# Modify TEX_DEFAULT to change the default version (default to teTeX3) # # * tex files are installed... # teTeX[1-2] @@ -34,7 +34,7 @@ # Possible values: # teTeX1, teTeX2, teTeX3 # Default value: -# teTeX2 +# teTeX3 # # Variables tex packages can provide: # @@ -112,42 +112,34 @@ TEX_TYPE= none .if ${TEX_TYPE} == "teTeX3" _TEX_DEPENDENCY= ${BUILDLINK_DEPENDS.teTeX3} _TEX_PKGSRCDIR= ${BUILDLINK_PKGSRCDIR.teTeX3} -#PKG_TEXMFPREFIX= ${PREFIX}/share/texmf-dist -PKG_TEXMFPREFIX= ${PREFIX}/share/texmf -#PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf-local -PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf .elif ${TEX_TYPE} == "teTeX2" _TEX_DEPENDENCY= ${BUILDLINK_DEPENDS.teTeX2} _TEX_PKGSRCDIR= ${BUILDLINK_PKGSRCDIR.teTeX2} -PKG_TEXMFPREFIX= ${PREFIX}/share/texmf -PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf .elif ${TEX_TYPE} == "teTeX1" _TEX_DEPENDENCY= ${BUILDLINK_DEPENDS.teTeX1} _TEX_PKGSRCDIR= ${BUILDLINK_PKGSRCDIR.teTeX1} -PKG_TEXMFPREFIX= ${PREFIX}/share/texmf -PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf .endif -PLIST_SUBST+= TEX_TYPE=${TEX_TYPE:Q} -PLIST_SUBST+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:C|^${PREFIX}/||} -PLIST_SUBST+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:C|^${PREFIX}/||} - -PRINT_PLIST_AWK+= /^@dirrm ${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}(\/bibtex(\/bib|\/bst)?|\/tex(\/latex)?)?$$/ \ - { next; } -PRINT_PLIST_AWK+= /^(@dirrm )?${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/ \ - { gsub(/${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, "$${PKG_LOCALTEXMFPREFIX}"); \ - print; next; } - .endif # TEX_BUILDLINK3_MK .if ${TEX_TYPE} == "none" PKG_FAIL_REASON= \ "${_TEX_TYPE} is not an acceptable TeX version for ${PKGNAME}." .else +PLIST_SUBST+= TEX_TYPE=${TEX_TYPE:Q} .if (${TEX_DEPMETHOD} == "build") BUILD_DEPENDS+= ${_TEX_DEPENDENCY}:${_TEX_PKGSRCDIR} .else TEX_DEPMETHOD:= run . include "${_TEX_PKGSRCDIR}/buildlink3.mk" +PLIST_SUBST+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:C|^${PREFIX}/||} +PLIST_SUBST+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:C|^${PREFIX}/||} + +PRINT_PLIST_AWK+= /^@dirrm ${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}(\/bibtex(\/bib|\/bst)?|\/tex(\/latex)?)?$$/ \ + { next; } +PRINT_PLIST_AWK+= /^(@dirrm )?${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/ \ + { gsub(/${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, "$${PKG_LOCALTEXMFPREFIX}"); \ + print; next; } + .endif .endif |