blob: 13def6de7874b6570d763ddea990423359367279 (
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
|
PORTNAME= ptex
PORTVERSION= 3.6
PORTREVISION= 1
CATEGORIES= japanese print
MASTER_SITES= ftp://tug.org/historic/systems/texlive/2015/
PKGNAMEPREFIX= ja-tex-
DISTNAME= texlive-${DISTVERSION_TEXLIVE_SOURCE}-source
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DISTNAME_TEXMF}${EXTRACT_SUFX}
DIST_SUBDIR= TeX
EXTRACT_ONLY= texlive-${DISTVERSION_TEXLIVE_SOURCE}-source${EXTRACT_SUFX}
MAINTAINER= hrs@FreeBSD.org
COMMENT= ASCII Japanese pTeX
USES= tar:xz pkgconfig
USE_TEX= kpathsea web2c ptexenc texmf formats fmtutil
TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFVARDIR}
EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,}
EXTRACT_FILES= build-aux \
libs/xpdf \
texk/web2c
EXTRACT_AFTER_ARGS_TEXMF= \
| ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner \
${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/,}
DISTVERSION_TEXLIVE_SOURCE= 20150521
DISTVERSION_TEXLIVE_TEXMF= 20150523
DISTNAME_TEXMF= texlive-${DISTVERSION_TEXLIVE_TEXMF}-texmf
EXTRACT_FILES_TEXMF= \
texmf-dist/doc/ptex \
texmf-dist/doc/platex \
texmf-dist/doc/uptex \
texmf-dist/doc/uplatex \
texmf-dist/doc/fonts/japanese-otf \
texmf-dist/doc/fonts/japanese-otf-uptex \
texmf-dist/doc/fonts/jfontmaps \
texmf-dist/fonts/source/ptex \
texmf-dist/fonts/ovp/public/japanese-otf-uptex \
texmf-dist/fonts/vf/ptex \
texmf-dist/fonts/vf/uptex \
texmf-dist/fonts/vf/public/japanese-otf \
texmf-dist/fonts/vf/public/japanese-otf-uptex \
texmf-dist/fonts/type1/ptex \
texmf-dist/fonts/tfm/ptex \
texmf-dist/fonts/tfm/uptex \
texmf-dist/fonts/tfm/public/japanese-otf-uptex \
texmf-dist/fonts/tfm/public/japanese-otf \
texmf-dist/fonts/ofm/public/japanese-otf \
texmf-dist/source/fonts/uptex \
texmf-dist/source/fonts/japanese-otf-uptex \
texmf-dist/source/fonts/japanese-otf \
texmf-dist/source/platex \
texmf-dist/source/uplatex \
texmf-dist/tex/ptex \
texmf-dist/tex/uptex \
texmf-dist/tex/platex \
texmf-dist/tex/uplatex \
texmf-dist/tex/generic/hyph-utf8/patterns/ptex \
texmf-dist/fonts/map/dvipdfmx/ptex \
texmf-dist/fonts/map/dvipdfmx/japanese-otf \
texmf-dist/fonts/map/dvipdfmx/jfontmaps \
texmf-dist/fonts/map/dvipdfmx/updmap/kanjix.map \
texmf-dist/fonts/cmap/uptex
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
GNU_CONFIGURE= yes
EXCLUDE_ENGINES=aleph etex pdftex luatex luajittex mf mf-nowin \
otangle mp pmp upmp web2c web-progs xetex tex synctex
CONFIGURE_ARGS= ${EXCLUDE_ENGINES:S/^/--disable-/} \
--enable-ptex \
--enable-eptex \
--enable-uptex \
--enable-euptex \
--with-system-zlib \
--without-x
.for L in kpathsea ptexenc
CONFIGURE_ARGS+=--with-system-$L \
--with-$L-include=${LOCALBASE}/include \
--with-$L-libdir=${LOCALBASE}/lib
.endfor
CFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
TEX_FORMATS= ptex uptex
pre-configure:
for D in libs/xpdf; do \
cd ${WRKDIR}/${DISTNAME}/$$D && \
${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} \
${CONFIGURE_ARGS}; \
done
pre-install:
${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${DISTVERSION_TEXLIVE_TEXMF}-texmf${EXTRACT_SUFX} \
${EXTRACT_AFTER_ARGS_TEXMF}
.include <bsd.port.mk>
|