source: trunk/dports/graphics/tiff/Portfile @ 69700

Last change on this file since 69700 was 69700, checked in by jmr@…, 7 years ago

tiff: update to 3.9.4 (#25585, maintainer timeout), add new master_site, remove muniversal, add license, add jbig variant (#25586)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 69700 2010-07-13 17:59:32Z jmr@macports.org $
3
4PortSystem 1.0
5PortGroup  xcodeversion 1.0
6
7name            tiff
8version         3.9.4
9categories      graphics
10license         BSD
11maintainers     waqar
12description     Library and tools for dealing with Tag Image File Format
13long_description \
14        This software provides support for the Tag Image File           \
15        Format (TIFF), a widely used format for storing image           \
16        data.  Included in this software distribution is a              \
17        library, libtiff, for reading and writing TIFF, a small         \
18        collection of tools for doing simple manipulations of           \
19        TIFF images on UNIX systems, documentation on the library       \
20        and tools.  A small assortment of TIFF-related software         \
21        for UNIX that has been contributed by others is also            \
22        included.  The library is capable of dealing with images        \
23        that are written to follow the 5.0 or 6.0 TIFF spec.            \
24        There is also considerable support for some of the more         \
25        esoteric portions of the 6.0 TIFF spec.
26homepage        http://www.remotesensing.org/libtiff
27platforms       darwin
28master_sites    http://download.osgeo.org/libtiff/ \
29                ftp://ftp.remotesensing.org/pub/libtiff/ \
30                http://dl.maptools.org/dl/libtiff/ \
31                freebsd
32
33checksums           md5     2006c1bdd12644dbf02956955175afd6 \
34                    sha1    a4e32d55afbbcabd0391a9c89995e8e8a19961de \
35                    rmd160  3e0a74b6294297c16fb983ad68056a1dfbbdb1de
36
37depends_lib     port:jpeg port:zlib
38
39test.run        yes
40test.target     check
41
42configure.args  --disable-jbig \
43                --mandir=${prefix}/share/man \
44                --with-docdir=${prefix}/share/doc/${name}-${version} \
45                --with-jpeg-include-dir=${prefix}/include \
46                --with-jpeg-lib-dir=${prefix}/lib \
47                --with-zlib-include-dir=${prefix}/include \
48                --with-zlib-lib-dir=${prefix}/lib
49
50post-configure {
51    if {[variant_isset universal]} {
52        system "cd ${worksrcpath}/libtiff \
53                && ed - tif_config.h < ${filespath}/libtiff__tif_config.h.ed \
54                && ed - tiffconf.h < ${filespath}/libtiff__tiffconf.h.ed \
55                && touch stamp-h1 && touch stamp-h2"
56    }
57}
58
59use_parallel_build  yes
60
61post-destroot {
62        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
63        file copy ${worksrcpath}/html/images \
64                ${destroot}${prefix}/share/doc/${name}
65        eval xinstall -m 644 [glob ${worksrcpath}/html/*.html] \
66                ${destroot}${prefix}/share/doc/${name}
67}
68
69platform macosx {
70    # Tiger does not have 64-bit OpenGL.
71    if {${os.major} > 8 || (![variant_isset universal] && ![string match *64* $build_arch])
72        || ([variant_isset universal] && ![string match *64* $universal_archs])} {
73        configure.args-append   --with-apple-opengl-framework
74    }
75}
76
77minimum_xcodeversions {9 3.1}
78
79variant jbig description {Enable JBIG support} {
80    depends_lib-append      port:jbigkit
81    configure.args-delete   --disable-jbig
82    configure.args-append   --enable-jbig
83}
84
85livecheck.type  regex
86livecheck.url   http://www.remotesensing.org/libtiff/
87livecheck.regex {v(\d+(?:\.\d+)*)</a>}
Note: See TracBrowser for help on using the repository browser.