blob: 4023d2a8cedcccbfb2c53e17f3a5266718b459ba (
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
|
PKGNAME= tex
DISTFILES= web2c.tar.gz web.tar.gz tex_base.tar.gz cm_tfm.tar.gz \
mf_lib.tar.gz cm_mf.tar.gz modes.mf
EXTRACT_ONLY= web2c.tar.gz web.tar.gz tex_base.tar.gz cm_tfm.tar.gz \
mf_lib.tar.gz cm_mf.tar.gz
FTPGET= ${FILESDIR}/ftpget
DISTNAME= web2c-6.1
#other equivalent sites: ftp.shsu.edu ftp.dante.de
CTAN= ftp.tex.ac.uk
BASES= mf.base cmmf.base
FORMATS= tex.fmt
CFLAGS= -O2
BUILD_COOKIE= ${WRKDIR}/.build_done
web2c.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/systems/web2c web2c.tar.gz ${DISTDIR}/$@
web.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/systems/web2c web.tar.gz ${DISTDIR}/$@
cm_mf.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/fonts cm/mf.tar.gz ${DISTDIR}/$@
cm_tfm.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/fonts cm/tfm.tar.gz ${DISTDIR}/$@
mf_lib.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/systems/knuth lib.tar.gz ${DISTDIR}/$@
modes.mf:
@${FTPGET} ${CTAN} /tex-archive/fonts/modes modes.mf ${DISTDIR}/$@
tex_base.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/macros plain/base.tar.gz ${DISTDIR}/$@
build: ${BUILD_COOKIE}
${BUILD_COOKIE}:
@echo "===> Building for ${DISTNAME}"
@(cd ${WRKSRC}/web2c; make triptrap)
@(cd ${WRKSRC}/web2c; make run-triptrap)
@(cd ${WRKSRC}/web2c; make clean-triptrap)
@(cd ${WRKSRC}; make CFLAGS="${CFLAGS}" programs)
@(cd ${WRKSRC}; MFINPUTS=${WRKDIR}/mf; export MFINPUTS;\
make bases="${BASES}" bases)
@(cd ${WRKSRC}/web2c; TEXINPUTS=${WRKDIR}/lib:${WRKSRC}; export TEXINPUTS;\
TEXFONTS=${WRKDIR}/cm/tfm:${WRKDIR}/latex/tfm; export TEXFONTS; \
make fmts="${FORMATS}" fmts)
@touch -f ${BUILD_COOKIE}
install:
@echo "===> Installing for ${DISTNAME}"
@(cd ${WRKSRC}/web2c; make install-exec INSTALL_PROGRAM="/usr/bin/install -c -s")
@(cd ${WRKSRC}/web2c; make install-manpages)
@(cd ${WRKSRC}/web2c; make install-data bases="${BASES}" fmts="${FORMATS}")
@mkdir -p ${PREFIX}/lib/texmf/fonts/tfm
@(cd ${WRKDIR}/cm/tfm; install -c -m 644 *.tfm ${PREFIX}/lib/texmf/fonts/tfm)
@mkdir -p ${PREFIX}/lib/texmf/mf
@(cd ${WRKDIR}/mf; install -c -m 644 *.mf ${PREFIX}/lib/texmf/mf)
@mkdir -p ${PREFIX}/lib/texmf/tex
@(cd ${WRKDIR}/lib; install -c -m 644 *.tex ${PREFIX}/lib/texmf/tex)
@(cd ${WRKDIR}/plain/base; install -c -m 644 *.tex ${PREFIX}/lib/texmf/tex)
.include "Makefile.inc"
.include <bsd.port.mk>
|