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

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

texlive-bin, texlive-common: merge in a couple more changes that
inexplicably did not get merged over by r68884:

  • set supported_archs
  • add pre-activate hook to texlive-common to remove old texlive 2007 ports
  • remove libXmu from archcheck for texlive-bin +no_x11
  • update maintainer email address
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.0 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 68890 2010-06-17 00:25:08Z dports@macports.org $
3
4PortSystem      1.0
5PortGroup       texlive 1.0
6PortGroup       archcheck 1.0
7
8name            texlive-bin
9version         2009
10revision        1
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
34# xetex doesn't build 64-bit; force 32-bit for now
35supported_archs i386 ppc
36universal_variant no
37
38archcheck.files lib/libz.dylib \
39                lib/libpng.dylib \
40                lib/libt1.dylib \
41                lib/libfreetype.dylib \
42                lib/libgd.dylib \
43                lib/libpoppler.dylib \
44                lib/libXmu.dylib \
45                lib/libXp.dylib
46
47# Bug #18303
48use_parallel_build no
49
50depends_lib     port:fontconfig \
51                port:freetype \
52                port:gd2 \
53                port:libpng \
54                port:ncurses \
55                port:zlib \
56                port:t1lib \
57                port:poppler \
58                port:xorg-libXp \
59                port:texlive-common
60
61depends_run     port:ghostscript
62
63depends_build   path:bin/perl:perl5
64
65patchfiles      patch-configure \
66                patch-libs-freetype-Makefile.in.diff \
67                patch-texk_web2c_luatexdir_image_pdftoepdf_cc \
68                patch-texk_web2c_pdftexdir_pdftoepdf_cc \
69                patch-texk_xdvipdfmx_configure.diff \
70                patch-texk_texlive_linked_scripts_Makefile.in.diff
71
72post-patch {
73    reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|" ${worksrcpath}/texk/texlive/linked_scripts/Makefile.in
74    reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|" ${worksrcpath}/texk/texlive/linked_scripts/Makefile.in
75}
76
77
78# We use MacPorts-provided libraries instead of the ones included in
79# texlive whenever possible, to avoid redundancy and to better keep
80# current with respect to security updates and the like.
81#
82# Exceptions are freetype1 (not in MacPorts anymore) and icu (the
83# texlive version is non-standard)
84configure.args  --mandir=${prefix}/share/man \
85                --infodir=${prefix}/share/info \
86                --disable-multiplatform \
87                --disable-native-texlive-build \
88                --without-old-mac-fonts \
89                --with-tex-banner="TeX Live/MacPorts ${version}" \
90                --enable-shared \
91                --with-system-freetype2 \
92                --without-system-freetype \
93                --without-system-icu \
94                --with-system-gd \
95                --with-system-libpng \
96                --with-libpng-includes=${prefix}/include \
97                --with-libpng-libdir=${prefix}/lib \
98                --with-system-ncurses \
99                --with-system-t1lib \
100                --with-t1lib-includes=${prefix}/include \
101                --with-t1lib-libdir=${prefix}/lib \
102                --with-system-xpdf \
103                --with-system-zlib \
104                --disable-detex \
105                --disable-dvi2tty \
106                --disable-ps2eps \
107                --disable-psutils \
108                --disable-t1utils \
109                --disable-texinfo \
110                --disable-xindy
111
112configure.cppflags-delete   -I${prefix}/include
113configure.cppflags-append   -isystem${prefix}/include
114
115# work around bug in texlive makefiles where $OBJC is not recorded
116# during configure phase
117append_list_to_environment_value build "OBJC" ${configure.objc}
118append_list_to_environment_value build "OBJCFLAGS" ${configure.objcflags}
119append_list_to_environment_value build "OBJCFLAGS" ${configure.objc_archflags}
120
121
122post-destroot   {
123    # texmf and texmf-dist will be installed by other texlive ports
124    delete ${destroot}${prefix}/texmf
125    delete ${destroot}${prefix}/texmf-dist
126    delete ${destroot}${texlive_texmfmain}
127    delete ${destroot}${texlive_texmfdist}
128}
129
130if {![variant_isset no_x11] && ![variant_isset motif] && ![variant_isset xaw] && ![variant_isset xaw3d] && ![variant_isset nextaw]} {
131    default_variants    +motif
132}
133
134variant no_x11 conflicts xaw motif xaw3d nextaw {
135    depends_lib-delete port:xorg-libXp
136    archcheck.files-delete lib/libXp.dylib lib/libXmu.dylib
137    configure.args-append --without-x --without-pdfopen
138    configure.args-delete  --x-includes=${prefix}/include \
139                           --x-libraries=${prefix}/lib
140}
141variant motif conflicts no_x11 xaw xaw3d nextaw description {Use Motif to build xdvi} {
142     depends_lib-append lib:libXm:openmotif
143     archcheck.files-append lib/libXm.dylib
144     configure.args-append --with-xdvi-x-toolkit=motif
145}
146variant xaw conflicts no_x11 motif xaw3d nextaw description {Use Xaw to build xdvi} {
147    depends_lib-append port:xorg-libXaw
148    archcheck.files-append lib/libXaw.dylib
149    configure.args-append --with-xdvi-x-toolkit=xaw
150}
151variant xaw3d conflicts no_x11 motif xaw nextaw description {Use Xaw3d to build xdvi} {
152    depends_lib-append port:Xaw3d
153    configure.args-append --with-xdvi-x-toolkit=xaw3d
154}
155variant nextaw conflicts no_x11 motif xaw xaw3d description {Use neXtaw to build xdvi} {
156    depends_lib-append port:neXtaw
157    archcheck.files-append lib/libnextXaw.dylib
158    configure.args-append --with-xdvi-x-toolkit=neXtaw
159}
160
161livecheck.type      regex
162livecheck.url       ${homepage}acquire.html
163livecheck.regex     "TeX Live (\[0-9\]+) "
Note: See TracBrowser for help on using the repository browser.