blob: 259d54a1740fb9ae66e7c34bd32ba86a99261a7d (
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
137
138
139
140
141
142
143
144
145
146
147
|
# $NetBSD: Makefile,v 1.1.1.1 2001/04/14 12:58:55 kei Exp $
DISTNAME= TeXfamily-1.2.1
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.math.s.chiba-u.ac.jp/tex/texfam-1.2/ \
ftp://ftp.math.s.chiba-u.ac.jp/tex/texfam-1.2.1/ \
ftp://ftp.math.s.chiba-u.ac.jp/tex/ \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/ \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/
DISTFILES= texfam-1.2${EXTRACT_SUFX} \
web2c-j1.9${EXTRACT_SUFX} \
web2c-j1.9.1${EXTRACT_SUFX} \
web2c-m0.8${EXTRACT_SUFX} \
web2c-m0.8.1${EXTRACT_SUFX} \
dvi2ps-3.2j${EXTRACT_SUFX} \
jmakeindex${EXTRACT_SUFX} \
ptex-src-2.1.10${EXTRACT_SUFX} \
dvipsk-jpatch-p1.5d${EXTRACT_SUFX} \
mendexk2.4f${EXTRACT_SUFX}
MAINTAINER= kei@netbsd.org
COMMENT= TeXfamily (pTeX, JTeX, MuLTeX) - executables
DEPENDS+= TeXfamily-share-1.2.1:../../japanese/texfamily-share
DEPENDS+= ja-vflib-lib-*:../../japanese/vflib-lib
DIST_SUBDIR= TeXfamily
TETEX_DIR= ${BUILD_ROOT}/print/teTeX-bin/${WRKDIR:T}/teTeX-1.0
WRKSRC= ${TETEX_DIR}
EXTRACT_ONLY= # none
ALL_TARGET= all
INSTALL_TARGET= install strip
USE_GMAKE= yes
USE_X11= yes
PLIST_SUBST+= MV="${MV}"
CFLAGS+= -Dunix
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-local-texmf=texmf.local \
--without-texinfo \
--without-dialog \
--disable-multiplatform \
--enable-ipc \
--with-epsfwin \
--with-hp2627win \
--with-mftalkwin \
--with-x11 \
--with-libwww-config=${LOCALBASE}/bin/libwww-config \
--with-system-pnglib \
--with-pnglib-libdir=${LOCALBASE}/lib \
--with-pnglib-include=${LOCALBASE}/include \
--with-system-zlib
.include "../../mk/bsd.prefs.mk"
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
CONFIGURE_ARGS+=--enable-a4
.endif
.if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+=--enable-auto-core \
--with-zlib-libdir=/usr/lib \
--with-zlib-include=/usr/include
.else
CONFIGURE_ARGS+= --with-zlib-libdir=${LOCALBASE}/lib \
--with-zlib-include=${LOCALBASE}/include
.endif
CONFIGURE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
INSTALL_DATA="${INSTALL_DATA}"
pre-extract:
if [ ! -e ${WRKSRC} ]; then \
cd ../../print/teTeX-bin && ${MAKE} patch; \
fi
post-extract:
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/texfam-1.2${EXTRACT_SUFX} \
-C ${WRKSRC}/..
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/web2c-j1.9${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/web2c-j1.9.1${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/web2c-m0.8${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/web2c-m0.8.1${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/ptex-src-2.1.10${EXTRACT_SUFX} \
-C ${WRKSRC}/texk/web2c
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/dvi2ps-3.2j${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${GTAR} -xzf \
${DISTDIR}/${DIST_SUBDIR}/dvipsk-jpatch-p1.5d${EXTRACT_SUFX} \
-C ${WRKDIR}
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/mendexk2.4f${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${GTAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/jmakeindex${EXTRACT_SUFX} \
-C ${WRKSRC}/texk
${SED} -e "s|\$TEXMF/ptex/plain/||" \
${LOCALBASE}/share/texmf.local/ptex/plain/base/ptex.tex > \
${WRKSRC}/texk/web2c/ptex-src-2.1.10/ptex.tex
${RM} -f ${WRKSRC}/texmf ${WRKSRC}/texmf.local
${LN} -s ${LOCALBASE}/share/texmf ${WRKSRC}
${LN} -s ${LOCALBASE}/share/texmf.local ${WRKSRC}
pre-patch:
${PATCH} -d ${WRKSRC}/texk/dvipsk --quiet -E -p1 < \
${WRKDIR}/dvipsk586.patch
post-configure:
(cd ${WRKSRC}/texk/web2c/ptex-src-2.1.10; \
./configure JIS ${LOCALBASE}/share/texmf.local)
do-build:
(cd ${WRKSRC}/texk/web2c; ${GMAKE})
(cd ${WRKSRC}/texk/web2c-j; ${GMAKE})
(cd ${WRKSRC}/texk/web2c-m; ${GMAKE})
(cd ${WRKSRC}/texk/web2c/ptex-src-2.1.10; ${GMAKE})
(cd ${WRKSRC}/texk/dvi2ps-3.2j; ${GMAKE} all newlib)
(cd ${WRKSRC}/texk/dvipsk; ${GMAKE})
(cd ${WRKSRC}/texk/mendexk2.4f; ${GMAKE})
(cd ${WRKSRC}/texk/jmakeindex/src; ${MAKE})
do-install:
(cd ${WRKSRC}/texk/web2c-j; ${GMAKE} install)
(cd ${WRKSRC}/texk/web2c-m; ${GMAKE} install)
(cd ${WRKSRC}/texk/web2c/ptex-src-2.1.10; ${GMAKE} install)
(cd ${WRKSRC}/texk/dvi2ps-3.2j; \
${GMAKE} install install-lib install-MakePK install-lprdvi)
(cd ${WRKSRC}/texk/dvi2ps-3.2j; ${GMAKE} install install-man)
${INSTALL_DATA_DIR} ${LOCALBASE}/share/texmf.local/doc/dvi2ps
${INSTALL_DATA} ${WRKSRC}/texk/dvi2ps-3.2j/doc/* \
${LOCALBASE}/share/texmf.local/doc/dvi2ps
(cd ${WRKSRC}/texk/dvipsk; \
${SETENV} texmflcl=${LOCALBASE}/share/texmf.local \
${GMAKE} install)
${INSTALL_PROGRAM} ${WRKSRC}/texk/mendexk2.4f/mendex \
${PREFIX}/bin/mendex
(cd ${WRKSRC}/texk/jmakeindex/src; ${MAKE} install)
post-install:
mktexlsr ${LOCALBASE}/share/texmf.local
pre-clean:
cd ../../print/teTeX-bin && ${MAKE} clean
.include "../../mk/bsd.pkg.mk"
|