source: trunk/dports/tex/texlive_base/Portfile @ 65139

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

Revision bump for jpeg. (#24156)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.1 KB
Line 
1# $Id: Portfile 65139 2010-03-22 19:51:18Z macsforever2000@macports.org $
2
3PortSystem 1.0
4
5name            texlive_base
6version         2007
7revision        8
8categories      tex
9maintainers     nomaintainer
10description     TeX Live Binaries.
11long_description    TeX Live is an easy way to get up and running with TeX. \
12    It provides a comprehensive TeX system with binaries for most flavors \
13    of Unix, including GNU/Linux, and also Windows. It includes all the \
14    major TeX-related programs, macro packages, and fonts that are free \
15    software, including support for many languages around the world.
16
17homepage        http://www.tug.org/texlive/
18platforms       darwin
19
20master_sites    openbsd:distfiles \
21                http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/
22distname        ${name}-${version}-src
23worksrcdir      ${name}-${version}
24use_bzip2       yes
25
26# Bug #17555
27universal_variant no
28
29# Bug #18303
30use_parallel_build no
31
32checksums       md5 db006e9f0f63e9be72bd5c45d07905f6 \
33                sha1 f6f0192c200473c361aedfa8d34691a99e4f7065
34depends_lib     port:freetype port:fontconfig port:ncurses port:zlib \
35                port:libpng port:texinfo port:texi2html port:ghostscript \
36                port:texlive_texmf-minimal port:texlive_texmf-full \
37                port:xorg-libXp
38
39conflicts       pTeX ps2eps
40
41depends_build   path:bin/perl:perl5
42
43configure.args  --mandir=${prefix}/share/man \
44                --infodir=${prefix}/share/info \
45                --with-system-freetype2 --with-system-ncurses \
46                --with-freetype2-libdir=${prefix}/lib \
47                --with-freetype2-include=${prefix}/include \
48                --with-system-pnglib --with-system-zlib \
49                --with-system-gd --with-fontconfig=${prefix} \
50                --disable-multiplatform --without-texinfo \
51                --without-xdvipdfmx --without-texi2html \
52                --without-psutils --without-system-icu \
53                --x-includes=${prefix}/include \
54                --x-libraries=${prefix}/lib
55
56configure.cppflags-delete   -I${prefix}/include
57configure.cppflags-append   -isystem${prefix}/include
58
59post-destroot   {
60    copy ${destroot}${prefix}/share/texmf/web2c/texmf.cnf \
61        ${destroot}${prefix}/share/texmf/web2c/texmf.cnf-dist
62    reinplace "s/^TEXMFSYSCONFIG = .*/TEXMFSYSCONFIG = \$TEXMFMAIN/g" \
63        ${destroot}${prefix}/share/texmf/web2c/texmf.cnf
64#
65#   if there is no graphics support (no_x11) then only mf is built
66#   not mf-nowin.  if mf-nowin does not exist, make a link to mf named mf-nowin for scripts
67#   that expect to have it
68#
69    if {![file exists ${destroot}${prefix}/bin/mf-nowin]} {
70        file link ${destroot}${prefix}/bin/mf-nowin ${destroot}${prefix}/bin/mf
71    }
72}
73
74post-activate   {
75        system "mktexlsr"
76        system "fmtutil-sys --all"
77        system "updmap-sys --syncwithtrees"
78}
79
80if {![variant_isset no_x11] && ![variant_isset motif] && ![variant_isset xaw] && ![variant_isset xaw3d] && ![variant_isset nextaw]} {
81    default_variants    +motif
82}
83
84variant no_x11 conflicts xaw motif xaw3d nextaw {
85    depends_lib-delete port:xorg-libXp
86    configure.args-append --without-x --without-pdfopen
87    configure.args-delete  --x-includes=${prefix}/include \
88                           --x-libraries=${prefix}/lib
89}
90variant motif conflicts no_x11 xaw xaw3d nextaw description {Use Motif to build xdvi} {
91     depends_lib-append lib:libXm:openmotif
92     configure.args-append --with-xdvi-x-toolkit=motif
93}
94variant xaw conflicts no_x11 motif xaw3d nextaw description {Use Xaw to build xdvi} {
95    depends_lib-append port:xorg-libXaw
96    configure.args-append --with-xdvi-x-toolkit=xaw
97}
98variant xaw3d conflicts no_x11 motif xaw nextaw description {Use Xaw3d to build xdvi} {
99    depends_lib-append port:Xaw3d
100    configure.args-append --with-xdvi-x-toolkit=xaw3d
101}
102variant nextaw conflicts no_x11 motif xaw xaw3d description {Use neXtaw to build xdvi} {
103    depends_lib-append port:neXtaw
104    configure.args-append --with-xdvi-x-toolkit=neXtaw
105}
106
107livecheck.type      regex
108livecheck.url       ${homepage}acquire.html
109livecheck.regex     "TeX Live (\[0-9\]+) "
110
111post-patch {
112    # Allow configure script to find libraries which end in .dylib.
113    reinplace "s|for ac_extension in a so sl; do|for ac_extension in a so sl dylib; do|" \
114        ${worksrcpath}/configure
115
116    # Ensure correct compilers are used
117    reinplace "s|CXX = c++|CXX = @CXX@|" \
118        ${worksrcpath}/texk/xdv2pdf/Makefile.in
119    reinplace "s|OBJC = cc|OBJC = \$(CC)|" \
120        ${worksrcpath}/texk/xdv2pdf/Makefile.in
121
122    # The check for Carbon is actually used for ATSU which is deprecated, force freetype
123    reinplace "s|has_carbon=yes|has_carbon=no|" ${worksrcpath}/texk/web2c/configure
124    reinplace "s|has_carbon=yes|has_carbon=no|" ${worksrcpath}/texk/xdv2pdf/configure
125}
126
127post-configure {
128    # Ensure correct compiler is used
129    reinplace "s|gcc -ObjC++ |\$(CC) -ObjC++ |" \
130        ${worksrcpath}/texk/web2c/Makefile
131}
132
133pre-configure {
134    reinplace "s|@echo|@/bin/echo|" ${worksrcpath}/libs/icu-xetex/config/mh-darwin
135}
136
137#Include all openBSD patches. Make texlive honor DESTDIR.
138patchfiles      patch-Makefile_in\
139    patch-libs_icu-xetex_Makefile_in\
140    patch-libs_icu-xetex_layout_KernTable_cpp\
141    patch-texk_afm2pl_Makefile_in\
142    patch-texk_bibtex8_Makefile_in\
143    patch-texk_cjkutils_conv_Makefile_in\
144    patch-texk_cjkutils_hbf2gf_Makefile_in\
145    patch-texk_cjkutils_scripts_Makefile_in\
146    patch-texk_detex_Makefile_in\
147    patch-texk_dtl_Makefile_in\
148    patch-texk_dvi2tty_Makefile_in\
149    patch-texk_dvidvi_Makefile_in\
150    patch-texk_dviljk_Makefile_in\
151    patch-texk_dvipdfm_Makefile_in\
152    patch-texk_dvipos_Makefile_in\
153    patch-texk_dvipsk_Makefile_in\
154    patch-texk_gsftopk_Makefile_in\
155    patch-texk_kpathsea_Makefile_in\
156    patch-texk_lacheck_Makefile_in\
157    patch-texk_make_man_mk\
158    patch-texk_makeindexk_Makefile_in\
159    patch-texk_musixflx_Makefile_in\
160    patch-texk_ps2pkm_Makefile_in\
161    patch-texk_seetexk_Makefile_in\
162    patch-texk_tetex_Makefile_in\
163    patch-texk_tetex_texlinks\
164    patch-texk_tex4htk_Makefile_in\
165    patch-texk_texlive_Makefile_in\
166    patch-texk_ttf2pk_Makefile_in\
167    patch-texk_web2c_Makefile_in\
168    patch-texk_web2c_alephdir_aleph_mk\
169    patch-texk_web2c_doc_Makefile_in\
170    patch-texk_web2c_mpware_Makefile_in\
171    patch-texk_web2c_omegadir_omega_mk\
172    patch-texk_web2c_omegafonts_Makefile_in\
173    patch-texk_web2c_otps_Makefile_in\
174    patch-texk_web2c_pdftexdir_pdftex_mk\
175    patch-texk_web2c_texmfmem_h\
176    patch-texk_web2c_xetexdir_XeTeX_ext_c\
177    patch-texk_web2c_xetexdir_XeTeX_ext_h\
178    patch-texk_web2c_xetexdir_XeTeX_mac_c\
179    patch-texk_web2c_xetexdir_jpegimage_c\
180    patch-texk_web2c_xetexdir_xetex-new_ch\
181    patch-texk_web2c_xetexdir_xetex_defines\
182    patch-texk_web2c_xetexdir_xetex_h\
183    patch-texk_web2c_xetexdir_xetex_mk\
184    patch-texk_xdv2pdf_Makefile_in\
185    patch-texk_xdvik_configure.diff\
186    patch-texk_xdvik_Makefile_in\
187    patch-texk_xdvipdfmx_src_tt_cmap_c\
188    patch-utils_dialog_Makefile_in\
189    patch-utils_ps2eps_Makefile_in\
190    patch-utils_psutils_Makefile_in\
191    patch-texk_web2c_omegafonts_pl_l.diff
192
193# MP patches... kept separate from OpenBSD patches for maintainability
194patchfiles-append \
195    XeTeX_mac-loadAATfont.patch
Note: See TracBrowser for help on using the repository browser.