summaryrefslogtreecommitdiff
path: root/print/texlive-tetex/Makefile
blob: b22e887cdd14647a5c70532d6095428140b1c7f7 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# $NetBSD: Makefile,v 1.10 2012/02/09 21:27:26 minskim Exp $

DISTNAME=	texlive-20110705-source
PKGNAME=	texlive-tetex-2011
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://www.tug.org/texlive/
COMMENT=	Scripts included in teTeX

CONFLICTS+=	teTeX-bin<=3.0nb22
DEPENDS+=	dialog>=1.0:../../misc/dialog
DEPENDS+=	kpathsea-[0-9]*:../../print/kpathsea
DEPENDS+=	tex-tetex>=3.0.24482:../../print/tex-tetex

EXTRACT_ELEMENTS=	${DISTNAME}/build-aux \
			${DISTNAME}/texk/tetex

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	yes
WRKSRC=		${WRKDIR}/${DISTNAME}/texk/tetex

PKG_SYSCONFSUBDIR=	texmf

MAKE_DIRS+=	${PKG_SYSCONFDIR}/web2c
CONF_FILES+=	${PREFIX}/share/texmf/web2c/fmtutil.cnf \
		${PKG_SYSCONFDIR}/web2c/fmtutil.cnf
FILES_SUBST+=	UPDMAP_SYS=${PREFIX}/bin/updmap-sys

EVAL_PREFIX+=	DIALOG_PREFIX=dialog
EVAL_PREFIX+=	KPSEWHICH_PREFIX=kpathsea
EVAL_PREFIX+=	UPDMAP_PREFIX=tex-tetex

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Setting paths to commands.
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	fmtutil fmtutil-sys kpsetool kpsewhere \
			tcfmgr texconfig texconfig-dialog texconfig-sys \
			texlinks
SUBST_SED.paths=	-e 's,@DIALOG@,${DIALOG_PREFIX}/bin/dialog,g' \
			-e 's,@FMTUTIL@,${PREFIX}/bin/fmtutil,g' \
			-e 's,@FMTUTIL_SYS@,${PREFIX}/bin/fmtutil-sys,g' \
			-e 's,@KPSEWHICH@,${KPSEWHICH_PREFIX}/bin/kpsewhich,g' \
			-e 's,@LOCALBASE@,${LOCALBASE},g' \
			-e 's,@TEXCONFIG@,${PREFIX}/bin/texconfig,g' \
			-e 's,@TEXLINKS@,${PREFIX}/bin/texlinks,g' \
			-e 's,@UPDMAP@,${UPDMAP_PREFIX}/bin/updmap,g' \
			-e 's,@UPDMAP_SYS@,${UPDMAP_PREFIX}/bin/updmap-sys,g'

INSTALLATION_DIRS+=	share/texmf/web2c

TEX_TEXMF_DIRS+=	${PKG_SYSCONFDIR}
TEX_TEXMF_DIRS+=	${PREFIX}/share/texmf

.include "../../print/kpathsea/buildlink3.mk"
.include "../../print/kpathsea/texmf.mk"

post-install:
.for f in fmtutil.cnf
	${INSTALL_DATA} ${FILESDIR}/${f} \
		${DESTDIR}${PREFIX}/share/texmf/web2c
.endfor

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