convert to tex.buildlink3.mk.
Use PKG_TEXMFPREFIX to find TEXMF-CNF
This commit is contained in:
parent
7feea2fa2d
commit
48be5c5cf1
2 changed files with 10 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.12 2005/04/02 20:19:02 hubertf Exp $
|
||||
# $NetBSD: Makefile,v 1.13 2005/11/08 21:57:53 tonio Exp $
|
||||
#
|
||||
|
||||
DISTNAME= hugelatex-2.0
|
||||
|
@ -10,21 +10,19 @@ DISTFILES= # nada
|
|||
MAINTAINER= hubertf@NetBSD.org
|
||||
COMMENT= LaTeX format files with large limits
|
||||
|
||||
DEPENDS+= teTeX>=2:../../print/teTeX
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
EXTRACT_ONLY= # nothing
|
||||
NO_CHECKSUM= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
TEXMF_CNF= ${LOCALBASE}/share/texmf/web2c/texmf.cnf
|
||||
TEXMF_CNF= ${PKG_TEXMFPREFIX}/web2c/texmf.cnf
|
||||
|
||||
do-install:
|
||||
${CP} -p ${TEXMF_CNF} ${TEXMF_CNF}-before-hugelatex
|
||||
${CAT} ${FILESDIR}/texmf.cnf-add >>${TEXMF_CNF}
|
||||
cd `dirname ${TEXMF_CNF}`; \
|
||||
${MV} latex.fmt latex.fmt.BAK || ${TRUE} ; \
|
||||
echo "" | ${PREFIX}/bin/latex -ini -fmt=hugelatex -progname=hugelatex latex.ini || ${TRUE}; \
|
||||
${ECHO} "" | ${PREFIX}/bin/latex -ini -fmt=hugelatex -progname=hugelatex latex.ini || ${TRUE}; \
|
||||
${MV} latex.fmt hugelatex.fmt ; \
|
||||
${MV} latex.log hugelatex.log ; \
|
||||
${MV} latex.fmt.BAK latex.fmt || ${TRUE} ; \
|
||||
|
@ -33,4 +31,5 @@ do-install:
|
|||
${LN} -s latex ${PREFIX}/bin/hugelatex
|
||||
${PREFIX}/bin/mktexlsr
|
||||
|
||||
.include "../../mk/tex.buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
@comment $NetBSD: PLIST,v 1.2 2005/04/04 15:05:25 hubertf Exp $
|
||||
@comment $NetBSD: PLIST,v 1.3 2005/11/08 21:57:53 tonio Exp $
|
||||
bin/hugelatex
|
||||
share/texmf/web2c/hugelatex.fmt
|
||||
share/texmf/web2c/hugelatex.log
|
||||
@exec cp %D/share/texmf/web2c/texmf.cnf %D/share/texmf/web2c/texmf.cnf-before-hugelatex
|
||||
share/texmf/web2c/texmf.cnf
|
||||
@unexec mv %D/share/texmf/web2c/texmf.cnf-before-hugelatex %D/share/texmf/web2c/texmf.cnf
|
||||
${PKG_TEXMFPREFIX}/web2c/hugelatex.fmt
|
||||
${PKG_TEXMFPREFIX}/web2c/hugelatex.log
|
||||
@exec cp %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf-before-hugelatex
|
||||
${PKG_TEXMFPREFIX}/web2c/texmf.cnf
|
||||
@unexec mv %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf-before-hugelatex %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf
|
||||
@exec %D/bin/mktexlsr
|
||||
@unexec %D/bin/mktexlsr
|
||||
|
|
Loading…
Reference in a new issue