summaryrefslogtreecommitdiff
path: root/print/tex-context/Makefile
blob: 3330389a0badb1366c660dfb8a8caa10d5e73d97 (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
# $NetBSD: Makefile,v 1.19 2019/12/06 20:19:12 markd Exp $

DISTNAME=	context
PKGNAME=	tex-${DISTNAME}-2019
TEXLIVE_REV=	50573

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://ctan.org/pkg/context
COMMENT=	The ConTeXt macro package

DEPENDS+=	tex-lm>=2.004nb1:../../fonts/tex-lm
DEPENDS+=	tex-manfnt-font>=2014:../../fonts/tex-manfnt-font
DEPENDS+=	tex-mflogo-font>=1.002:../../fonts/tex-mflogo-font
DEPENDS+=	tex-luatex>=0.70.1pl30581nb1:../../print/tex-luatex
DEPENDS+=	tex-metapost>=1.211:../../graphics/tex-metapost
DEPENDS+=	tex-mptopdf>=2010:../../graphics/tex-mptopdf
DEPENDS+=	tex-pdftex>=1.40.11:../../print/tex-pdftex
DEPENDS+=	web2c>=2010nb4:../../print/web2c
DEPENDS+=	xetex>=0.9995.3nb1:../../print/xetex

USE_TOOLS+=	sh:run

CHECK_INTERPRETER_SKIP=	share/texmf-dist/scripts/context/ruby/*.rb
REPLACE_SH=		bin/context bin/ctxtools bin/luatools
REPLACE_TEXLUA=		bin/mtxrun \
			texmf-dist/scripts/context/stubs/mswin/mtxrun.lua \
			texmf-dist/scripts/context/stubs/mswin/luatools.lua \
			texmf-dist/scripts/context/stubs/unix/mtxrun \
			texmf-dist/scripts/context/stubs/unix/luatools

TEX_FORMATS+=		"cont-en pdftex cont-usr.tex -8bit *cont-en.mkii\\ncont-en xetex cont-usr.tex -8bit *cont-en.mkii\\n"
TEX_MAP_FILES+=		original-context-symbol.map

INSTALLATION_DIRS+=	bin

TEXLIVE_UNVERSIONED=	yes
.include "../../print/texlive/package.mk"

post-extract:
	${MKDIR} ${WRKSRC}/bin
	${MV} ${WRKSRC}/texmf-dist/scripts/context/lua/mtxrun.lua \
		${WRKSRC}/bin/mtxrun
.for f in context luatools texexec texmfstart
	${CP} ${WRKSRC}/texmf-dist/scripts/context/stubs/unix/${f} \
		${WRKSRC}/bin/
.endfor

.include "../../mk/bsd.pkg.mk"