summaryrefslogtreecommitdiffstats
path: root/print/texlive-base/Makefile
blob: 0a1efdcb84db32ddb2ac190005bf2b83cccf5b56 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
# $FreeBSD$

PORTNAME=	texlive
PORTVERSION=	20140525
PORTREVISION=	5
CATEGORIES=	print
MASTER_SITES=	ftp://tug.org/historic/systems/texlive/2014/
PKGNAMESUFFIX=	-base
DISTNAME=	${PORTNAME}-${DISTVERSION}-source
DIST_SUBDIR=	TeX

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	TeX Live Typesetting System, base binaries

RUN_DEPENDS=	psbook:${PORTSDIR}/print/psutils
LIB_DEPENDS=	libicuio.so:${PORTSDIR}/devel/icu \
		libt1.so:${PORTSDIR}/devel/t1lib \
		libTECkit.so:${PORTSDIR}/textproc/teckit \
		libgraphite.so:${PORTSDIR}/graphics/silgraphite \
		libgd.so:${PORTSDIR}/graphics/gd \
		libfreetype.so:${PORTSDIR}/print/freetype2 \
		libttf.so:${PORTSDIR}/print/freetype \
		libpng.so:${PORTSDIR}/graphics/png \
		libzzip.so:${PORTSDIR}/devel/zziplib \
		libpoppler.so:${PORTSDIR}/graphics/poppler
# XXX
#		libpotrace.so:${PORTSDIR}/graphics/potrace

CONFLICTS_INSTALL=	texlive-texmf-201[23]*

USE_TEX=	web2c kpathsea ptexenc texhash-bootstrap
USES=		gmake pkgconfig perl5 shebangfix tar:xz
USE_AUTOTOOLS=	autoconf
USE_GHOSTSCRIPT=yes
USE_PERL5=	run
USE_LDCONFIG=	yes
# during build phase gnu configure is run a lot
MAKE_ENV+=	CONFIG_SITE=${CONFIG_SITE}
USE_XORG=	x11 xmu xaw pixman
EXCLUDE_FILES=	${DISTNAME}/texk/web2c \
		${DISTNAME}/texk/kpathsea \
		${DISTNAME}/texk/ptexenc \
		${DISTNAME}/texk/xdvik \
		${DISTNAME}/texk/dvipdfm-x \
		${DISTNAME}/texk/dvipsk \
		${DISTNAME}/libs/freetype2 \
		${DISTNAME}/libs/gd \
		${DISTNAME}/libs/graphite \
		${DISTNAME}/libs/icu \
		${DISTNAME}/libs/liblua52 \
		${DISTNAME}/libs/libluajit \
		${DISTNAME}/libs/libpaper \
		${DISTNAME}/libs/libpng \
		${DISTNAME}/libs/pixman \
		${DISTNAME}/libs/poppler \
		${DISTNAME}/libs/teckit \
		${DISTNAME}/libs/xpdf \
		${DISTNAME}/libs/zlib \
		${DISTNAME}/libs/zziplib \
		${DISTNAME}/utils/biber \
		${DISTNAME}/utils/t1utils
# XXX
#		${DISTNAME}/libs/potrace
EXTRACT_AFTER_ARGS=	${EXCLUDE_FILES:S,^,--exclude ,}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS= --disable-native-texlive-build \
		--disable-web-progs \
		--disable-psutils \
		--enable-shared \
		--disable-t1utils \
		--disable-dvipdfmx \
		--disable-dvipdfm-x \
		--disable-xdvipdfmx \
		--enable-build-in-source-tree \
		--datarootdir=${LOCALBASE}/share \
		--with-system-freetype \
		--with-freetype-includes=${LOCALBASE}/include/freetype1/freetype \
		--with-freetype-libdir=${LOCALBASE}/lib \
		--with-system-freetype2 \
		--with-freetype2-includes=${LOCALBASE}/include/freetype2 \
		--with-freetype2-libdir=${LOCALBASE}/lib \
		--with-system-cairo \
		--with-system-gd \
		--with-system-graphite \
		--with-system-icu \
		--with-icu-include=${LOCALBASE}/include \
		--with-icu-libdir=${LOCALBASE}/lib \
		--with-system-kpathsea \
		--with-kpathsea-include=${LOCALBASE}/include/kpathsea \
		--with-kpathsea-libdir=${LOCALBASE}/lib \
		--with-system-libgs \
		--with-libgs-includes=${LOCALBASE}/include \
		--with-libgs-libdir=${LOCALBASE}/lib \
		--with-system-libpaper \
		--with-libpaper-includes=${LOCALBASE}/include \
		--with-libpaper-libdir=${LOCALBASE}/lib \
		--with-system-libpng \
		--with-system-pixman \
		--with-system-poppler \
		--with-system-ptexenc \
		--with-ptexenc-include=${LOCALBASE}/include/ptexenc \
		--with-ptexenc-libdir=${LOCALBASE}/lib \
		--with-system-t1lib \
		--with-system-teckit \
		--with-xpdf-includes=${LOCALBASE}/include/poppler \
		--with-xpdf-libdir=${LOCALBASE}/lib \
		--with-system-xpdf \
		--with-system-zziplib \
		--with-system-zlib
# XXX
# --with-system-potrace

CFLAGS+=	-I${LOCALBASE}/include \
		-I${LOCALBASE}/include/kpathsea \
		-I${LOCALBASE}/include/ptexenc
PLIST_SUB=	INSTALL_DATA="${INSTALL_DATA}"
INSTALL_TARGET=	install-strip

SHEBANG_FILES=	texk/texlive/linked_scripts/a2ping/a2ping.pl \
		texk/texlive/linked_scripts/accfonts/mkt1font \
		texk/texlive/linked_scripts/accfonts/vpl2ovp \
		texk/texlive/linked_scripts/accfonts/vpl2vpl \
		texk/texlive/linked_scripts/adhocfilelist/adhocfilelist.sh \
		texk/texlive/linked_scripts/arara/arara.sh \
		texk/texlive/linked_scripts/authorindex/authorindex \
		texk/texlive/linked_scripts/bibexport/bibexport.sh \
		texk/texlive/linked_scripts/bundledoc/arlatex \
		texk/texlive/linked_scripts/bundledoc/bundledoc \
		texk/texlive/linked_scripts/cachepic/cachepic.tlu \
		texk/texlive/linked_scripts/checkcites/checkcites.lua \
		texk/texlive/linked_scripts/context/perl/mptopdf.pl \
		texk/texlive/linked_scripts/context/stubs/unix/context \
		texk/texlive/linked_scripts/context/stubs/unix/contextjit \
		texk/texlive/linked_scripts/context/stubs/unix/ctxtools \
		texk/texlive/linked_scripts/context/stubs/unix/luatools \
		texk/texlive/linked_scripts/context/stubs/unix/mtxrun \
		texk/texlive/linked_scripts/context/stubs/unix/mtxrunjit \
		texk/texlive/linked_scripts/context/stubs/unix/pstopdf \
		texk/texlive/linked_scripts/context/stubs/unix/texexec \
		texk/texlive/linked_scripts/context/stubs/unix/texmfstart \
		texk/texlive/linked_scripts/convbkmk/convbkmk.rb \
		texk/texlive/linked_scripts/ctanify/ctanify \
		texk/texlive/linked_scripts/ctanupload/ctanupload.pl \
		texk/texlive/linked_scripts/de-macro/de-macro \
		texk/texlive/linked_scripts/dosepsbin/dosepsbin.pl \
		texk/texlive/linked_scripts/dtxgen/dtxgen \
		texk/texlive/linked_scripts/dviasm/dviasm.py \
		texk/texlive/linked_scripts/ebong/ebong.py \
		texk/texlive/linked_scripts/epspdf/epspdf.tlu \
		texk/texlive/linked_scripts/epspdf/epspdftk.tcl \
		texk/texlive/linked_scripts/epstopdf/epstopdf.pl \
		texk/texlive/linked_scripts/exceltex/exceltex \
		texk/texlive/linked_scripts/fig4latex/fig4latex \
		texk/texlive/linked_scripts/findhyph/findhyph \
		texk/texlive/linked_scripts/fontools/afm2afm \
		texk/texlive/linked_scripts/fontools/autoinst \
		texk/texlive/linked_scripts/fontools/ot2kpx \
		texk/texlive/linked_scripts/fragmaster/fragmaster.pl \
		texk/texlive/linked_scripts/glossaries/makeglossaries \
		texk/texlive/linked_scripts/installfont/installfont-tl \
		texk/texlive/linked_scripts/jfontmaps/kanji-config-updmap-sys.sh \
		texk/texlive/linked_scripts/jfontmaps/kanji-config-updmap.pl \
		texk/texlive/linked_scripts/jfontmaps/kanji-fontmap-creator.pl \
		texk/texlive/linked_scripts/kotex-utils/jamo-normalize.pl \
		texk/texlive/linked_scripts/kotex-utils/komkindex.pl \
		texk/texlive/linked_scripts/kotex-utils/ttf2kotexfont.pl \
		texk/texlive/linked_scripts/latex-git-log/latex-git-log \
		texk/texlive/linked_scripts/latex2man/latex2man \
		texk/texlive/linked_scripts/latexdiff/latexdiff-vc.pl \
		texk/texlive/linked_scripts/latexdiff/latexdiff.pl \
		texk/texlive/linked_scripts/latexdiff/latexrevise.pl \
		texk/texlive/linked_scripts/latexfileversion/latexfileversion \
		texk/texlive/linked_scripts/latexindent/latexindent.pl \
		texk/texlive/linked_scripts/latexmk/latexmk.pl \
		texk/texlive/linked_scripts/latexpand/latexpand \
		texk/texlive/linked_scripts/lilyglyphs/lily-glyph-commands.py \
		texk/texlive/linked_scripts/lilyglyphs/lily-image-commands.py \
		texk/texlive/linked_scripts/lilyglyphs/lily-rebuild-pdfs.py \
		texk/texlive/linked_scripts/listbib/listbib \
		texk/texlive/linked_scripts/listings-ext/listings-ext.sh \
		texk/texlive/linked_scripts/ltxfileinfo/ltxfileinfo \
		texk/texlive/linked_scripts/ltximg/ltximg.pl \
		texk/texlive/linked_scripts/lua2dox/lua2dox_filter \
		texk/texlive/linked_scripts/luaotfload/luaotfload-tool.lua \
		texk/texlive/linked_scripts/m-tx/m-tx.lua \
		texk/texlive/linked_scripts/match_parens/match_parens \
		texk/texlive/linked_scripts/mathspic/mathspic.pl \
		texk/texlive/linked_scripts/mf2pt1/mf2pt1.pl \
		texk/texlive/linked_scripts/mkgrkindex/mkgrkindex \
		texk/texlive/linked_scripts/mkjobtexmf/mkjobtexmf.pl \
		texk/texlive/linked_scripts/mkpic/mkpic \
		texk/texlive/linked_scripts/multibibliography/multibibliography.pl \
		texk/texlive/linked_scripts/musixtex/musixflx.lua \
		texk/texlive/linked_scripts/musixtex/musixtex.lua \
		texk/texlive/linked_scripts/oberdiek/pdfatfi.pl \
		texk/texlive/linked_scripts/pax/pdfannotextractor.pl \
		texk/texlive/linked_scripts/pdfcrop/pdfcrop.pl \
		texk/texlive/linked_scripts/pdfjam/pdf180 \
		texk/texlive/linked_scripts/pdfjam/pdf270 \
		texk/texlive/linked_scripts/pdfjam/pdf90 \
		texk/texlive/linked_scripts/pdfjam/pdfbook \
		texk/texlive/linked_scripts/pdfjam/pdfflip \
		texk/texlive/linked_scripts/pdfjam/pdfjam \
		texk/texlive/linked_scripts/pdfjam/pdfjam-pocketmod \
		texk/texlive/linked_scripts/pdfjam/pdfjam-slides3up \
		texk/texlive/linked_scripts/pdfjam/pdfjam-slides6up \
		texk/texlive/linked_scripts/pdfjam/pdfjoin \
		texk/texlive/linked_scripts/pdfjam/pdfnup \
		texk/texlive/linked_scripts/pdfjam/pdfpun \
		texk/texlive/linked_scripts/pedigree-perl/pedigree.pl \
		texk/texlive/linked_scripts/perltex/perltex.pl \
		texk/texlive/linked_scripts/pfarrei/a5toa4.tlu \
		texk/texlive/linked_scripts/pfarrei/pfarrei.tlu \
		texk/texlive/linked_scripts/pkfix-helper/pkfix-helper \
		texk/texlive/linked_scripts/pkfix/pkfix.pl \
		texk/texlive/linked_scripts/pmx/pmx2pdf.lua \
		texk/texlive/linked_scripts/pmxchords/pmxchords.lua \
		texk/texlive/linked_scripts/pst-pdf/ps4pdf \
		texk/texlive/linked_scripts/pst2pdf/pst2pdf.pl \
		texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua \
		texk/texlive/linked_scripts/purifyeps/purifyeps \
		texk/texlive/linked_scripts/pythontex/depythontex.py \
		texk/texlive/linked_scripts/pythontex/pythontex.py \
		texk/texlive/linked_scripts/rubik/rubikrotation.pl \
		texk/texlive/linked_scripts/scripts.lst \
		texk/texlive/linked_scripts/simpdftex/simpdftex \
		texk/texlive/linked_scripts/splitindex/splitindex.pl \
		texk/texlive/linked_scripts/sty2dtx/sty2dtx.pl \
		texk/texlive/linked_scripts/svn-multi/svn-multi.pl \
		texk/texlive/linked_scripts/texcount/texcount.pl \
		texk/texlive/linked_scripts/texdef/texdef.pl \
		texk/texlive/linked_scripts/texdiff/texdiff \
		texk/texlive/linked_scripts/texdirflatten/texdirflatten \
		texk/texlive/linked_scripts/texdoc/texdoc.tlu \
		texk/texlive/linked_scripts/texfot/texfot.pl \
		texk/texlive/linked_scripts/texlive/rungs.tlu \
		texk/texlive/linked_scripts/texlive/tlmgr.pl \
		texk/texlive/linked_scripts/texlive/updmap.pl \
		texk/texlive/linked_scripts/texliveonfly/texliveonfly.py \
		texk/texlive/linked_scripts/texloganalyser/texloganalyser \
		texk/texlive/linked_scripts/thumbpdf/thumbpdf.pl \
		texk/texlive/linked_scripts/typeoutfileinfo/typeoutfileinfo.sh \
		texk/texlive/linked_scripts/ulqda/ulqda.pl \
		texk/texlive/linked_scripts/urlbst/urlbst \
		texk/texlive/linked_scripts/vpe/vpe.pl
INFO=	dvipng tlbuild

post-patch:
	cd ${WRKSRC}/texk/texlive/tl_scripts && \
	    ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
	    fmtutil-sys.sh texconfig-sys.sh updmap-sys.sh

post-install-fmtutil:
	for D in ${TEXHASHDIRS}; do \
		${MKDIR} ${STAGEDIR}${PREFIX}/$$D; \
		${TOUCH} ${STAGEDIR}${PREFIX}/$$D/.keep_me; \
	done
	${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFCONFIGDIR}/web2c
	${TOUCH} ${STAGEDIR}${PREFIX}/${TEXMFCONFIGDIR}/web2c/.keep_me
	${INSTALL_DATA} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/web2c/fmtutil.cnf \
		${STAGEDIR}${PREFIX}/${FMTUTIL_CNF}

post-install: post-install-fmtutil
.ORDER: post-install-fmtutil do-texhash

.include <bsd.port.mk>
OpenPOWER on IntegriCloud