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 | 890f1e0 | 2011-02-26 22:02:37 +0000 | [diff] [blame] | 37 | libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpegl.c turbojpeg.h \ |
| 38 | transupp.c transupp.h |
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 | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 75 | TSTHDRS = rrutil.h rrtimer.h |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 76 | |
DRC | 240d82f | 2011-02-19 00:00:34 +0000 | [diff] [blame] | 77 | bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom jpgtest |
| 78 | noinst_PROGRAMS = jpegut |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 79 | |
DRC | 2e4d044 | 2011-02-08 01:18:37 +0000 | [diff] [blame] | 80 | jpgtest_SOURCES = $(TSTHDRS) jpgtest.c bmp.h bmp.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 81 | |
DRC | da509e3 | 2011-02-18 21:16:04 +0000 | [diff] [blame] | 82 | jpgtest_LDADD = libturbojpeg.la -lm |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 83 | |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 84 | jpegut_SOURCES = $(TSTHDRS) jpegut.c bmp.h bmp.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 85 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 86 | jpegut_LDADD = libturbojpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 87 | |
| 88 | cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \ |
| 89 | rdppm.c rdswitch.c rdtarga.c |
| 90 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 91 | cjpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 92 | |
| 93 | cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 94 | -DTARGA_SUPPORTED |
| 95 | |
| 96 | djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \ |
| 97 | wrbmp.c wrgif.c wrppm.c wrtarga.c |
| 98 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 99 | djpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 100 | |
| 101 | djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 102 | -DTARGA_SUPPORTED |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 103 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 104 | jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c transupp.h |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 105 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 106 | jpegtran_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 107 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 108 | rdjpgcom_SOURCES = rdjpgcom.c |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 109 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 110 | rdjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 111 | |
| 112 | wrjpgcom_SOURCES = wrjpgcom.c |
| 113 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 114 | wrjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 115 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 116 | |
DRC | cbda81a | 2010-06-05 01:12:35 +0000 | [diff] [blame] | 117 | dist_man1_MANS = cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 118 | |
DRC | 39ea562 | 2010-10-12 01:55:31 +0000 | [diff] [blame] | 119 | DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \ |
| 120 | structure.txt coderules.txt filelist.txt jconfig.txt change.log \ |
DRC | 0b7d4ed | 2010-03-03 09:37:58 +0000 | [diff] [blame] | 121 | README-turbo.txt rdrle.c wrrle.c LICENSE.txt LGPL.txt BUILDING.txt \ |
| 122 | ChangeLog.txt |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 123 | |
DRC | 968c8bb | 2010-02-22 22:50:13 +0000 | [diff] [blame] | 124 | TESTFILES= testorig.jpg testorig.ppm testimg.bmp testimgflt.jpg \ |
DRC | 50503c7 | 2010-09-09 21:00:31 +0000 | [diff] [blame] | 125 | testimgfst.jpg testimgint.jpg testimgp.jpg testimgflt.ppm testimgfst.ppm \ |
DRC | f0b7fef | 2010-11-23 17:13:02 +0000 | [diff] [blame] | 126 | testimgint.ppm testimgflt-nosimd.jpg testimgcrop.jpg testimgari.jpg \ |
DRC | 2ddcc63 | 2011-02-18 22:46:05 +0000 | [diff] [blame] | 127 | testimgari.ppm testimgfst100.jpg testimggray.jpg |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 128 | |
DRC | dffd53d | 2011-04-01 00:37:20 +0000 | [diff] [blame^] | 129 | EXTRA_DIST = win release $(DOCS) $(TESTFILES) CMakeLists.txt \ |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 130 | sharedlib/CMakeLists.txt cmakescripts libjpeg.map.in |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 131 | |
| 132 | dist-hook: |
| 133 | rm -rf `find $(distdir) -name .svn` |
| 134 | |
| 135 | |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 136 | test: testclean all |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 137 | if WITH_JAVA |
| 138 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest |
| 139 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -bi |
| 140 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv |
| 141 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi |
| 142 | endif |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 143 | ./jpegut |
DRC | fbb6747 | 2010-11-24 04:02:37 +0000 | [diff] [blame] | 144 | ./jpegut -yuv |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 145 | ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testorig.ppm |
| 146 | cmp $(srcdir)/testimgint.jpg testoutint.jpg |
| 147 | ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testorig.ppm |
| 148 | cmp $(srcdir)/testimgfst.jpg testoutfst.jpg |
DRC | a49c4e5 | 2011-02-18 20:50:08 +0000 | [diff] [blame] | 149 | ./cjpeg -dct fast -quality 100 -opt -outfile testoutfst100.jpg $(srcdir)/testorig.ppm |
| 150 | cmp $(srcdir)/testimgfst100.jpg testoutfst100.jpg |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 151 | ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testorig.ppm |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 152 | if WITH_SIMD |
DRC | 0fd8be5 | 2010-02-19 05:12:39 +0000 | [diff] [blame] | 153 | cmp $(srcdir)/testimgflt.jpg testoutflt.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 154 | else |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 155 | cmp $(srcdir)/testimgflt-nosimd.jpg testoutflt.jpg |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 156 | endif |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame] | 157 | ./cjpeg -dct int -grayscale -outfile testoutgray.jpg $(srcdir)/testorig.ppm |
| 158 | cmp $(srcdir)/testimggray.jpg testoutgray.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 159 | ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testorig.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 160 | cmp $(srcdir)/testimgint.ppm testoutint.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 161 | ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testorig.jpg |
DRC | 3095971 | 2010-08-07 16:06:56 +0000 | [diff] [blame] | 162 | cmp $(srcdir)/testimgfst.ppm testoutfst.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 163 | ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testorig.jpg |
| 164 | if WITH_SIMD |
| 165 | cmp $(srcdir)/testimgflt.ppm testoutflt.ppm |
| 166 | else |
DRC | 3095971 | 2010-08-07 16:06:56 +0000 | [diff] [blame] | 167 | cmp $(srcdir)/testorig.ppm testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 168 | endif |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 169 | ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg |
DRC | 3095971 | 2010-08-07 16:06:56 +0000 | [diff] [blame] | 170 | cmp $(srcdir)/testimg.bmp testout.bmp |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 171 | if WITH_ARITH_ENC |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 172 | ./cjpeg -dct int -arithmetic -outfile testoutari.jpg $(srcdir)/testorig.ppm |
| 173 | cmp $(srcdir)/testimgari.jpg testoutari.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 174 | ./jpegtran -arithmetic -outfile testouta.jpg $(srcdir)/testimgint.jpg |
| 175 | cmp $(srcdir)/testimgari.jpg testouta.jpg |
| 176 | endif |
| 177 | if WITH_ARITH_DEC |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 178 | ./djpeg -dct int -fast -ppm -outfile testoutari.ppm $(srcdir)/testimgari.jpg |
| 179 | cmp $(srcdir)/testimgari.ppm testoutari.ppm |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 180 | ./jpegtran -outfile testouta.jpg $(srcdir)/testimgari.jpg |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 181 | cmp $(srcdir)/testimgint.jpg testouta.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 182 | endif |
DRC | 3095971 | 2010-08-07 16:06:56 +0000 | [diff] [blame] | 183 | ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testorig.ppm |
| 184 | cmp $(srcdir)/testimgp.jpg testoutp.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 185 | ./jpegtran -outfile testoutt.jpg testoutp.jpg |
DRC | 3095971 | 2010-08-07 16:06:56 +0000 | [diff] [blame] | 186 | cmp $(srcdir)/testimgint.jpg testoutt.jpg |
DRC | 9a648cc | 2010-10-10 02:48:21 +0000 | [diff] [blame] | 187 | ./jpegtran -crop 120x90+20+50 -transpose -perfect -outfile testoutcrop.jpg $(srcdir)/testorig.jpg |
DRC | c04bd3c | 2010-10-10 02:15:56 +0000 | [diff] [blame] | 188 | cmp $(srcdir)/testimgcrop.jpg testoutcrop.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 189 | |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 190 | |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 191 | testclean: |
DRC | 7b99172 | 2010-06-10 19:44:56 +0000 | [diff] [blame] | 192 | rm -f testout* |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 193 | rm -f *_GRAY_*.bmp |
| 194 | rm -f *_GRAY_*.png |
| 195 | rm -f *_GRAY_*.ppm |
| 196 | rm -f *_GRAY_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 197 | rm -f *_GRAY.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 198 | rm -f *_420_*.bmp |
| 199 | rm -f *_420_*.png |
| 200 | rm -f *_420_*.ppm |
| 201 | rm -f *_420_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 202 | rm -f *_420.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 203 | rm -f *_422_*.bmp |
| 204 | rm -f *_422_*.png |
| 205 | rm -f *_422_*.ppm |
| 206 | rm -f *_422_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 207 | rm -f *_422.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 208 | rm -f *_444_*.bmp |
| 209 | rm -f *_444_*.png |
| 210 | rm -f *_444_*.ppm |
| 211 | rm -f *_444_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 212 | rm -f *_444.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 213 | rm -f *_440_*.bmp |
| 214 | rm -f *_440_*.png |
| 215 | rm -f *_440_*.ppm |
| 216 | rm -f *_440_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 217 | rm -f *_440.yuv |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 218 | |
DRC | d1c281a | 2010-11-17 22:44:40 +0000 | [diff] [blame] | 219 | if X86_64 |
| 220 | |
| 221 | install-exec-hook: |
| 222 | __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \ |
| 223 | if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \ |
| 224 | cd $(DESTDIR)/${prefix}; \ |
| 225 | if [ -d lib -a ! -d lib64 -a ! -h lib64 ]; then \ |
| 226 | $(LN_S) lib lib64; \ |
| 227 | fi \ |
| 228 | fi |
| 229 | |
| 230 | else |
| 231 | |
| 232 | install-exec-hook: |
| 233 | __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \ |
| 234 | if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \ |
| 235 | cd $(DESTDIR)/${prefix}; \ |
| 236 | if [ -d lib -a ! -d lib32 -a ! -h lib32 ]; then \ |
| 237 | $(LN_S) lib lib32; \ |
| 238 | fi \ |
| 239 | fi |
| 240 | |
| 241 | endif |
| 242 | |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 243 | rpm: all |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 244 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 245 | mkdir -p $$TMPDIR/RPMS; \ |
| 246 | ln -fs `pwd` $$TMPDIR/BUILD; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 247 | rm -f ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 248 | rpmbuild -bb --define "_blddir $$TMPDIR/buildroot" \ |
| 249 | --define "_topdir $$TMPDIR" --define "_srcdir ${srcdir}" \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 250 | --target ${RPMARCH} pkgscripts/libjpeg-turbo.spec; \ |
| 251 | cp $$TMPDIR/RPMS/${RPMARCH}/${PACKAGE_NAME}-${VERSION}-${BUILD}.${RPMARCH}.rpm \ |
| 252 | ${PACKAGE_NAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 253 | rm -rf $$TMPDIR |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 254 | |
DRC | f26914b | 2010-02-15 11:36:46 +0000 | [diff] [blame] | 255 | srpm: dist-gzip |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 256 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 257 | mkdir -p $$TMPDIR/RPMS; \ |
| 258 | mkdir -p $$TMPDIR/SRPMS; \ |
| 259 | mkdir -p $$TMPDIR/BUILD; \ |
| 260 | mkdir -p $$TMPDIR/SOURCES; \ |
| 261 | mkdir -p $$TMPDIR/SPECS; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 262 | rm -f ${PACKAGE_NAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 263 | cp ${PACKAGE_NAME}-${VERSION}.tar.gz $$TMPDIR/SOURCES; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 264 | cat pkgscripts/libjpeg-turbo.spec | sed s/%{_blddir}/%{_tmppath}/g \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 265 | | sed s@%{_srcdir}/@@g | sed s/#--\>//g \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 266 | > $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 267 | rpmbuild -bs --define "_topdir $$TMPDIR" $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 268 | cp $$TMPDIR/SRPMS/${PACKAGE_NAME}-${VERSION}-${BUILD}.src.rpm \ |
| 269 | ${PACKAGE_NAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 270 | rm -rf $$TMPDIR |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 271 | |
| 272 | deb: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 273 | sh pkgscripts/makedpkg |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 274 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 275 | if X86_64 |
| 276 | |
| 277 | udmg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 278 | sh pkgscripts/makemacpkg universal ${BUILDDIR32} |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 279 | |
| 280 | endif |
| 281 | |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 282 | dmg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 283 | sh pkgscripts/makemacpkg |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 284 | |
| 285 | if X86_64 |
| 286 | |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 287 | csunpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 288 | sh pkgscripts/makesunpkg combined ${BUILDDIR32} |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 289 | |
DRC | 3dc1bc2 | 2010-05-10 22:18:10 +0000 | [diff] [blame] | 290 | endif |
DRC | ae79fdb | 2010-06-09 20:16:04 +0000 | [diff] [blame] | 291 | |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 292 | sunpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 293 | sh pkgscripts/makesunpkg |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 294 | |
DRC | ae79fdb | 2010-06-09 20:16:04 +0000 | [diff] [blame] | 295 | cygwinpkg: all |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 296 | sh pkgscripts/makecygwinpkg |