source: trunk/dports/tex/texlive-bin/Portfile @ 68917

Last change on this file since 68917 was 68917, checked in by dports@…, 10 years ago

texlive-bin: disable ATSUI for XeTeX font rendering unless explicitly
enabled via the +atsui variant

Re-enable 64-bit builds unless +atsui is specified (forces 32-bit)

Add revision number to banner

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 68917 2010-06-17 22:38:38Z dports@macports.org $
3
4PortSystem      1.0
5PortGroup       texlive 1.0
6PortGroup       archcheck 1.0
7
8name            texlive-bin
9version         2009
10revision        2
11
12categories      tex
13maintainers     dports
14description     TeX Live Binaries.
15long_description    TeX Live is an easy way to get up and running with TeX. \
16    It provides a comprehensive TeX system with binaries for most flavors \
17    of Unix, including GNU/Linux, and also Windows. It includes all the \
18    major TeX-related programs, macro packages, and fonts that are free \
19    software, including support for many languages around the world.
20
21homepage        http://www.tug.org/texlive/
22platforms       darwin
23
24# distfile is the same as the official one, but recompressed in bz2
25master_sites    http://flute.csail.mit.edu/texlive/
26set distversion 20091107
27distname        texlive-${distversion}-source
28worksrcdir      ${distname}
29use_bzip2       yes
30checksums       md5 34e636c76534d4b3a1b3f06f568ddedc \
31                sha1 891434197b1aa60030eb059553697cb40c6ab15b \
32                rmd160 e467932d53abe418f4e36a56afb683912ab0caec
33
34universal_variant no
35
36archcheck.files lib/libz.dylib \
37                lib/libpng.dylib \
38                lib/libt1.dylib \
39                lib/libfreetype.dylib \
40                lib/libgd.dylib \
41                lib/libpoppler.dylib \
42                lib/libXmu.dylib \
43                lib/libXp.dylib
44
45# Bug #18303
46use_parallel_build no
47
48depends_lib     port:fontconfig \
49                port:freetype \
50                port:gd2 \
51                port:libpng \
52                port:ncurses \
53                port:zlib \
54                port:t1lib \
55                port:poppler \
56                port:xorg-libXp \
57                port:texlive-common
58
59depends_run     port:ghostscript
60
61depends_build   path:bin/perl:perl5
62
63patchfiles      patch-configure \
64                patch-libs-freetype-Makefile.in.diff \
65                patch-texk_web2c_luatexdir_image_pdftoepdf_cc \
66                patch-texk_web2c_pdftexdir_pdftoepdf_cc \
67                patch-texk_xdvipdfmx_configure.diff \
68                patch-texk_texlive_linked_scripts_Makefile.in.diff
69
70post-patch {
71    reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|" ${worksrcpath}/texk/texlive/linked_scripts/Makefile.in
72    reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|" ${worksrcpath}/texk/texlive/linked_scripts/Makefile.in
73
74    if {![variant_isset atsui]} {
75        # Force configure to believe that Carbon API is
76        # unavailable. This test is actually used to determine whether
77        # ATSUI should be used.
78        reinplace "s|kpse_cv_have_Carbon=yes|kpse_cv_have_Carbon=no|" ${worksrcpath}/texk/web2c/configure
79        reinplace "s|kpse_cv_have_Carbon=yes|kpse_cv_have_Carbon=no|" ${worksrcpath}/texk/xdv2pdf/configure
80    }
81}
82
83
84# We use MacPorts-provided libraries instead of the ones included in
85# texlive whenever possible, to avoid redundancy and to better keep
86# current with respect to security updates and the like.
87#
88# Exceptions are freetype1 (not in MacPorts anymore) and icu (the
89# texlive version is non-standard)
90configure.args  --mandir=${prefix}/share/man \
91                --infodir=${prefix}/share/info \
92                --disable-multiplatform \
93                --disable-native-texlive-build \
94                --without-old-mac-fonts \
95                --with-tex-banner="TeX Live/MacPorts ${version}_${revision}" \
96                --enable-shared \
97                --with-system-freetype2 \
98                --without-system-freetype \
99                --without-system-icu \
100                --with-system-gd \
101                --with-system-libpng \
102                --with-libpng-includes=${prefix}/include \
103                --with-libpng-libdir=${prefix}/lib \
104                --with-system-ncurses \
105                --with-system-t1lib \
106                --with-t1lib-includes=${prefix}/include \
107                --with-t1lib-libdir=${prefix}/lib \
108                --with-system-xpdf \
109                --with-system-zlib \
110                --disable-detex \
111                --disable-dvi2tty \
112                --disable-ps2eps \
113                --disable-psutils \
114                --disable-t1utils \
115                --disable-texinfo \
116                --disable-xindy
117
118configure.cppflags-delete   -I${prefix}/include
119configure.cppflags-append   -isystem${prefix}/include
120
121# work around bug in texlive makefiles where $OBJC is not recorded
122# during configure phase
123pre-build {
124    append_list_to_environment_value build "OBJC" ${configure.objc}
125    append_list_to_environment_value build "OBJCFLAGS" ${configure.objcflags}
126    append_list_to_environment_value build "OBJCFLAGS" ${configure.objc_archflags}
127}
128
129post-destroot   {
130    # texmf and texmf-dist will be installed by other texlive ports
131    delete ${destroot}${prefix}/texmf
132    delete ${destroot}${prefix}/texmf-dist
133    delete ${destroot}${texlive_texmfmain}
134    delete ${destroot}${texlive_texmfdist}
135}
136
137post-activate {
138    system "${prefix}/bin/texhash"
139}
140
141variant atsui description {Use ATSUI instead of freetype for XeTeX font rendering (forces 32-bit)} {
142    # force 32-bit build
143    supported_archs i386 ppc
144}
145
146if {![variant_isset no_x11] && ![variant_isset motif] && ![variant_isset xaw] && ![variant_isset xaw3d] && ![variant_isset nextaw]} {
147    default_variants    +motif
148}
149
150variant no_x11 conflicts xaw motif xaw3d nextaw {
151    depends_lib-delete port:xorg-libXp
152    archcheck.files-delete lib/libXp.dylib lib/libXmu.dylib
153    configure.args-append --without-x --without-pdfopen
154    configure.args-delete  --x-includes=${prefix}/include \
155                           --x-libraries=${prefix}/lib
156}
157variant motif conflicts no_x11 xaw xaw3d nextaw description {Use Motif to build xdvi} {
158     depends_lib-append lib:libXm:openmotif
159     archcheck.files-append lib/libXm.dylib
160     configure.args-append --with-xdvi-x-toolkit=motif
161}
162variant xaw conflicts no_x11 motif xaw3d nextaw description {Use Xaw to build xdvi} {
163    depends_lib-append port:xorg-libXaw
164    archcheck.files-append lib/libXaw.dylib
165    configure.args-append --with-xdvi-x-toolkit=xaw
166}
167variant xaw3d conflicts no_x11 motif xaw nextaw description {Use Xaw3d to build xdvi} {
168    depends_lib-append port:Xaw3d
169    configure.args-append --with-xdvi-x-toolkit=xaw3d
170}
171variant nextaw conflicts no_x11 motif xaw xaw3d description {Use neXtaw to build xdvi} {
172    depends_lib-append port:neXtaw
173    archcheck.files-append lib/libnextXaw.dylib
174    configure.args-append --with-xdvi-x-toolkit=neXtaw
175}
176
177livecheck.type      regex
178livecheck.url       ${homepage}acquire.html
179livecheck.regex     "TeX Live (\[0-9\]+) "
Note: See TracBrowser for help on using the repository browser.