aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-mathabx/Makefile
blob: 126d45bdecd94f001c7a6fc96680df83de7fc439 (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
74
75
76
77
78
79
# Created by: hrs@FreeBSD.org
# $FreeBSD$

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

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

USE_ZIP=    YES
USE_TEX=    latex
NO_BUILD=   YES
PLIST_SUB=  TEXMFLOCALDIR=${TEXMFLOCALDIR} \
        MKTEXLSR=${MKTEXLSR} \
        UPDMAP_SYS="${UPDMAP_SYS}" \
        CLASSDIR=${CLASSDIR} MFDIR=${MFDIR} \
        TYPE1DIR=${TYPE1DIR} DVIPSDIR=${DVIPSDIR}
WRKSRC=     ${WRKDIR}/${PORTNAME:S/^latex-//}

TEXMFDIR=   share/texmf
TEXMFLOCALDIR=  share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCALDIR}/ls-R
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr
UPDMAP_SYS= ${SETENV} PATH=${LOCALBASE}/bin:$${PATH} \
        ${LOCALBASE}/bin/updmap-sys

CLASSDIR=   ${TEXMFLOCALDIR}/tex/latex/${PORTNAME:S/^latex-//}
CLASS_FILES=    mathabx.dcl mathabx.sty mathabx.tex testmac.tex

MFDIR=      ${TEXMFLOCALDIR}/fonts/source/public/${PORTNAME:S/^latex-//}
MF_FILES=   matha10.mf matha12.mf matha5.mf matha6.mf matha7.mf \
        matha8.mf matha9.mf mathacnt.mf mathadrv.mf matharrw.mf \
        mathastr.mf mathastrotest10.mf mathastrotestdrv.mf \
        mathasym.mf mathb10.mf mathb12.mf mathb5.mf \
        mathb6.mf mathb7.mf mathb8.mf mathb9.mf mathbase.mf \
        mathbdel.mf mathbdrv.mf mathbigs.mf mathbsym.mf mathc10.mf \
        mathcall.mf mathcallgreek.mf mathcdrv.mf mathfine.mf \
        mathgrey.mf mathhbrw.mf mathineq.mf \
        mathltlk.mf mathmbcb.mf mathprmt.mf mathsmsy.mf mathsubs.mf \
        mathsymb.mf mathu10.mf mathudrv.mf mathusym.mf \
        mathux10.mf mathuxdrv.mf mathx10.mf mathx12.mf mathx5.mf \
        mathx6.mf mathx7.mf mathx8.mf mathx9.mf mathxdrv.mf maydigit.mf

TYPE1DIR=   ${TEXMFLOCALDIR}/fonts/type1/${PORTNAME:S/^latex-//}
TYPE1_FILES=    matha10.pfb matha12.pfb matha5.pfb matha6.pfb matha7.pfb \
        matha8.pfb matha9.pfb mathastrotest10.pfb \
        mathb10.pfb mathb12.pfb mathb5.pfb \
        mathb6.pfb mathb7.pfb mathb8.pfb mathb9.pfb mathc10.pfb \
        mathu10.pfb mathux10.pfb mathx10.pfb mathx12.pfb \
        mathx5.pfb mathx6.pfb mathx7.pfb mathx8.pfb mathx9.pfb

DVIPSDIR=   ${TEXMFLOCALDIR}/fonts/map/dvips/mathabx
DVIPS_FILES=    mathabx.map

NO_STAGE=   yes
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}
    ${UPDMAP_SYS} --enable Map=mathabx.map

.include <bsd.port.mk>