DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 1 | lib_LTLIBRARIES = libjpeg.la libturbojpeg.la |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 2 | libjpeg_la_LDFLAGS = -version-info ${SO_MAJOR_VERSION}:${SO_MINOR_VERSION} -no-undefined |
DRC | 21d6683 | 2010-02-12 04:34:41 +0000 | [diff] [blame] | 3 | libturbojpeg_la_LDFLAGS = -avoid-version -no-undefined |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 4 | include_HEADERS = jerror.h jmorecfg.h jpeglib.h turbojpeg.h |
| 5 | nodist_include_HEADERS = jconfig.h |
DRC | 0c0f304 | 2010-01-28 05:34:53 +0000 | [diff] [blame] | 6 | |
Adam Tkac | da5a1fe | 2008-10-22 11:19:25 +0000 | [diff] [blame] | 7 | HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 8 | jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h jpegcomp.h |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 9 | |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 10 | libjpeg_la_SOURCES = $(HDRS) 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 |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 36 | |
DRC | 418dbdf | 2011-05-26 10:45:06 +0000 | [diff] [blame] | 37 | libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpeg.c turbojpeg.h \ |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 38 | transupp.c transupp.h jdatadst-tj.c jdatasrc-tj.c |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 39 | |
DRC | dffd53d | 2011-04-01 00:37:20 +0000 | [diff] [blame] | 40 | SUBDIRS = java |
| 41 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 42 | if WITH_JAVA |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 43 | |
| 44 | libturbojpeg_la_SOURCES += turbojpeg-jni.c |
DRC | e08c05f | 2011-03-31 08:03:26 +0000 | [diff] [blame] | 45 | libturbojpeg_la_CFLAGS = ${JNI_CFLAGS} |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 46 | TJMAPFILE = turbojpeg-mapfile.jni |
| 47 | |
| 48 | else |
| 49 | |
| 50 | TJMAPFILE = turbojpeg-mapfile |
| 51 | |
| 52 | endif |
| 53 | |
| 54 | libturbojpeg_la_SOURCES += $(TJMAPFILE) |
DRC | 6f8c668 | 2010-02-16 05:03:51 +0000 | [diff] [blame] | 55 | |
| 56 | if VERSION_SCRIPT |
| 57 | |
DRC | 9fa9559 | 2011-02-25 00:23:44 +0000 | [diff] [blame] | 58 | libturbojpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)$(srcdir)/$(TJMAPFILE) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 59 | libjpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)libjpeg.map |
DRC | 6f8c668 | 2010-02-16 05:03:51 +0000 | [diff] [blame] | 60 | |
| 61 | endif |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 62 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 63 | if WITH_SIMD |
| 64 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 65 | SUBDIRS += simd |
Pierre Ossman | 3a65ef4 | 2009-03-16 13:34:18 +0000 | [diff] [blame] | 66 | libjpeg_la_LIBADD = simd/libsimd.la |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 67 | libturbojpeg_la_LIBADD = simd/libsimd.la |
Pierre Ossman | 2ae181c | 2009-03-09 13:21:27 +0000 | [diff] [blame] | 68 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 69 | else |
| 70 | |
| 71 | libjpeg_la_SOURCES += jsimd_none.c |
| 72 | |
| 73 | endif |
| 74 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 75 | bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom tjbench |
DRC | b76c840 | 2011-12-19 15:01:55 +0000 | [diff] [blame] | 76 | noinst_PROGRAMS = tjunittest jcstest |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 77 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 78 | tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \ |
DRC | 18821f8 | 2011-05-24 17:07:51 +0000 | [diff] [blame] | 79 | wrbmp.c wrppm.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 80 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 81 | tjbench_LDADD = libturbojpeg.la libjpeg.la -lm |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 82 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 83 | tjbench_CFLAGS = -DBMP_SUPPORTED -DPPM_SUPPORTED |
DRC | be49b8c | 2011-05-24 13:41:27 +0000 | [diff] [blame] | 84 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 85 | tjunittest_SOURCES = tjunittest.c tjutil.h tjutil.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 86 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 87 | tjunittest_LDADD = libturbojpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 88 | |
| 89 | cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \ |
| 90 | rdppm.c rdswitch.c rdtarga.c |
| 91 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 92 | cjpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 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 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 100 | djpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 101 | |
| 102 | djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 103 | -DTARGA_SUPPORTED |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 104 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 105 | jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c transupp.h |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 106 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 107 | jpegtran_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 108 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 109 | rdjpgcom_SOURCES = rdjpgcom.c |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 110 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 111 | rdjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 112 | |
| 113 | wrjpgcom_SOURCES = wrjpgcom.c |
| 114 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 115 | wrjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 116 | |
DRC | b76c840 | 2011-12-19 15:01:55 +0000 | [diff] [blame] | 117 | jcstest_SOURCES = jcstest.c |
| 118 | |
| 119 | jcstest_LDADD = libjpeg.la |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 120 | |
DRC | cbda81a | 2010-06-05 01:12:35 +0000 | [diff] [blame] | 121 | dist_man1_MANS = cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 122 | |
DRC | a1647c8 | 2012-02-10 00:39:05 +0000 | [diff] [blame] | 123 | DOCS= install.txt coderules.txt filelist.txt jconfig.txt change.log \ |
| 124 | rdrle.c wrrle.c BUILDING.txt ChangeLog.txt |
| 125 | |
| 126 | docdir = $(datadir)/doc |
DRC | 01bf9d9 | 2012-02-10 01:52:31 +0000 | [diff] [blame] | 127 | dist_doc_DATA = README README-turbo.txt libjpeg.txt structure.txt usage.txt \ |
DRC | a1647c8 | 2012-02-10 00:39:05 +0000 | [diff] [blame] | 128 | wizard.txt |
| 129 | |
| 130 | exampledir = $(datadir)/doc |
DRC | 01bf9d9 | 2012-02-10 01:52:31 +0000 | [diff] [blame] | 131 | dist_example_DATA = example.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 132 | |
DRC | 750e078 | 2011-05-10 21:05:49 +0000 | [diff] [blame] | 133 | |
DRC | 866e6ff | 2012-01-31 08:00:50 +0000 | [diff] [blame] | 134 | EXTRA_DIST = win release $(DOCS) testimages CMakeLists.txt \ |
DRC | a006fba | 2011-10-27 23:25:28 +0000 | [diff] [blame] | 135 | sharedlib/CMakeLists.txt cmakescripts libjpeg.map.in doc doxygen.config \ |
| 136 | jccolext.c jdcolext.c jdmrgext.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 137 | |
| 138 | dist-hook: |
| 139 | rm -rf `find $(distdir) -name .svn` |
| 140 | |
| 141 | |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 142 | test: testclean all |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 143 | if WITH_JAVA |
| 144 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest |
| 145 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -bi |
| 146 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv |
| 147 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi |
| 148 | endif |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 149 | ./tjunittest |
| 150 | ./tjunittest -alloc |
| 151 | ./tjunittest -yuv |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 152 | ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testimages/testorig.ppm |
| 153 | cmp $(srcdir)/testimages/testimgint.jpg testoutint.jpg |
| 154 | ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testimages/testorig.ppm |
| 155 | cmp $(srcdir)/testimages/testimgfst.jpg testoutfst.jpg |
| 156 | ./cjpeg -dct fast -quality 100 -opt -outfile testoutfst100.jpg $(srcdir)/testimages/testorig.ppm |
| 157 | cmp $(srcdir)/testimages/testimgfst100.jpg testoutfst100.jpg |
| 158 | ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 159 | if WITH_SSE_FLOAT_DCT |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 160 | cmp $(srcdir)/testimages/testimgflt.jpg testoutflt.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 161 | else |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 162 | cmp $(srcdir)/testimages/testimgflt-nosimd.jpg testoutflt.jpg |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 163 | endif |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 164 | ./cjpeg -dct int -grayscale -outfile testoutgray.jpg $(srcdir)/testimages/testorig.ppm |
| 165 | cmp $(srcdir)/testimages/testimggray.jpg testoutgray.jpg |
| 166 | ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testimages/testorig.jpg |
| 167 | cmp $(srcdir)/testimages/testimgint.ppm testoutint.ppm |
| 168 | ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testimages/testorig.jpg |
| 169 | cmp $(srcdir)/testimages/testimgfst.ppm testoutfst.ppm |
| 170 | ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 171 | if WITH_SSE_FLOAT_DCT |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 172 | cmp $(srcdir)/testimages/testimgflt.ppm testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 173 | else |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 174 | cmp $(srcdir)/testimages/testorig.ppm testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 175 | endif |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 176 | ./djpeg -dct int -scale 1/2 -ppm -outfile testoutint1_2.ppm $(srcdir)/testimages/testorig.jpg |
| 177 | cmp $(srcdir)/testimages/testimgint1_2.ppm testoutint1_2.ppm |
| 178 | ./djpeg -dct fast -scale 1/2 -ppm -outfile testoutfst1_2.ppm $(srcdir)/testimages/testorig.jpg |
| 179 | cmp $(srcdir)/testimages/testimgfst1_2.ppm testoutfst1_2.ppm |
| 180 | ./djpeg -dct int -scale 1/4 -ppm -outfile testoutint1_4.ppm $(srcdir)/testimages/testorig.jpg |
| 181 | cmp $(srcdir)/testimages/testimgint1_4.ppm testoutint1_4.ppm |
| 182 | ./djpeg -dct fast -scale 1/4 -ppm -outfile testoutfst1_4.ppm $(srcdir)/testimages/testorig.jpg |
| 183 | cmp $(srcdir)/testimages/testimgfst1_4.ppm testoutfst1_4.ppm |
| 184 | ./djpeg -dct int -scale 1/8 -ppm -outfile testoutint1_8.ppm $(srcdir)/testimages/testorig.jpg |
| 185 | cmp $(srcdir)/testimages/testimgint1_8.ppm testoutint1_8.ppm |
| 186 | ./djpeg -dct fast -scale 1/8 -ppm -outfile testoutfst1_8.ppm $(srcdir)/testimages/testorig.jpg |
| 187 | cmp $(srcdir)/testimages/testimgfst1_8.ppm testoutfst1_8.ppm |
| 188 | ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testimages/testorig.jpg |
| 189 | cmp $(srcdir)/testimages/testimg.bmp testout.bmp |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 190 | if WITH_ARITH_ENC |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 191 | ./cjpeg -dct int -arithmetic -outfile testoutari.jpg $(srcdir)/testimages/testorig.ppm |
| 192 | cmp $(srcdir)/testimages/testimgari.jpg testoutari.jpg |
| 193 | ./jpegtran -arithmetic -outfile testouta.jpg $(srcdir)/testimages/testimgint.jpg |
| 194 | cmp $(srcdir)/testimages/testimgari.jpg testouta.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 195 | endif |
| 196 | if WITH_ARITH_DEC |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 197 | ./djpeg -dct int -fast -ppm -outfile testoutari.ppm $(srcdir)/testimages/testimgari.jpg |
| 198 | cmp $(srcdir)/testimages/testimgari.ppm testoutari.ppm |
| 199 | ./jpegtran -outfile testouta.jpg $(srcdir)/testimages/testimgari.jpg |
| 200 | cmp $(srcdir)/testimages/testimgint.jpg testouta.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 201 | endif |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 202 | ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testimages/testorig.ppm |
| 203 | cmp $(srcdir)/testimages/testimgp.jpg testoutp.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 204 | ./jpegtran -outfile testoutt.jpg testoutp.jpg |
DRC | 6ebf110 | 2012-01-31 04:58:26 +0000 | [diff] [blame] | 205 | cmp $(srcdir)/testimages/testimgint.jpg testoutt.jpg |
| 206 | ./jpegtran -crop 120x90+20+50 -transpose -perfect -outfile testoutcrop.jpg $(srcdir)/testimages/testorig.jpg |
| 207 | cmp $(srcdir)/testimages/testimgcrop.jpg testoutcrop.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 208 | |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 209 | |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 210 | testclean: |
DRC | 7b99172 | 2010-06-10 19:44:56 +0000 | [diff] [blame] | 211 | rm -f testout* |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 212 | rm -f *_GRAY_*.bmp |
| 213 | rm -f *_GRAY_*.png |
| 214 | rm -f *_GRAY_*.ppm |
| 215 | rm -f *_GRAY_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 216 | rm -f *_GRAY.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 217 | rm -f *_420_*.bmp |
| 218 | rm -f *_420_*.png |
| 219 | rm -f *_420_*.ppm |
| 220 | rm -f *_420_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 221 | rm -f *_420.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 222 | rm -f *_422_*.bmp |
| 223 | rm -f *_422_*.png |
| 224 | rm -f *_422_*.ppm |
| 225 | rm -f *_422_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 226 | rm -f *_422.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 227 | rm -f *_444_*.bmp |
| 228 | rm -f *_444_*.png |
| 229 | rm -f *_444_*.ppm |
| 230 | rm -f *_444_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 231 | rm -f *_444.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 232 | rm -f *_440_*.bmp |
| 233 | rm -f *_440_*.png |
| 234 | rm -f *_440_*.ppm |
| 235 | rm -f *_440_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 236 | rm -f *_440.yuv |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 237 | |
DRC | 9cd4e4b | 2012-01-31 07:56:44 +0000 | [diff] [blame] | 238 | |
| 239 | tjtest: |
| 240 | sh ./tjbenchtest |
| 241 | if WITH_JAVA |
| 242 | sh ./tjexampletest |
| 243 | endif |
| 244 | |
| 245 | |
DRC | d1c281a | 2010-11-17 22:44:40 +0000 | [diff] [blame] | 246 | if X86_64 |
| 247 | |
| 248 | install-exec-hook: |
| 249 | __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \ |
| 250 | if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \ |
| 251 | cd $(DESTDIR)/${prefix}; \ |
| 252 | if [ -d lib -a ! -d lib64 -a ! -h lib64 ]; then \ |
| 253 | $(LN_S) lib lib64; \ |
| 254 | fi \ |
| 255 | fi |
| 256 | |
| 257 | else |
| 258 | |
| 259 | install-exec-hook: |
| 260 | __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \ |
| 261 | if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \ |
| 262 | cd $(DESTDIR)/${prefix}; \ |
| 263 | if [ -d lib -a ! -d lib32 -a ! -h lib32 ]; then \ |
| 264 | $(LN_S) lib lib32; \ |
| 265 | fi \ |
| 266 | fi |
| 267 | |
| 268 | endif |
| 269 | |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 270 | rpm: all |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 271 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 272 | mkdir -p $$TMPDIR/RPMS; \ |
| 273 | ln -fs `pwd` $$TMPDIR/BUILD; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 274 | rm -f ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 275 | rpmbuild -bb --define "_blddir $$TMPDIR/buildroot" \ |
DRC | 57bd84f | 2012-02-10 01:40:29 +0000 | [diff] [blame] | 276 | --define "_topdir $$TMPDIR" \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 277 | --target ${RPMARCH} pkgscripts/libjpeg-turbo.spec; \ |
| 278 | cp $$TMPDIR/RPMS/${RPMARCH}/${PACKAGE_NAME}-${VERSION}-${BUILD}.${RPMARCH}.rpm \ |
| 279 | ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 280 | rm -rf $$TMPDIR |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 281 | |
DRC | f26914b | 2010-02-15 11:36:46 +0000 | [diff] [blame] | 282 | srpm: dist-gzip |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 283 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 284 | mkdir -p $$TMPDIR/RPMS; \ |
| 285 | mkdir -p $$TMPDIR/SRPMS; \ |
| 286 | mkdir -p $$TMPDIR/BUILD; \ |
| 287 | mkdir -p $$TMPDIR/SOURCES; \ |
| 288 | mkdir -p $$TMPDIR/SPECS; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 289 | rm -f ${PACKAGE_NAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 290 | cp ${PACKAGE_NAME}-${VERSION}.tar.gz $$TMPDIR/SOURCES; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 291 | cat pkgscripts/libjpeg-turbo.spec | sed s/%{_blddir}/%{_tmppath}/g \ |
DRC | 57bd84f | 2012-02-10 01:40:29 +0000 | [diff] [blame] | 292 | | sed s/#--\>//g \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 293 | > $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 294 | rpmbuild -bs --define "_topdir $$TMPDIR" $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 295 | cp $$TMPDIR/SRPMS/${PACKAGE_NAME}-${VERSION}-${BUILD}.src.rpm \ |
| 296 | ${PACKAGE_NAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 297 | rm -rf $$TMPDIR |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 298 | |
| 299 | deb: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 300 | sh pkgscripts/makedpkg |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 301 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 302 | if X86_64 |
| 303 | |
| 304 | udmg: all |
DRC | 7c6ae03 | 2012-03-23 00:51:56 +0000 | [diff] [blame^] | 305 | sh pkgscripts/makemacpkg -build32 ${BUILDDIR32} |
DRC | 20b734e | 2012-02-10 01:30:37 +0000 | [diff] [blame] | 306 | |
| 307 | iosdmg: all |
DRC | 7c6ae03 | 2012-03-23 00:51:56 +0000 | [diff] [blame^] | 308 | sh pkgscripts/makemacpkg -build32 ${BUILDDIR32} -buildarmv6 ${BUILDDIRARMV6} -buildarmv7 ${BUILDDIRARMV7} |
DRC | 20b734e | 2012-02-10 01:30:37 +0000 | [diff] [blame] | 309 | |
| 310 | else |
| 311 | |
| 312 | iosdmg: all |
DRC | 7c6ae03 | 2012-03-23 00:51:56 +0000 | [diff] [blame^] | 313 | sh pkgscripts/makemacpkg -buildarmv6 ${BUILDDIRARMV6} -buildarmv7 ${BUILDDIRARMV7} |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 314 | |
| 315 | endif |
| 316 | |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 317 | dmg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 318 | sh pkgscripts/makemacpkg |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 319 | |
| 320 | if X86_64 |
| 321 | |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 322 | csunpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 323 | sh pkgscripts/makesunpkg combined ${BUILDDIR32} |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 324 | |
DRC | 3dc1bc2 | 2010-05-10 22:18:10 +0000 | [diff] [blame] | 325 | endif |
DRC | ae79fdb | 2010-06-09 20:16:04 +0000 | [diff] [blame] | 326 | |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 327 | sunpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 328 | sh pkgscripts/makesunpkg |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 329 | |
DRC | ae79fdb | 2010-06-09 20:16:04 +0000 | [diff] [blame] | 330 | cygwinpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 331 | sh pkgscripts/makecygwinpkg |