summaryrefslogtreecommitdiff
path: root/print/latex-mathabx/Makefile
blob: 9d17eea162ec92082f3123e6aa1ec13f937b4b89 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# New ports collection makefile for:	latex-mathabx
# Date created:		24 Jan 2004
# Whom:			hrs@FreeBSD.org
#
# $FreeBSD$

PORTNAME=	latex-mathabx
PORTVERSION=	1.0.20031201
CATEGORIES=	print
MASTER_SITES=	http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/
DISTFILES=	mathabx${EXTRACT_SUFX} abxtype1${EXTRACT_SUFX}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Math series, aka mathabx MetaFont fontset for TeX/LaTeX

BUILD_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX
RUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX

USE_ZIP=	YES
NO_BUILD=	YES
PLIST_SUB=	TEXMF=${TEXMF} MKTEXLSR=${MKTEXLSR}
PLIST_SUB+=	CLASSDIR=${CLASSDIR} MFDIR=${MFDIR}
PLIST_SUB+=	TYPE1DIR=${TYPE1DIR} DVIPSDIR=${DVIPSDIR}

TEXMF=		share/texmf
MKTEXLSR=	${LOCALBASE}/bin/mktexlsr
CLASSDIR=	${TEXMF}/tex/latex/${PORTNAME:S/^latex-//}
MFDIR=		${TEXMF}/fonts/source/public/${PORTNAME:S/^latex-//}
TYPE1DIR=	${TEXMF}/fonts/type1/${PORTNAME:S/^latex-//}
DVIPSDIR=	${TEXMF}/dvips/${PORTNAME:S/^latex-//}
WRKSRC=		${WRKDIR}/${PORTNAME:S/^latex-//}

CLASS_FILES=	mathabx.dcl
CLASS_FILES+=	mathabx.sty
CLASS_FILES+=	mathabx.tex
CLASS_FILES+=	testmac.tex

MF_FILES=	matha10.mf
MF_FILES+=	matha12.mf
MF_FILES+=	matha5.mf
MF_FILES+=	matha6.mf
MF_FILES+=	matha7.mf
MF_FILES+=	matha8.mf
MF_FILES+=	matha9.mf
MF_FILES+=	mathacnt.mf
MF_FILES+=	mathadrv.mf
MF_FILES+=	matharrw.mf
MF_FILES+=	mathastr.mf
MF_FILES+=	mathasym.mf
MF_FILES+=	mathb10.mf
MF_FILES+=	mathb12.mf
MF_FILES+=	mathb5.mf
MF_FILES+=	mathb6.mf
MF_FILES+=	mathb7.mf
MF_FILES+=	mathb8.mf
MF_FILES+=	mathb9.mf
MF_FILES+=	mathbase.mf
MF_FILES+=	mathbdel.mf
MF_FILES+=	mathbdrv.mf
MF_FILES+=	mathbigs.mf
MF_FILES+=	mathbsym.mf
MF_FILES+=	mathcall.mf
MF_FILES+=	mathextr.mf
MF_FILES+=	mathfine.mf
MF_FILES+=	mathgrey.mf
MF_FILES+=	mathhbrw.mf
MF_FILES+=	mathineq.mf
MF_FILES+=	mathltlk.mf
MF_FILES+=	mathmbcb.mf
MF_FILES+=	mathprmt.mf
MF_FILES+=	mathsmsy.mf
MF_FILES+=	mathsubs.mf
MF_FILES+=	mathsymb.mf
MF_FILES+=	matht10.mf
MF_FILES+=	mathu10.mf
MF_FILES+=	mathudrv.mf
MF_FILES+=	mathusym.mf
MF_FILES+=	mathux10.mf
MF_FILES+=	mathuxdrv.mf
MF_FILES+=	mathx10.mf
MF_FILES+=	mathx12.mf
MF_FILES+=	mathx5.mf
MF_FILES+=	mathx6.mf
MF_FILES+=	mathx7.mf
MF_FILES+=	mathx8.mf
MF_FILES+=	mathx9.mf
MF_FILES+=	mathxdrv.mf
MF_FILES+=	maydigit.mf

TYPE1_FILES=	matha10.pfb
TYPE1_FILES+=	matha12.pfb
TYPE1_FILES+=	matha5.pfb
TYPE1_FILES+=	matha6.pfb
TYPE1_FILES+=	matha7.pfb
TYPE1_FILES+=	matha8.pfb
TYPE1_FILES+=	matha9.pfb
TYPE1_FILES+=	mathb10.pfb
TYPE1_FILES+=	mathb12.pfb
TYPE1_FILES+=	mathb5.pfb
TYPE1_FILES+=	mathb6.pfb
TYPE1_FILES+=	mathb7.pfb
TYPE1_FILES+=	mathb8.pfb
TYPE1_FILES+=	mathb9.pfb
TYPE1_FILES+=	mathu10.pfb
TYPE1_FILES+=	mathux10.pfb
TYPE1_FILES+=	mathx10.pfb
TYPE1_FILES+=	mathx12.pfb
TYPE1_FILES+=	mathx5.pfb
TYPE1_FILES+=	mathx6.pfb
TYPE1_FILES+=	mathx7.pfb
TYPE1_FILES+=	mathx8.pfb
TYPE1_FILES+=	mathx9.pfb

DVIPS_FILES=	mathabx.map

do-install:
	${MKDIR} ${PREFIX}/${CLASSDIR}
	${INSTALL_DATA} ${WRKSRC}/mathtest.tex\
		${CLASS_FILES:S@^@${WRKSRC}/texinputs/@}\
		${PREFIX}/${CLASSDIR}
	${MKDIR} ${PREFIX}/${MFDIR}
	${INSTALL_DATA} ${MF_FILES:S@^@${WRKSRC}/source/@}\
		${PREFIX}/${MFDIR}
	${MKDIR} ${PREFIX}/${TYPE1DIR}
	${INSTALL_DATA} ${TYPE1_FILES:S@^@${WRKDIR}/abxtype1/pfb/@}\
		${PREFIX}/${TYPE1DIR}
	${MKDIR} ${PREFIX}/${DVIPSDIR}
	${INSTALL_DATA} ${DVIPS_FILES:S@^@${WRKDIR}/abxtype1/map/@}\
		${PREFIX}/${DVIPSDIR}

post-install:
	${MKTEXLSR}
	@${SED} -e 's,%%PREFIX%%,${PREFIX},;s,%%TEXMF%%,${TEXMF},'\
		${PKGMESSAGE}

.include <bsd.port.mk>