blob: eb87e497b9487840010888527d63a363a3b424f8 (
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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# New ports collection makefile for: pTeX
# Version required: 2.1.4
# Date created: 5 Nov 1995
# Whom: Hideaki Ohmon <ohmon@sfc.keio.ac.jp>
#
# $Id: Makefile,v 1.7 1996/08/22 00:57:24 asami Exp $
#
DISTNAME= ptex3.1415.p2.1.4
PKGNAME= jp-ptex-2.1.4
CATEGORIES+= japanese print
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/ \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/corresponding-sources/ \
ftp://bash.cc.keio.ac.jp/pub/TeX/ascii-ptex/ \
ftp://bash.cc.keio.ac.jp/pub/TeX/ascii-ptex/corresponding-sources/
# ptex-2.1.4.tar.gz, plib-jis.tar.gz, plib-sj.tar.gz and plib-euc.tar.gz
# are in */ascii-ptex/ and
# web-6.1.tar.gz, web2c-6.1.tar.gz, web2c.kpathsea-2.6.help,
# xdvik-18f.tar.gz and lib-6.9.tar.gz are in
# */ascii-ptex/corresponding-sources/
DISTFILES= ptex-2.1.4.tar.gz web-6.1.tar.gz web2c-6.1.tar.gz \
web2c.kpathsea-2.6.help xdvik-18f.tar.gz lib-6.9.tar.gz
EXTRACT_ONLY= ptex-2.1.4.tar.gz web-6.1.tar.gz web2c-6.1.tar.gz \
xdvik-18f.tar.gz
MAINTAINER= max@sfc.wide.ad.jp
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/kpathsea-2.6
STRIP= # some shell scripts
pre-fetch:
.if !defined(KANJI-CODE)
@echo "You can set KANJI-CODE value to JIS, SJIS or EUC."
@echo "Now JIS is used as default."
.if !defined(BATCH)
@echo -n "Is JIS OK? (y/n) ==> "
@(read ans; \
case x"$$ans" in \
xy*|xY*) \
return 0; \
;; \
*) \
echo "Ok, please rerun make with preferred KANJI-CODE specification"; \
echo " like following example."; \
echo " make KANJI-CODE=EUC"; \
return 1; \
;; \
esac)
.endif
KANJI-CODE= JIS
.endif
.if ${KANJI-CODE} == JIS
DISTFILES+= plib-jis.tar.gz
EXTRACT_ONLY+= plib-jis.tar.gz
.endif
.if ${KANJI-CODE} == SJIS
DISTFILES+= plib-sj.tar.gz
EXTRACT_ONLY+= plib-sj.tar.gz
.endif
.if ${KANJI-CODE} == EUC
DISTFILES+= plib-euc.tar.gz
EXTRACT_ONLY+= plib-euc.tar.gz
.endif
.if ${KANJI-CODE} != JIS && ${KANJI-CODE} != SJIS && ${KANJI-CODE} != EUC
@echo "Error: invalid value for KANJI-CODE: \"${KANJI-CODE}\""
@echo "Possible values are: JIS (default), SJIS, EUC."
exit 1
.endif
post-extract:
@mv ${WRKDIR}/web2c-6.1/web2c ${WRKDIR}/xdvik-18f
@mv ${WRKDIR}/xdvik-18f ${WRKDIR}/kpathsea-2.6
@rm -fr ${WRKDIR}/web2c-6.1 ${WRKDIR}/kpathsea-2.6/xdvik
pre-patch:
@(cd ${WRKSRC} ; \
patch -p -s < ${DISTDIR}/web2c.kpathsea-2.6.help)
pre-configure:
.if ${KANJI-CODE} == JIS
@(cd ${WRKDIR}/ptex-2.1.4 ; ./pTeXsetup -jis)
.endif
.if ${KANJI-CODE} == SJIS
@(cd ${WRKDIR}/ptex-2.1.4 ; ./pTeXsetup -sjis)
.endif
.if ${KANJI-CODE} == EUC
@(cd ${WRKDIR}/ptex-2.1.4 ; ./pTeXsetup -euc)
.endif
post-configure:
@touch ${WRKSRC}/web2c/web/tangleboot.p
@touch ${WRKSRC}/web2c/web/tangleboot.[ch]
do-build:
(cd ${WRKSRC} ; make)
pre-install:
.if !defined(BATCH)
@echo "***********************************************************"
@echo "* W a r n i n g *"
@echo "* This port will overwrite the existing tex installation. *"
@echo "***********************************************************"
@echo -n "Is this ok? (y/n) ==> "
@(read ans; \
case x"$$ans" in \
xy*|xY*) \
return 0; \
;; \
*) \
echo "Okay, I won't install it then...."; \
echo "(Don't worry about the following \"*** Error code 1\"s)"; \
return 1; \
;; \
esac)
.endif
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/lib-6.9.tar.gz | tar xf -)
.if ${KANJI-CODE} == JIS
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/plib-jis.tar.gz | tar xf -)
.endif
.if ${KANJI-CODE} == SJIS
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/plib-sj.tar.gz | tar xf -)
.endif
.if ${KANJI-CODE} == EUC
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/plib-euc.tar.gz | tar xf -)
.endif
BINARIES=kpsewhich dvicopy dvitype pdvitype gftodvi gftopk \
mft pktogf pktype vftovp vptovf gftype pltotf tftopl initex \
virtex patgen iniptex virptex inimf virmf bibtex jbibtex \
tangle weave pooltype
MANPAGES=amslatex.1 amstex.1 bibtex.1 dvitype.1 etex.1 gftodvi.1 \
gftopk.1 gftype.1 initex.1 lamstex.1 latex.1 mf.1 mft.1 \
patgen.1 pktogf.1 pktype.1 pltotf.1 pooltype.1 slitex.1 \
tangle.1 tex.1 tftopl.1 vftovp.1 virtex.1 vptovf.1 weave.1
post-install:
.for bin in ${BINARIES}
strip ${PREFIX}/bin/${bin}
.endfor
.if !defined(NOMANCOMPRESS)
.for man in ${MANPAGES}
gzip -9nf ${PREFIX}/man/man1/${man}
.endfor
.endif
.include <bsd.port.mk>
|