aboutsummaryrefslogtreecommitdiff
path: root/print/teTeX-texmf/Makefile
blob: f4bcd778010a3873eca2ddd0a066e722afb91eb9 (plain) (blame)
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
69
70
71
72
73
# New ports collection makefile for:	teTeX-texmf
# Date created:		5 June 2004
# Whom:			hrs
#
# $FreeBSD$

PORTNAME=	teTeX-texmf
PORTVERSION=	2.0.2
PORTREVISION=	3
CATEGORIES=	print
MASTER_SITES=	ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \
		${MASTER_SITE_TEX_CTAN} \
		ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:1
MASTER_SITE_SUBDIR=	systems/unix/teTeX/2.0/distrib/
DISTFILES=	${TETEX_TEXMF} dvipsk-jpatch-p1.6a${EXTRACT_SUFX}:1
DIST_SUBDIR=	teTeX
EXTRACT_ONLY=	dvipsk-jpatch-p1.6a${EXTRACT_SUFX}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Thomas Esser's distribution of TeX & friends (texmf tree)

BUILD_DEPENDS=	${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
RUN_DEPENDS=	${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal

CONFLICTS=	latex2e-[0-9]* tex-[0-9]* dvips-[0-9]* xdvi-[0-9]*

.include <bsd.port.pre.mk>

NO_WRKSUBDIR=	YES
NO_BUILD=	YES
PLIST_SUB=	TEXMF=${TEXMF} \
		MKTEXLSR=${MKTEXLSR} \
		TEXMF_LSR=${TEXMF_LSR}
CONFLICTS=	ja-ptex-base-[0-9]*

TETEX_TEXMF=	tetex-texmf-${PORTVERSION}.tar.gz
TEXMF=		share/texmf
TEXMF_LSR=	${PREFIX}/${TEXMF}/ls-R
TEXMFLOCAL=	share/texmf-local
TEXMFLOCAL_LSR=	${LOCALBASE}/${TEXMFLOCAL}/ls-R
TEXMFVAR=	share/texmf-var
TEXMFVAR_LSR=	${LOCALBASE}/${TEXMFVAR}/ls-R
MKTEXLSR=	${LOCALBASE}/bin/mktexlsr

CNFFILES=	DVIPSKCNF XDVIKCNF DVIPDFMCNF
DVIPSKCNF=	dvips/config/config.ps
XDVIKCNF=	xdvi/XDvi
DVIPDFMCNF=	dvipdfm/config/config

TEXMF_IN_SUB=	TEXMF=${TEXMF} PREFIX=${PREFIX}

# XXX: when OPTIONS is set NO_BUILD does not work
do-build:
	@${DO_NADA}

do-install:
	${MKDIR} ${PREFIX}/${TEXMF}
	cd ${PREFIX}/${TEXMF} && \
		${TAR} xzUf ${DISTDIR}/${DIST_SUBDIR}/${TETEX_TEXMF} \
			--exclude "*/texmf.cnf"
	${MV} ${PREFIX}/${TEXMF}/omega/lambda/omegabook/ltpatch.ltx \
		${PREFIX}/${TEXMF}/omega/lambda/omegabook/NOUSE_ltpatch.ltx_
	${INSTALL_DATA} \
		${FILESDIR}/listings.sty \
		${PREFIX}/${TEXMF}/tex/latex/listings/
	cd ${PREFIX}/${TEXMF}/dvips/pstricks && \
		${PATCH} --quiet < ${WRKDIR}/PSTricks.patch && \
		${RM} -f pst-text.pro.orig
.for F in ${CNFFILES}
	${CP} ${PREFIX}/${TEXMF}/${${F}} ${PREFIX}/${TEXMF}/${${F}}.tetex
.endfor

.include <bsd.port.post.mk>