source: trunk/dports/print/teTeX/Portfile @ 2071

Last change on this file since 2071 was 2071, checked in by michaelm, 18 years ago

updated to use correct url for new opendarwin distfiles virtual host

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1PortSystem 1.0
2name                    teTeX
3version                 3.14159
4categories              print textproc
5description             TeX and METAFONT
6long_description        teTeX is a TeX distribution for UNIX compatible \
7                        systems.  It contains the latest versions of TeX & \
8                        friends and nearly everything you need for happy \
9                        TeX'ing.  For more information have a look at \
10                        the lengthy FEATURES file of the distribution.
11platforms               darwin
12maintainers             landonf@opendarwin.org
13depends_lib             lib:libpng.3:libpng lib:libwwwcore.0:libwww
14
15set tetex_src           teTeX-src-1.0.7.tar.gz
16set tetex_texmf         teTeX-texmf-1.0.2.tar.gz
17set tetex_texmftree     ${destroot}/${prefix}/share/texmf
18
19master_sites            ftp://wuarchive.wustl.edu/packages/TeX/systems/unix/teTeX/1.0/distrib/sources/  \
20                        ftp://ftp.funet.fi/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/  \
21                        ftp://ctan.unsw.edu.au/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
22                        ftp://ftp.cise.ufl.edu/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
23                        ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX/1.0/distrib/sources/  \
24                        ftp://ftp.kddlabs.co.jp/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
25                        ftp://sunsite.auc.dk/pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/ \
26                        ftp://ctan.tug.org/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
27                        ftp://ftp.dante.de/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
28                        ftp://ftp.dnsbalance.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
29                        http://www.dnsbalance.ring.gr.jp/archives/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
30                        ftp://ftp.chg.ru/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
31                        http://distfiles.opendarwin.org/:lt
32
33dist_subdir             teTeX
34distfiles               ${tetex_src} ${tetex_texmf} ltconfig13:lt ltmain13:lt
35checksums               ${tetex_src} md5 2c6da2a45096c2fdc41b8de6a8af1a52 \
36                        ${tetex_texmf} md5 7811ed356cca07b16ea8422f00c3cd34 \
37                        ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
38                        ltmain13 md5 e094ae92724c4015dbab97de151c2525
39
40extract.only            ${tetex_src}
41worksrcdir              teTeX-1.0
42
43patchfiles              patch-autoconf
44
45post-patch {            system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"
46                        system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh"
47}
48
49configure.type          gnu
50configure.args          --disable-multiplatform --without-texinfo --without-dialog \
51                        --with-system-ncurses --with-system-zlib --with-system-wwwlib \
52                        --with-libwww-libdir=${prefix}/lib \
53                        --with-libwww-include=${prefix}/include/w3c-libwww \
54                        --with-system-pnglib --with-pnglib-libdir=${prefix}/lib \
55                        --with-pnglib-include=${prefix}/include
56# Apple gcc3 bug
57configure.env           CXXFLAGS=-fno-rtti CPPFLAGS=-no-cpp-precomp
58
59pre-install {           file mkdir ${tetex_texmftree}; cd ${tetex_texmftree}
60                        system "tar xfz ${distpath}/${tetex_texmf}"
61}
62
63post-install {
64                        # ranlib static library to keep darwin happy
65                        system "ranlib ${destroot}/${prefix}/lib/libkpathsea.a"
66                        # Modify mktex.opt to force use of varfonts
67                        reinplace s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g' ${destroot}/${prefix}/share/texmf/web2c/mktex.opt
68                        # Rename 'dialog' to 'tcdialog'
69                        file move ${destroot}/${prefix}/man1/dialog.1 ${destroot}/${prefix}/man1/tcdialog.1
70                        file move ${destroot}/${prefix}/bin/dialog ${destroot}/${prefix}/bin/tcdialog
71
72                        # Create a local texmf tree
73                        file mkdir ${destroot}/${prefix}/share/texmf.local/web2c
74
75                        # Create the texmf.macosx tree
76                        file mkdir ${destroot}/${prefix}/share/texmf.macosx/web2c
77}
78
79
80install.target          install strip
81install.destroot        prefix=${destroot}/${prefix}/ texmf=${destroot}/${prefix}/
Note: See TracBrowser for help on using the repository browser.