~ubuntu-branches/ubuntu/raring/libjpeg-turbo/raring-security

« back to all changes in this revision

Viewing changes to .pc/tjunittest.patch/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-12-20 23:12:52 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20111220231252-74naxp27nuzxpn8o
Tags: 1.1.90+svn733-0ubuntu2
* Sync with upstream to svn733.

* Rename libjpeg-test to libjpeg-turbo-test.
* Rename libjpeg-turbo-dbg to libjpeg-turbo8-dbg.
* Rename libjpeg8-dev to libjpeg-turbo8-dev.
* Move the docs into the -dev package, install the upstream changelog
  in the -dev only.
* Split out libturbojpeg.so into it's own package, don't let
  libjpeg-turbo8-dev depend on it.
* Fix libjpeg-turbo8-dbg package description.
* Install jconfig.h into multiarch include path.
* Remove HAVE_STD{LIB,DEF}_H from jconfig.h since they are not used and
  conflict with autoconf.
* libjpeg-turbo8:
  - Add a symbols file, with a different version for symbols only found
    in the libjpeg-turbo implementation.
  - Remove the shlibs file.
  - Breaks/Replaces libjpeg8 (<< 8c-2ubuntu5).
* Copy the exifautotran and jpegexiforient tools from the libjpeg8
  sources, install into libjpeg-turbo-progs.
* Don't install tjbench in libjpeg-turbo-progs to avoid dependency
  on libturbojpeg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
lib_LTLIBRARIES = libjpeg.la libturbojpeg.la
 
2
libjpeg_la_LDFLAGS = -version-info ${SO_MAJOR_VERSION}:${SO_MINOR_VERSION} -no-undefined
 
3
libturbojpeg_la_LDFLAGS = -avoid-version -no-undefined
 
4
include_HEADERS = jerror.h jmorecfg.h jpeglib.h turbojpeg.h
 
5
nodist_include_HEADERS = jconfig.h
 
6
 
 
7
HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
 
8
        jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h jpegcomp.h
 
9
 
 
10
libjpeg_la_SOURCES = $(HDRS) jlibinit.c jcapimin.c jcapistd.c jccoefct.c jccolor.c \
 
11
        jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
 
12
        jcomapi.c jcparam.c jcphuff.c jcprepct.c jcsample.c jctrans.c \
 
13
        jdapimin.c jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
 
14
        jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
 
15
        jdmerge.c jdphuff.c jdpostct.c jdsample.c jdtrans.c jerror.c \
 
16
        jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c \
 
17
        jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c
 
18
 
 
19
if WITH_ARITH
 
20
 
 
21
libjpeg_la_SOURCES += jaricom.c
 
22
 
 
23
endif
 
24
 
 
25
if WITH_ARITH_ENC
 
26
 
 
27
libjpeg_la_SOURCES += jcarith.c
 
28
 
 
29
endif
 
30
 
 
31
if WITH_ARITH_DEC
 
32
 
 
33
libjpeg_la_SOURCES += jdarith.c
 
34
 
 
35
endif
 
36
 
 
37
libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpeg.c turbojpeg.h \
 
38
        transupp.c transupp.h jdatadst-tj.c jdatasrc-tj.c
 
39
 
 
40
SUBDIRS = java
 
41
 
 
42
if WITH_JAVA
 
43
 
 
44
libturbojpeg_la_SOURCES += turbojpeg-jni.c
 
45
libturbojpeg_la_CFLAGS = ${JNI_CFLAGS}
 
46
TJMAPFILE = turbojpeg-mapfile.jni
 
47
 
 
48
else
 
49
 
 
50
TJMAPFILE = turbojpeg-mapfile
 
51
 
 
52
endif
 
53
 
 
54
libturbojpeg_la_SOURCES += $(TJMAPFILE)
 
55
 
 
56
if VERSION_SCRIPT
 
57
 
 
58
libturbojpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)$(srcdir)/$(TJMAPFILE)
 
59
libjpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)libjpeg.map
 
60
 
 
61
endif
 
62
 
 
63
if WITH_SIMD
 
64
 
 
65
SUBDIRS += simd
 
66
libjpeg_la_LIBADD = simd/libsimd.la
 
67
libturbojpeg_la_LIBADD = simd/libsimd.la
 
68
 
 
69
else
 
70
 
 
71
libjpeg_la_SOURCES += jsimd_none.c
 
72
 
 
73
endif
 
74
 
 
75
bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom tjbench
 
76
noinst_PROGRAMS = tjunittest jcstest
 
77
 
 
78
tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \
 
79
        wrbmp.c wrppm.c
 
80
 
 
81
tjbench_LDADD = libturbojpeg.la libjpeg.la -lm
 
82
 
 
83
tjbench_CFLAGS = -DBMP_SUPPORTED -DPPM_SUPPORTED
 
84
 
 
85
tjunittest_SOURCES = tjunittest.c tjutil.h tjutil.c
 
86
 
 
87
tjunittest_LDADD = libturbojpeg.la
 
88
 
 
89
cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \
 
90
        rdppm.c rdswitch.c rdtarga.c 
 
91
 
 
92
cjpeg_LDADD = libjpeg.la
 
93
 
 
94
cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
 
95
        -DTARGA_SUPPORTED
 
96
 
 
97
djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \
 
98
        wrbmp.c wrgif.c wrppm.c wrtarga.c
 
99
 
 
100
djpeg_LDADD = libjpeg.la
 
101
 
 
102
djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
 
103
        -DTARGA_SUPPORTED
 
104
 
 
105
jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c transupp.h
 
106
 
 
107
jpegtran_LDADD = libjpeg.la
 
108
 
 
109
rdjpgcom_SOURCES = rdjpgcom.c
 
110
 
 
111
rdjpgcom_LDADD = libjpeg.la
 
112
 
 
113
wrjpgcom_SOURCES = wrjpgcom.c
 
114
 
 
115
wrjpgcom_LDADD = libjpeg.la
 
116
 
 
117
jcstest_SOURCES = jcstest.c
 
118
 
 
119
jcstest_LDADD = libjpeg.la
 
120
 
 
121
dist_man1_MANS = cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
 
122
 
 
123
DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \
 
124
        structure.txt coderules.txt filelist.txt jconfig.txt change.log \
 
125
        README-turbo.txt rdrle.c wrrle.c BUILDING.txt ChangeLog.txt
 
126
 
 
127
TESTFILES= testorig.jpg testorig.ppm testimg.bmp testimgflt.jpg \
 
128
        testimgfst.jpg testimgint.jpg testimgp.jpg testimgflt.ppm testimgfst.ppm \
 
129
        testimgint.ppm testimgflt-nosimd.jpg testimgcrop.jpg testimgari.jpg \
 
130
        testimgari.ppm testimgfst100.jpg testimggray.jpg testimgfst1_2.ppm \
 
131
        testimgfst1_4.ppm testimgfst1_8.ppm testimgint1_2.ppm testimgint1_4.ppm \
 
132
        testimgint1_8.ppm
 
133
 
 
134
 
 
135
EXTRA_DIST = win release $(DOCS) $(TESTFILES) CMakeLists.txt \
 
136
        sharedlib/CMakeLists.txt cmakescripts libjpeg.map.in doc doxygen.config \
 
137
        jccolext.c jdcolext.c jdmrgext.c
 
138
 
 
139
dist-hook:
 
140
        rm -rf `find $(distdir) -name .svn`
 
141
 
 
142
 
 
143
test: testclean all
 
144
if WITH_JAVA
 
145
        $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest
 
146
        $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -bi
 
147
        $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv
 
148
        $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi
 
149
endif
 
150
        ./tjunittest
 
151
        ./tjunittest -alloc
 
152
        ./tjunittest -yuv
 
153
        ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testorig.ppm
 
154
        cmp $(srcdir)/testimgint.jpg testoutint.jpg
 
155
        ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testorig.ppm
 
156
        cmp $(srcdir)/testimgfst.jpg testoutfst.jpg
 
157
        ./cjpeg -dct fast -quality 100 -opt -outfile testoutfst100.jpg $(srcdir)/testorig.ppm
 
158
        cmp $(srcdir)/testimgfst100.jpg testoutfst100.jpg
 
159
        ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testorig.ppm
 
160
if WITH_SSE_FLOAT_DCT
 
161
        cmp $(srcdir)/testimgflt.jpg testoutflt.jpg
 
162
else
 
163
        cmp $(srcdir)/testimgflt-nosimd.jpg testoutflt.jpg
 
164
endif
 
165
        ./cjpeg -dct int -grayscale -outfile testoutgray.jpg $(srcdir)/testorig.ppm
 
166
        cmp $(srcdir)/testimggray.jpg testoutgray.jpg
 
167
        ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testorig.jpg
 
168
        cmp $(srcdir)/testimgint.ppm testoutint.ppm
 
169
        ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testorig.jpg
 
170
        cmp $(srcdir)/testimgfst.ppm testoutfst.ppm
 
171
        ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testorig.jpg
 
172
if WITH_SSE_FLOAT_DCT
 
173
        cmp $(srcdir)/testimgflt.ppm testoutflt.ppm
 
174
else
 
175
        cmp $(srcdir)/testorig.ppm testoutflt.ppm
 
176
endif
 
177
        ./djpeg -dct int -scale 1/2 -ppm -outfile testoutint1_2.ppm $(srcdir)/testorig.jpg
 
178
        cmp $(srcdir)/testimgint1_2.ppm testoutint1_2.ppm
 
179
        ./djpeg -dct fast -scale 1/2 -ppm -outfile testoutfst1_2.ppm $(srcdir)/testorig.jpg
 
180
        cmp $(srcdir)/testimgfst1_2.ppm testoutfst1_2.ppm
 
181
        ./djpeg -dct int -scale 1/4 -ppm -outfile testoutint1_4.ppm $(srcdir)/testorig.jpg
 
182
        cmp $(srcdir)/testimgint1_4.ppm testoutint1_4.ppm
 
183
        ./djpeg -dct fast -scale 1/4 -ppm -outfile testoutfst1_4.ppm $(srcdir)/testorig.jpg
 
184
        cmp $(srcdir)/testimgfst1_4.ppm testoutfst1_4.ppm
 
185
        ./djpeg -dct int -scale 1/8 -ppm -outfile testoutint1_8.ppm $(srcdir)/testorig.jpg
 
186
        cmp $(srcdir)/testimgint1_8.ppm testoutint1_8.ppm
 
187
        ./djpeg -dct fast -scale 1/8 -ppm -outfile testoutfst1_8.ppm $(srcdir)/testorig.jpg
 
188
        cmp $(srcdir)/testimgfst1_8.ppm testoutfst1_8.ppm
 
189
        ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp  $(srcdir)/testorig.jpg
 
190
        cmp $(srcdir)/testimg.bmp testout.bmp
 
191
if WITH_ARITH_ENC
 
192
        ./cjpeg -dct int -arithmetic -outfile testoutari.jpg $(srcdir)/testorig.ppm
 
193
        cmp $(srcdir)/testimgari.jpg testoutari.jpg
 
194
        ./jpegtran -arithmetic -outfile testouta.jpg $(srcdir)/testimgint.jpg
 
195
        cmp $(srcdir)/testimgari.jpg testouta.jpg
 
196
endif
 
197
if WITH_ARITH_DEC
 
198
        ./djpeg -dct int -fast -ppm -outfile testoutari.ppm $(srcdir)/testimgari.jpg
 
199
        cmp $(srcdir)/testimgari.ppm testoutari.ppm
 
200
        ./jpegtran -outfile testouta.jpg $(srcdir)/testimgari.jpg
 
201
        cmp $(srcdir)/testimgint.jpg testouta.jpg
 
202
endif
 
203
        ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testorig.ppm
 
204
        cmp $(srcdir)/testimgp.jpg testoutp.jpg
 
205
        ./jpegtran -outfile testoutt.jpg testoutp.jpg
 
206
        cmp $(srcdir)/testimgint.jpg testoutt.jpg
 
207
        ./jpegtran -crop 120x90+20+50 -transpose -perfect -outfile testoutcrop.jpg $(srcdir)/testorig.jpg
 
208
        cmp $(srcdir)/testimgcrop.jpg testoutcrop.jpg
 
209
 
 
210
 
 
211
testclean:
 
212
        rm -f testout*
 
213
        rm -f *_GRAY_*.bmp
 
214
        rm -f *_GRAY_*.png
 
215
        rm -f *_GRAY_*.ppm
 
216
        rm -f *_GRAY_*.jpg
 
217
        rm -f *_GRAY.yuv
 
218
        rm -f *_420_*.bmp
 
219
        rm -f *_420_*.png
 
220
        rm -f *_420_*.ppm
 
221
        rm -f *_420_*.jpg
 
222
        rm -f *_420.yuv
 
223
        rm -f *_422_*.bmp
 
224
        rm -f *_422_*.png
 
225
        rm -f *_422_*.ppm
 
226
        rm -f *_422_*.jpg
 
227
        rm -f *_422.yuv
 
228
        rm -f *_444_*.bmp
 
229
        rm -f *_444_*.png
 
230
        rm -f *_444_*.ppm
 
231
        rm -f *_444_*.jpg
 
232
        rm -f *_444.yuv
 
233
        rm -f *_440_*.bmp
 
234
        rm -f *_440_*.png
 
235
        rm -f *_440_*.ppm
 
236
        rm -f *_440_*.jpg
 
237
        rm -f *_440.yuv
 
238
 
 
239
if X86_64
 
240
 
 
241
install-exec-hook:
 
242
        __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`;  \
 
243
        if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then  \
 
244
                cd $(DESTDIR)/${prefix};  \
 
245
                if [ -d lib -a ! -d lib64 -a ! -h lib64 ]; then  \
 
246
                        $(LN_S) lib lib64;  \
 
247
                fi  \
 
248
        fi
 
249
 
 
250
else
 
251
 
 
252
install-exec-hook:
 
253
        __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`;  \
 
254
        if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then  \
 
255
                cd $(DESTDIR)/${prefix};  \
 
256
                if [ -d lib -a ! -d lib32 -a ! -h lib32 ]; then  \
 
257
                        $(LN_S) lib lib32;  \
 
258
                fi  \
 
259
        fi
 
260
 
 
261
endif
 
262
 
 
263
rpm: all
 
264
        TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \
 
265
        mkdir -p $$TMPDIR/RPMS; \
 
266
        ln -fs `pwd` $$TMPDIR/BUILD; \
 
267
        rm -f ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \
 
268
        rpmbuild -bb --define "_blddir $$TMPDIR/buildroot"  \
 
269
                --define "_topdir $$TMPDIR" --define "_srcdir ${srcdir}" \
 
270
                --target ${RPMARCH} pkgscripts/libjpeg-turbo.spec; \
 
271
        cp $$TMPDIR/RPMS/${RPMARCH}/${PACKAGE_NAME}-${VERSION}-${BUILD}.${RPMARCH}.rpm \
 
272
                ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \
 
273
        rm -rf $$TMPDIR
 
274
 
 
275
srpm: dist-gzip
 
276
        TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \
 
277
        mkdir -p $$TMPDIR/RPMS; \
 
278
        mkdir -p $$TMPDIR/SRPMS; \
 
279
        mkdir -p $$TMPDIR/BUILD; \
 
280
        mkdir -p $$TMPDIR/SOURCES; \
 
281
        mkdir -p $$TMPDIR/SPECS; \
 
282
        rm -f ${PACKAGE_NAME}-${VERSION}.src.rpm; \
 
283
        cp ${PACKAGE_NAME}-${VERSION}.tar.gz $$TMPDIR/SOURCES; \
 
284
        cat pkgscripts/libjpeg-turbo.spec | sed s/%{_blddir}/%{_tmppath}/g \
 
285
                | sed s@%{_srcdir}/@@g | sed s/#--\>//g \
 
286
                > $$TMPDIR/SPECS/libjpeg-turbo.spec; \
 
287
        rpmbuild -bs --define "_topdir $$TMPDIR" $$TMPDIR/SPECS/libjpeg-turbo.spec; \
 
288
        cp $$TMPDIR/SRPMS/${PACKAGE_NAME}-${VERSION}-${BUILD}.src.rpm \
 
289
                ${PACKAGE_NAME}-${VERSION}.src.rpm; \
 
290
        rm -rf $$TMPDIR
 
291
 
 
292
deb: all
 
293
        sh pkgscripts/makedpkg
 
294
 
 
295
if X86_64
 
296
 
 
297
udmg: all
 
298
        sh pkgscripts/makemacpkg universal ${BUILDDIR32}
 
299
 
 
300
endif
 
301
 
 
302
dmg: all
 
303
        sh pkgscripts/makemacpkg
 
304
 
 
305
if X86_64
 
306
 
 
307
csunpkg: all
 
308
        sh pkgscripts/makesunpkg combined ${BUILDDIR32}
 
309
 
 
310
endif
 
311
 
 
312
sunpkg: all
 
313
        sh pkgscripts/makesunpkg
 
314
 
 
315
cygwinpkg: all
 
316
        sh pkgscripts/makecygwinpkg