Ticket #11989: Portfile.diff

File Portfile.diff, 2.3 KB (added by n.oxyde@…, 17 years ago)
  • Portfile

     
    33PortSystem 1.0
    44name            tiff
    55version         3.8.2
     6revision    1
    67categories      graphics
    78maintainers     waqar@macports.org
    89description     Library and tools for dealing with Tag Image File Format
     
    1920        that are written to follow the 5.0 or 6.0 TIFF spec.            \
    2021        There is also considerable support for some of the more         \
    2122        esoteric portions of the 6.0 TIFF spec.
    22 homepage        http://www.libtiff.org/
     23homepage        http://www.remotesensing.org/libtiff/
    2324platforms       darwin
    2425master_sites    ftp://ftp.remotesensing.org/pub/libtiff/ \
    25                 ftp://ftp.remotesensing.org/pub/libtiff/old \
    2626                http://dl.maptools.org/dl/libtiff/ \
    2727                freebsd
    2828
    29 checksums       sha1 549e67b6a15b42bfcd72fe17cda7c9a198a393eb
     29checksums   md5 fbb6f446ea4ed18955e2714934e5b698 \
     30            sha1 549e67b6a15b42bfcd72fe17cda7c9a198a393eb \
     31            rmd160 1b4d825e3be08764e953fc58246d0c25ab4dd17d
    3032
    31 depends_lib     port:jpeg port:zlib
     33depends_lib     port:zlib
    3234
    3335configure.args  --mandir=${prefix}/share/man \
    34                 --with-jpeg-include-dir=${prefix}/include \
    35                 --with-jpeg-lib-dir=${prefix}/lib \
     36                --with-docdir=${prefix}/share/doc/${name}-${version} \
     37                --disable-jpeg \
    3638                --with-zlib-include-dir=${prefix}/include \
    3739                --with-zlib-lib-dir=${prefix}/lib
    3840
    39 post-destroot {
    40         xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
    41         file copy ${worksrcpath}/html/images \
    42                 ${destroot}/${prefix}/share/doc/${name}
    43         eval xinstall -m 644 [glob ${worksrcpath}/html/*.html] \
    44                 ${destroot}/${prefix}/share/doc/${name}
     41test.run        yes
     42test.target     check
     43
     44variant jpeg description {Add JPEG compression support} {
     45    configure.args-delete   --disable-jpeg
     46    configure.args-append   --with-jpeg-include-dir=${prefix}/include \
     47                            --with-jpeg-lib-dir=${prefix}/lib
     48
     49    depends_lib-append      port:jpeg
    4550}
    4651
     52variant x11 description {Add X Window System support} {
     53    configure.args-append   --with-x
     54    depends_lib-append      lib:libX11.6:XFree86
     55}
     56
     57platform macosx {
     58    configure.args-append   --with-apple-opengl-framework
     59}
     60
    4761platform darwin 8 {
    4862        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    4963}
     64
     65livecheck.name  lib${name}