~ubuntu-branches/ubuntu/trusty/freeimage/trusty-proposed

« back to all changes in this revision

Viewing changes to Source/LibTIFF/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2010-10-29 14:46:46 UTC
  • Revision ID: james.westby@ubuntu.com-20101029144646-7bq2g444s3ip34p6
Tags: 3.10.0-3
* Don't use embedded copies of various libraries, add build-deps on their
  packaged versions (closes: #595560):
  - libjpeg 6b
  - libmng 1.0.9
  - libopenjpeg 1.2.0
  - libpng 1.2.23
    + CVE-2010-2249, CVE-2010-1205, CVE-2010-0205, CVE-2009-2042,
      CVE-2008-6218, CVE-2008-5907, CVE-2009-0040, CVE-2008-3964,
      CVE-2008-1382
  - openexr 1.6.1
    + CVE-2009-1720, CVE-2009-1721
  - zlib 1.2.3
* The embedded libtiff copy is still used, because freeimage uses its
  internals and I couldn't figure out how to unentangle this.  Update the
  tiff copy to 3.9.4-5, though:
  CVE-2010-3087, CVE-2010-2483, CVE-2010-2482, CVE-2010-2481, CVE-2010-2443,
  CVE-2010-2233, CVE-2010-2067, CVE-2010-2065, CVE-2010-1411, CVE-2009-2347,
  CVE-2008-2327.
* Add tiff copyright and license to debian/copyright (closes: #601002)
* Link with -lm (closes: #558857).
* Try to avoid arch-specific values in our copy of tif_config.h and
  tiffconf.h (closes: #601762)
* Set LFS CFLAGS in Makefile.gnu.
* Orphan package (closes: #595559).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Tag Image File Format (TIFF) Software
2
 
#
3
 
# Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
4
 
#
5
 
# Permission to use, copy, modify, distribute, and sell this software and 
6
 
# its documentation for any purpose is hereby granted without fee, provided
7
 
# that (i) the above copyright notices and this permission notice appear in
8
 
# all copies of the software and related documentation, and (ii) the names of
9
 
# Sam Leffler and Silicon Graphics may not be used in any advertising or
10
 
# publicity relating to the software without the specific, prior written
11
 
# permission of Sam Leffler and Silicon Graphics.
12
 
13
 
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
14
 
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
15
 
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
16
 
17
 
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18
 
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19
 
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20
 
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
21
 
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
22
 
# OF THIS SOFTWARE.
23
 
 
24
 
# Process this file with automake to produce Makefile.in.
25
 
 
26
 
LIBPORT = $(top_builddir)/port/libport.la
27
 
LIBTIFF = $(top_builddir)/libtiff/libtiff.la
28
 
libtiffincludedir = $(includedir)
29
 
 
30
 
EXTRA_DIST = Makefile.vc \
31
 
             SConstruct \
32
 
             tif_config.h-vms \
33
 
             tif_config.vc.h \
34
 
             tif_config.wince.h \
35
 
             tiffconf.vc.h \
36
 
             tiffconf.wince.h \
37
 
             libtiff.def \
38
 
             $(EXTRA_SRCS)
39
 
 
40
 
libtiffinclude_HEADERS = \
41
 
        tiff.h \
42
 
        tiffio.h \
43
 
        tiffvers.h
44
 
 
45
 
if HAVE_CXX
46
 
libtiffinclude_HEADERS += tiffio.hxx
47
 
endif
48
 
 
49
 
noinst_HEADERS = \
50
 
        t4.h \
51
 
        tif_dir.h \
52
 
        tif_predict.h \
53
 
        tiffiop.h \
54
 
        uvcode.h
55
 
 
56
 
nodist_libtiffinclude_HEADERS = \
57
 
        tiffconf.h
58
 
 
59
 
libtiff_la_SOURCES = \
60
 
        tif_aux.c \
61
 
        tif_close.c \
62
 
        tif_codec.c \
63
 
        tif_color.c \
64
 
        tif_compress.c \
65
 
        tif_dir.c \
66
 
        tif_dirinfo.c \
67
 
        tif_dirread.c \
68
 
        tif_dirwrite.c \
69
 
        tif_dumpmode.c \
70
 
        tif_error.c \
71
 
        tif_extension.c \
72
 
        tif_fax3.c \
73
 
        tif_fax3sm.c \
74
 
        tif_flush.c \
75
 
        tif_getimage.c \
76
 
        tif_jbig.c \
77
 
        tif_jpeg.c \
78
 
        tif_luv.c \
79
 
        tif_lzw.c \
80
 
        tif_next.c \
81
 
        tif_ojpeg.c \
82
 
        tif_open.c \
83
 
        tif_packbits.c \
84
 
        tif_pixarlog.c \
85
 
        tif_predict.c \
86
 
        tif_print.c \
87
 
        tif_read.c \
88
 
        tif_strip.c \
89
 
        tif_swab.c \
90
 
        tif_thunder.c \
91
 
        tif_tile.c \
92
 
        tif_unix.c \
93
 
        tif_version.c \
94
 
        tif_warning.c \
95
 
        tif_write.c \
96
 
        tif_zip.c
97
 
 
98
 
libtiffxx_la_SOURCES = \
99
 
        tif_stream.cxx
100
 
 
101
 
EXTRA_SRCS = \
102
 
        tif_acorn.c \
103
 
        tif_apple.c \
104
 
        tif_atari.c \
105
 
        tif_msdos.c \
106
 
        tif_next.c \
107
 
        tif_win3.c \
108
 
        tif_win32.c
109
 
 
110
 
lib_LTLIBRARIES = libtiff.la
111
 
if HAVE_CXX
112
 
lib_LTLIBRARIES += libtiffxx.la
113
 
endif
114
 
 
115
 
libtiff_la_LDFLAGS = \
116
 
        -no-undefined \
117
 
        -version-number $(LIBTIFF_VERSION_INFO)
118
 
if HAVE_RPATH
119
 
libtiff_la_LDFLAGS += $(LIBDIR)
120
 
endif
121
 
libtiff_la_LIBADD = $(LIBPORT)
122
 
 
123
 
libtiffxx_la_LDFLAGS = \
124
 
        -no-undefined \
125
 
        -version-number $(LIBTIFF_VERSION_INFO)
126
 
if HAVE_RPATH
127
 
libtiffxx_la_LDFLAGS += $(LIBDIR)
128
 
endif
129
 
libtiffxx_la_LIBADD = $(LIBTIFF) $(LIBPORT)
130
 
libtiffxx_la_DEPENDENCIES = libtiff.la
131
 
 
132
 
#
133
 
# The finite state machine tables used by the G3/G4 decoders
134
 
# are generated by the mkg3states program.  On systems without
135
 
# make these rules have to be manually carried out.
136
 
#
137
 
noinst_PROGRAMS = mkg3states
138
 
mkg3states_SOURCES = mkg3states.c tif_fax3.h
139
 
mkg3states_LDADD = $(LIBPORT)
140
 
 
141
 
faxtable: mkg3states
142
 
        (rm -f tif_fax3sm.c && ./mkg3states -b -c const tif_fax3sm.c)
143
 
 
 
1
# Tag Image File Format (TIFF) Software
 
2
#
 
3
# Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
 
4
#
 
5
# Permission to use, copy, modify, distribute, and sell this software and 
 
6
# its documentation for any purpose is hereby granted without fee, provided
 
7
# that (i) the above copyright notices and this permission notice appear in
 
8
# all copies of the software and related documentation, and (ii) the names of
 
9
# Sam Leffler and Silicon Graphics may not be used in any advertising or
 
10
# publicity relating to the software without the specific, prior written
 
11
# permission of Sam Leffler and Silicon Graphics.
 
12
 
13
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
 
14
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
 
15
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
 
16
 
17
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
 
18
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 
19
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
20
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
 
21
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
 
22
# OF THIS SOFTWARE.
 
23
 
 
24
# Process this file with automake to produce Makefile.in.
 
25
 
 
26
LIBPORT = $(top_builddir)/port/libport.la
 
27
LIBTIFF = $(top_builddir)/libtiff/libtiff.la
 
28
libtiffincludedir = $(includedir)
 
29
 
 
30
EXTRA_DIST = Makefile.vc \
 
31
             SConstruct \
 
32
             tif_config.h-vms \
 
33
             tif_config.vc.h \
 
34
             tif_config.wince.h \
 
35
             tiffconf.vc.h \
 
36
             tiffconf.wince.h \
 
37
             libtiff.def \
 
38
             $(EXTRA_SRCS)
 
39
 
 
40
libtiffinclude_HEADERS = \
 
41
        tiff.h \
 
42
        tiffio.h \
 
43
        tiffvers.h
 
44
 
 
45
if HAVE_CXX
 
46
libtiffinclude_HEADERS += tiffio.hxx
 
47
endif
 
48
 
 
49
noinst_HEADERS = \
 
50
        t4.h \
 
51
        tif_dir.h \
 
52
        tif_predict.h \
 
53
        tiffiop.h \
 
54
        uvcode.h
 
55
 
 
56
nodist_libtiffinclude_HEADERS = \
 
57
        tiffconf.h
 
58
 
 
59
libtiff_la_SOURCES = \
 
60
        tif_aux.c \
 
61
        tif_close.c \
 
62
        tif_codec.c \
 
63
        tif_color.c \
 
64
        tif_compress.c \
 
65
        tif_dir.c \
 
66
        tif_dirinfo.c \
 
67
        tif_dirread.c \
 
68
        tif_dirwrite.c \
 
69
        tif_dumpmode.c \
 
70
        tif_error.c \
 
71
        tif_extension.c \
 
72
        tif_fax3.c \
 
73
        tif_fax3sm.c \
 
74
        tif_flush.c \
 
75
        tif_getimage.c \
 
76
        tif_jbig.c \
 
77
        tif_jpeg.c \
 
78
        tif_luv.c \
 
79
        tif_lzw.c \
 
80
        tif_next.c \
 
81
        tif_ojpeg.c \
 
82
        tif_open.c \
 
83
        tif_packbits.c \
 
84
        tif_pixarlog.c \
 
85
        tif_predict.c \
 
86
        tif_print.c \
 
87
        tif_read.c \
 
88
        tif_strip.c \
 
89
        tif_swab.c \
 
90
        tif_thunder.c \
 
91
        tif_tile.c \
 
92
        tif_unix.c \
 
93
        tif_version.c \
 
94
        tif_warning.c \
 
95
        tif_write.c \
 
96
        tif_zip.c
 
97
 
 
98
libtiffxx_la_SOURCES = \
 
99
        tif_stream.cxx
 
100
 
 
101
EXTRA_SRCS = \
 
102
        tif_acorn.c \
 
103
        tif_apple.c \
 
104
        tif_atari.c \
 
105
        tif_msdos.c \
 
106
        tif_next.c \
 
107
        tif_win3.c \
 
108
        tif_win32.c
 
109
 
 
110
lib_LTLIBRARIES = libtiff.la
 
111
if HAVE_CXX
 
112
lib_LTLIBRARIES += libtiffxx.la
 
113
endif
 
114
 
 
115
libtiff_la_LDFLAGS = \
 
116
        -no-undefined \
 
117
        -version-number 4:3:3
 
118
if HAVE_RPATH
 
119
libtiff_la_LDFLAGS += $(LIBDIR)
 
120
endif
 
121
libtiff_la_LIBADD = $(LIBPORT)
 
122
 
 
123
libtiffxx_la_LDFLAGS = \
 
124
        -no-undefined \
 
125
        -version-number 0:0:7
 
126
if HAVE_RPATH
 
127
libtiffxx_la_LDFLAGS += $(LIBDIR)
 
128
endif
 
129
libtiffxx_la_LIBADD = $(LIBTIFF) $(LIBPORT)
 
130
libtiffxx_la_DEPENDENCIES = libtiff.la
 
131
 
 
132
#
 
133
# The finite state machine tables used by the G3/G4 decoders
 
134
# are generated by the mkg3states program.  On systems without
 
135
# make these rules have to be manually carried out.
 
136
#
 
137
noinst_PROGRAMS = mkg3states
 
138
mkg3states_SOURCES = mkg3states.c tif_fax3.h
 
139
mkg3states_LDADD = $(LIBPORT)
 
140
 
 
141
faxtable: mkg3states
 
142
        (rm -f tif_fax3sm.c && ./mkg3states -b -c const tif_fax3sm.c)
 
143