source: trunk/dports/textproc/tth/Portfile @ 74677

Last change on this file since 74677 was 74677, checked in by toby@…, 9 years ago

tth 4.00

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 74677 2010-12-27 22:54:14Z toby@macports.org $
2
3PortSystem 1.0
4
5name            tth
6version         4.00
7categories      textproc print
8maintainers     toby
9description     a TeX to HTML transaltor
10long_description \
11    TTH translates TEX, the predominant mark-up language for    \
12    expressing mathematics, into HTML, the language of          \
13    world-wide-web browsers. It thereby enables mathematical    \
14    documents to be made available on the web. Document structure,      \
15    using either the Plain or LaTeX macro packages, is also     \
16    translated and incorporated in the form of hyperlinks.
17platforms       darwin freebsd
18homepage        http://hutchinson.belmont.ma.us/tth/
19
20master_sites    ${homepage}tth-noncom/
21distname        ${name}_C
22extract.suffix  .tgz
23
24dist_subdir     ${name}/${version}
25
26checksums       md5 0c5ca8ecba950075f12c98bd9ae42087 \
27                sha1 b0d290b8f15e10889a56b504892780a5caa9e126 \
28                rmd160 64ee3b3fc147de45bb316bb31d2d606bca3fd77e
29
30# sigh
31configure {}
32set mycflags ${configure.cflags}
33if {[variant_isset universal]} {
34    set mycflags "$mycflags ${configure.universal_cflags}"
35} else {
36    if {[info exists configure.cc_archflags]} { set mycflags "$mycflags ${configure.cc_archflags}" }
37}
38
39build.cmd       ${configure.cc}
40build.pre_args
41build.args      $mycflags ${name}.c -o ${name}
42
43destroot {
44    xinstall -m 755 ${worksrcpath}/tth ${destroot}${prefix}/bin
45    xinstall -m 755 ${worksrcpath}/latex2gif ${destroot}${prefix}/bin
46    xinstall -m 755 ${worksrcpath}/ps2gif ${destroot}${prefix}/bin
47    xinstall -m 755 ${worksrcpath}/ps2png ${destroot}${prefix}/bin
48    xinstall -m 644 ${worksrcpath}/tth.1 ${destroot}${prefix}/share/man/man1
49}
50
51livecheck.url   ${homepage}Version
52livecheck.regex \"(.*)\"
Note: See TracBrowser for help on using the repository browser.