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 | 39ea562 | 2010-10-12 01:55:31 +0000 | [diff] [blame] | 123 | DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \ |
| 124 | structure.txt coderules.txt filelist.txt jconfig.txt change.log \ |
DRC | 9f5320f | 2011-05-24 17:14:43 +0000 | [diff] [blame] | 125 | README-turbo.txt rdrle.c wrrle.c BUILDING.txt ChangeLog.txt |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 126 | |
DRC | 968c8bb | 2010-02-22 22:50:13 +0000 | [diff] [blame] | 127 | TESTFILES= testorig.jpg testorig.ppm testimg.bmp testimgflt.jpg \ |
DRC | 50503c7 | 2010-09-09 21:00:31 +0000 | [diff] [blame] | 128 | testimgfst.jpg testimgint.jpg testimgp.jpg testimgflt.ppm testimgfst.ppm \ |
DRC | f0b7fef | 2010-11-23 17:13:02 +0000 | [diff] [blame] | 129 | testimgint.ppm testimgflt-nosimd.jpg testimgcrop.jpg testimgari.jpg \ |
DRC | 750e078 | 2011-05-10 21:05:49 +0000 | [diff] [blame] | 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 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 134 | |
DRC | dffd53d | 2011-04-01 00:37:20 +0000 | [diff] [blame] | 135 | EXTRA_DIST = win release $(DOCS) $(TESTFILES) CMakeLists.txt \ |
DRC | a006fba | 2011-10-27 23:25:28 +0000 | [diff] [blame] | 136 | sharedlib/CMakeLists.txt cmakescripts libjpeg.map.in doc doxygen.config \ |
| 137 | jccolext.c jdcolext.c jdmrgext.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 138 | |
| 139 | dist-hook: |
| 140 | rm -rf `find $(distdir) -name .svn` |
| 141 | |
| 142 | |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 143 | test: testclean all |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 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 |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 150 | ./tjunittest |
| 151 | ./tjunittest -alloc |
| 152 | ./tjunittest -yuv |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 153 | ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testimages/testorig.ppm |
| 154 | cmp $(srcdir)/testimages/testimgint.jpg testoutint.jpg |
| 155 | ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testimages/testorig.ppm |
| 156 | cmp $(srcdir)/testimages/testimgfst.jpg testoutfst.jpg |
| 157 | ./cjpeg -dct fast -quality 100 -opt -outfile testoutfst100.jpg $(srcdir)/testimages/testorig.ppm |
| 158 | cmp $(srcdir)/testimages/testimgfst100.jpg testoutfst100.jpg |
| 159 | ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 160 | if WITH_SSE_FLOAT_DCT |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 161 | cmp $(srcdir)/testimages/testimgflt.jpg testoutflt.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 162 | else |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 163 | cmp $(srcdir)/testimages/testimgflt-nosimd.jpg testoutflt.jpg |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 164 | endif |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 165 | ./cjpeg -dct int -grayscale -outfile testoutgray.jpg $(srcdir)/testimages/testorig.ppm |
| 166 | cmp $(srcdir)/testimages/testimggray.jpg testoutgray.jpg |
| 167 | ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testimages/testorig.jpg |
| 168 | cmp $(srcdir)/testimages/testimgint.ppm testoutint.ppm |
| 169 | ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testimages/testorig.jpg |
| 170 | cmp $(srcdir)/testimages/testimgfst.ppm testoutfst.ppm |
| 171 | ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 172 | if WITH_SSE_FLOAT_DCT |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 173 | cmp $(srcdir)/testimages/testimgflt.ppm testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 174 | else |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 175 | cmp $(srcdir)/testimages/testorig.ppm testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 176 | endif |
DRC | 3a5e362 | 2012-01-31 10:43:56 +0000 | [diff] [blame^] | 177 | for scale in 2_1 15_8 7_4 13_8 3_2 11_8 5_4 9_8 7_8 3_4 5_8 1_2 3_8 1_4 1_8; do \ |
| 178 | scalearg=`echo $$scale | sed s@_@/@g`; \ |
| 179 | ./djpeg -dct int -nosmooth -scale $$scalearg -ppm -outfile testoutint$$scale.ppm $(srcdir)/testimages/testorig.jpg; \ |
| 180 | cmp $(srcdir)/testimages/testimgint$$scale.ppm testoutint$$scale.ppm; \ |
| 181 | done |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 182 | ./djpeg -dct fast -scale 1/2 -ppm -outfile testoutfst1_2.ppm $(srcdir)/testimages/testorig.jpg |
| 183 | cmp $(srcdir)/testimages/testimgfst1_2.ppm testoutfst1_2.ppm |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 184 | ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testimages/testorig.jpg |
| 185 | cmp $(srcdir)/testimages/testimg.bmp testout.bmp |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 186 | if WITH_ARITH_ENC |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 187 | ./cjpeg -dct int -arithmetic -outfile testoutari.jpg $(srcdir)/testimages/testorig.ppm |
| 188 | cmp $(srcdir)/testimages/testimgari.jpg testoutari.jpg |
| 189 | ./jpegtran -arithmetic -outfile testouta.jpg $(srcdir)/testimages/testimgint.jpg |
| 190 | cmp $(srcdir)/testimages/testimgari.jpg testouta.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 191 | endif |
| 192 | if WITH_ARITH_DEC |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 193 | ./djpeg -dct int -fast -ppm -outfile testoutari.ppm $(srcdir)/testimages/testimgari.jpg |
| 194 | cmp $(srcdir)/testimages/testimgari.ppm testoutari.ppm |
| 195 | ./jpegtran -outfile testouta.jpg $(srcdir)/testimages/testimgari.jpg |
| 196 | cmp $(srcdir)/testimages/testimgint.jpg testouta.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 197 | endif |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 198 | ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testimages/testorig.ppm |
| 199 | cmp $(srcdir)/testimages/testimgp.jpg testoutp.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 200 | ./jpegtran -outfile testoutt.jpg testoutp.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 201 | cmp $(srcdir)/testimages/testimgint.jpg testoutt.jpg |
| 202 | ./jpegtran -crop 120x90+20+50 -transpose -perfect -outfile testoutcrop.jpg $(srcdir)/testimages/testorig.jpg |
| 203 | cmp $(srcdir)/testimages/testimgcrop.jpg testoutcrop.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 204 | |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 205 | |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 206 | testclean: |
DRC | 7b99172 | 2010-06-10 19:44:56 +0000 | [diff] [blame] | 207 | rm -f testout* |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 208 | rm -f *_GRAY_*.bmp |
| 209 | rm -f *_GRAY_*.png |
| 210 | rm -f *_GRAY_*.ppm |
| 211 | rm -f *_GRAY_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 212 | rm -f *_GRAY.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 213 | rm -f *_420_*.bmp |
| 214 | rm -f *_420_*.png |
| 215 | rm -f *_420_*.ppm |
| 216 | rm -f *_420_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 217 | rm -f *_420.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 218 | rm -f *_422_*.bmp |
| 219 | rm -f *_422_*.png |
| 220 | rm -f *_422_*.ppm |
| 221 | rm -f *_422_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 222 | rm -f *_422.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 223 | rm -f *_444_*.bmp |
| 224 | rm -f *_444_*.png |
| 225 | rm -f *_444_*.ppm |
| 226 | rm -f *_444_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 227 | rm -f *_444.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 228 | rm -f *_440_*.bmp |
| 229 | rm -f *_440_*.png |
| 230 | rm -f *_440_*.ppm |
| 231 | rm -f *_440_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 232 | rm -f *_440.yuv |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 233 | |
DRC | d1c281a | 2010-11-17 22:44:40 +0000 | [diff] [blame] | 234 | if X86_64 |
| 235 | |
| 236 | install-exec-hook: |
| 237 | __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \ |
| 238 | if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \ |
| 239 | cd $(DESTDIR)/${prefix}; \ |
| 240 | if [ -d lib -a ! -d lib64 -a ! -h lib64 ]; then \ |
| 241 | $(LN_S) lib lib64; \ |
| 242 | fi \ |
| 243 | fi |
| 244 | |
| 245 | else |
| 246 | |
| 247 | install-exec-hook: |
| 248 | __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \ |
| 249 | if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \ |
| 250 | cd $(DESTDIR)/${prefix}; \ |
| 251 | if [ -d lib -a ! -d lib32 -a ! -h lib32 ]; then \ |
| 252 | $(LN_S) lib lib32; \ |
| 253 | fi \ |
| 254 | fi |
| 255 | |
| 256 | endif |
| 257 | |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 258 | rpm: all |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 259 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 260 | mkdir -p $$TMPDIR/RPMS; \ |
| 261 | ln -fs `pwd` $$TMPDIR/BUILD; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 262 | rm -f ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 263 | rpmbuild -bb --define "_blddir $$TMPDIR/buildroot" \ |
| 264 | --define "_topdir $$TMPDIR" --define "_srcdir ${srcdir}" \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 265 | --target ${RPMARCH} pkgscripts/libjpeg-turbo.spec; \ |
| 266 | cp $$TMPDIR/RPMS/${RPMARCH}/${PACKAGE_NAME}-${VERSION}-${BUILD}.${RPMARCH}.rpm \ |
| 267 | ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 268 | rm -rf $$TMPDIR |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 269 | |
DRC | f26914b | 2010-02-15 11:36:46 +0000 | [diff] [blame] | 270 | srpm: dist-gzip |
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 | mkdir -p $$TMPDIR/SRPMS; \ |
| 274 | mkdir -p $$TMPDIR/BUILD; \ |
| 275 | mkdir -p $$TMPDIR/SOURCES; \ |
| 276 | mkdir -p $$TMPDIR/SPECS; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 277 | rm -f ${PACKAGE_NAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 278 | cp ${PACKAGE_NAME}-${VERSION}.tar.gz $$TMPDIR/SOURCES; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 279 | cat pkgscripts/libjpeg-turbo.spec | sed s/%{_blddir}/%{_tmppath}/g \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 280 | | sed s@%{_srcdir}/@@g | sed s/#--\>//g \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 281 | > $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 282 | rpmbuild -bs --define "_topdir $$TMPDIR" $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 283 | cp $$TMPDIR/SRPMS/${PACKAGE_NAME}-${VERSION}-${BUILD}.src.rpm \ |
| 284 | ${PACKAGE_NAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 285 | rm -rf $$TMPDIR |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 286 | |
| 287 | deb: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 288 | sh pkgscripts/makedpkg |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 289 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 290 | if X86_64 |
| 291 | |
| 292 | udmg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 293 | sh pkgscripts/makemacpkg universal ${BUILDDIR32} |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 294 | |
| 295 | endif |
| 296 | |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 297 | dmg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 298 | sh pkgscripts/makemacpkg |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 299 | |
| 300 | if X86_64 |
| 301 | |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 302 | csunpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 303 | sh pkgscripts/makesunpkg combined ${BUILDDIR32} |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 304 | |
DRC | 3dc1bc2 | 2010-05-10 22:18:10 +0000 | [diff] [blame] | 305 | endif |
DRC | ae79fdb | 2010-06-09 20:16:04 +0000 | [diff] [blame] | 306 | |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 307 | sunpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 308 | sh pkgscripts/makesunpkg |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 309 | |
DRC | ae79fdb | 2010-06-09 20:16:04 +0000 | [diff] [blame] | 310 | cygwinpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 311 | sh pkgscripts/makecygwinpkg |