Ticket #35188: tth-4.03.diff

File tth-4.03.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)
  • Portfile

     
    33PortSystem 1.0
    44
    55name            tth
    6 version         4.00
     6version         4.03
    77categories      textproc print
    88maintainers     toby
    99description     a TeX to HTML transaltor
     
    2323
    2424dist_subdir     ${name}/${version}
    2525
    26 checksums       md5 0c5ca8ecba950075f12c98bd9ae42087 \
    27                 sha1 b0d290b8f15e10889a56b504892780a5caa9e126 \
    28                 rmd160 64ee3b3fc147de45bb316bb31d2d606bca3fd77e
     26checksums       rmd160  bb0a5a38c5f99dabff0c921a1c2c8cbe476f6b19 \
     27                sha256  ce532f5dcf907c29e1ec581d1bd9c235f0ad66fe75f0b3b703eb2a73664ab61d
    2928
    30 # sigh
    31 configure {}
    32 set mycflags ${configure.cflags}
    33 if {[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 }
     29use_configure   no
    3830
     31variant universal {}
     32
    3933build.cmd       ${configure.cc}
    4034build.pre_args
    41 build.args      $mycflags ${name}.c -o ${name}
     35build.args      ${configure.cflags} [get_canonical_archflags cc] ${name}.c -o ${name}
    4236
    4337destroot {
    4438    xinstall -m 755 ${worksrcpath}/tth ${destroot}${prefix}/bin
     
    4640    xinstall -m 755 ${worksrcpath}/ps2gif ${destroot}${prefix}/bin
    4741    xinstall -m 755 ${worksrcpath}/ps2png ${destroot}${prefix}/bin
    4842    xinstall -m 644 ${worksrcpath}/tth.1 ${destroot}${prefix}/share/man/man1
     43
     44    set docdir ${prefix}/share/doc/${name}
     45    xinstall -d ${destroot}${docdir}
     46    xinstall -m 644 -W ${worksrcpath} \
     47        CHANGES \
     48        license.txt \
     49        tth_manual.html \
     50        ${destroot}${docdir}
    4951}
    5052
    5153livecheck.url   ${homepage}Version