source: trunk/dports/graphics/tiff/Portfile

Last change on this file was 145689, checked in by cal@…, 20 months ago

tiff: multiple vulnerabilities, openmaintainer

Fix CVE-2015-8665, CVE-2015-8683, CVE-2015-8781, CVE-2015-8782, CVE-2015-8783,
CVE-2015-8784.

For CVE-2015-8665 and CVE-2015-8683, see

For CVE-2015-8781, CVE-2015-8782 and CVE-2015-8783, see

For CVE-2015-8784, see

For all these CVEs, see

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 145689 2016-02-12 23:42:11Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           xcodeversion 1.0
6PortGroup           muniversal 1.0
7
8name                tiff
9version             4.0.6
10revision            1
11categories          graphics
12platforms           darwin
13maintainers         ryandesign openmaintainer
14license             BSD
15
16description         Library and tools for dealing with Tag Image File Format
17long_description    \
18    This software provides support for the Tag Image File       \
19    Format (TIFF), a widely used format for storing image       \
20    data.  Included in this software distribution is a          \
21    library, libtiff, for reading and writing TIFF, a small     \
22    collection of tools for doing simple manipulations of       \
23    TIFF images on UNIX systems, documentation on the library   \
24    and tools.  A small assortment of TIFF-related software     \
25    for UNIX that has been contributed by others is also        \
26    included.  The library is capable of dealing with images    \
27    that are written to follow the 5.0 or 6.0 TIFF spec.        \
28    There is also considerable support for some of the more     \
29    esoteric portions of the 6.0 TIFF spec.
30
31homepage            http://www.remotesensing.org/libtiff
32master_sites        http://download.osgeo.org/libtiff/ \
33                    ftp://ftp.remotesensing.org/pub/libtiff/ \
34                    http://dl.maptools.org/dl/libtiff/ \
35                    freebsd
36
37checksums           rmd160  3d5d6951a36baf32ab0e0958d3b4a9413b7f2e07 \
38                    sha256  4d57a50907b510e3049a4bba0d7888930fdfc16ce49f1bf693e5b6247370d68c
39
40depends_lib         port:jpeg \
41                    port:xz \
42                    port:zlib
43
44test.run            yes
45test.target         check
46
47use_autoreconf      yes
48autoreconf.args     -fvi
49
50# first patch fixes two problems
51#     have typedefs be consistent with OSX headers (see http://trac.macports.org/ticket/41280)
52#     prevent configure script from assuming that if we don't want X11, then we don't want OpenGL either
53# prevent configure script from finding X11 OpenGL (e.g. mesa & freeglut)
54patchfiles          patch-configure.ac.diff \
55                    patch-acinclude.m4.diff \
56                    f94a29a822f5528d2334592760fbb7938f15eb55.patch \
57                    aaab5c3c9d2a2c6984f23ccbc79702610439bc65.patch \
58                    b18012dae552f85dcc5c57d3bf4e997a15b1cc1c.patch
59
60
61configure.args      --disable-jbig \
62                    --with-x=no \
63                    --with-docdir=${prefix}/share/doc/${name} \
64                    --with-jpeg-include-dir=${prefix}/include \
65                    --with-jpeg-lib-dir=${prefix}/lib \
66                    --with-lzma-include-dir=${prefix}/include \
67                    --with-lzma-lib-dir=${prefix}/lib \
68                    --with-zlib-include-dir=${prefix}/include \
69                    --with-zlib-lib-dir=${prefix}/lib
70
71use_parallel_build  yes
72
73minimum_xcodeversions {9 3.1}
74
75# tools/tiffgt.c incorrectly uses HAVE_APPLE_OPENGL_FRAMEWORK rather than HAVE_OPENGL_GL_H
76# see http://bugzilla.maptools.org/show_bug.cgi?id=2363
77configure.cppflags-append \
78                    -DHAVE_APPLE_OPENGL_FRAMEWORK
79
80set merger_dont_diff ${prefix}/include/tiffconf.h
81
82variant jbig description {Enable JBIG support} {
83    depends_lib-append      port:jbigkit
84    configure.args-replace  --disable-jbig --enable-jbig
85}
86
87livecheck.type  regex
88livecheck.url   http://download.osgeo.org/libtiff/
89livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.