image_compressor_pack 0.1.1.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/.gitignore +15 -0
  4. data/.travis.yml +16 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +21 -0
  7. data/Makefile +32 -0
  8. data/README.md +45 -0
  9. data/Rakefile +56 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +7 -0
  12. data/certs/ignisf.pem +32 -0
  13. data/ext/image_compressor_pack/extconf.rb +30 -0
  14. data/image_compressor_pack.gemspec +28 -0
  15. data/lib/image_compressor_pack/dynamically_linked_recipes.yml +84 -0
  16. data/lib/image_compressor_pack/recipes.rb +42 -0
  17. data/lib/image_compressor_pack/statically_linked_recipes.yml +93 -0
  18. data/lib/image_compressor_pack/version.rb +3 -0
  19. data/lib/image_compressor_pack.rb +24 -0
  20. data/ports/archives/advancecomp-1.20.tar.gz +0 -0
  21. data/ports/archives/gifsicle-1.88.tar.gz +0 -0
  22. data/ports/archives/jhead-3.00.tar.gz +0 -0
  23. data/ports/archives/jpegoptim-1.4.3.tar.gz +0 -0
  24. data/ports/archives/lcms2-2.7.tar.gz +0 -0
  25. data/ports/archives/libpng-1.6.21.tar.gz +0 -0
  26. data/ports/archives/mozjpeg-3.1-release-source.tar.gz +0 -0
  27. data/ports/archives/nasm-2.12.01.tar.gz +0 -0
  28. data/ports/archives/optipng-0.7.6.tar.gz +0 -0
  29. data/ports/archives/pngcrush-1.8.1.tar.gz +0 -0
  30. data/ports/archives/pngquant-2.7.1-src.tar.gz +0 -0
  31. data/ports/archives/zlib-1.2.8.tar.gz +0 -0
  32. data/ports/patches/jhead/0001-Add-a-configure-shim.patch +21 -0
  33. data/ports/patches/jhead/0002-Specify-a-default-DESTDIR.patch +30 -0
  34. data/ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch +39 -0
  35. data/ports/patches/jhead/0004-Make-the-makefile-install-to-the-proper-location.patch +23 -0
  36. data/ports/patches/jhead/0005-Produce-a-static-binary.patch +25 -0
  37. data/ports/patches/jpegoptim/0001-Link-lm-after-ljpeg.patch +34 -0
  38. data/ports/patches/libpng/0001-Do-not-build-binary-utilities.patch +327 -0
  39. data/ports/patches/mozjpeg/0001-Build-static-binaries.patch +34 -0
  40. data/ports/patches/optipng/0001-Allow-passing-LDFLAGS-as-configure-arg.patch +35 -0
  41. data/ports/patches/pngcrush/0001-Add-an-install-task.patch +33 -0
  42. data/ports/patches/pngcrush/0002-Add-a-configure-script.patch +41 -0
  43. data/ports/patches/pngcrush/0003-Produce-a-static-binary.patch +25 -0
  44. data/ports/patches/pngquant/0001-Work-around-mini-portile-s-configure-invocation.patch +965 -0
  45. data/ports/patches/pngquant/0002-Add-default-LDFLAGS.patch +24 -0
  46. data/ports/patches/pngquant/0003-Disable-libpng-check.patch +77 -0
  47. data/ports/patches/pngquant/0004-Remove-libz-check.patch +37 -0
  48. data/ports/patches/pngquant/0005-Remove-lcms2-check.patch +47 -0
  49. data/ports/patches/pngquant/0006-Do-not-build-static-binary.patch +25 -0
  50. data.tar.gz.sig +0 -0
  51. metadata +168 -0
  52. metadata.gz.sig +0 -0
@@ -0,0 +1,39 @@
1
+ From 97a911d5108da1a76c89d6942b7d55600ef35662 Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Sun, 22 Nov 2015 17:57:21 +0200
4
+ Subject: [PATCH 3/5] Make the configure script set the DESTDIR
5
+
6
+ ---
7
+ configure | 21 +++++++++++++++++++++
8
+ 1 file changed, 21 insertions(+)
9
+
10
+ diff --git a/configure b/configure
11
+ index 1a24852..222a540 100755
12
+ --- a/configure
13
+ +++ b/configure
14
+ @@ -1 +1,22 @@
15
+ #!/bin/sh
16
+ +
17
+ +TEMP=`getopt -o '' --long enable-static,disable-shared,prefix:,host: \
18
+ + -n 'configure' -- "$@"`
19
+ +
20
+ +if [ $? != 0 ] ; then exit 1 ; fi
21
+ +
22
+ +# Note the quotes around `$TEMP': they are essential!
23
+ +eval set -- "$TEMP"
24
+ +
25
+ +while true ; do
26
+ + case "$1" in
27
+ + --host) shift 2 ;;
28
+ + --enable-static) shift ;;
29
+ + --disable-shared) shift ;;
30
+ + --prefix)
31
+ + dir="$( echo $2 | sed 's_/_\\/_g' )"
32
+ + sed -i "s/DESTDIR=.*/DESTDIR=${dir}/" makefile; shift 2 ;;
33
+ + --) shift; break ;;
34
+ + *) echo "Internal error!" ; exit 1 ;;
35
+ + esac
36
+ +done
37
+ --
38
+ 2.8.3
39
+
@@ -0,0 +1,23 @@
1
+ From 0c7f0a525295ec597393d31d13b6604247a96337 Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Sun, 22 Nov 2015 18:28:37 +0200
4
+ Subject: [PATCH 4/5] Make the makefile install to the proper location
5
+
6
+ ---
7
+ makefile | 3 ++-
8
+ 1 file changed, 2 insertions(+), 1 deletion(-)
9
+
10
+ diff --git a/makefile b/makefile
11
+ index 40c67d2..8201b3d 100644
12
+ --- a/makefile
13
+ +++ b/makefile
14
+ @@ -21,4 +21,5 @@ clean:
15
+ rm -f $(objs) jhead
16
+
17
+ install:
18
+ - cp jhead ${DESTDIR}/usr/local/bin/
19
+ + mkdir -p ${DESTDIR}/bin/
20
+ + cp jhead ${DESTDIR}/bin/
21
+ --
22
+ 2.8.3
23
+
@@ -0,0 +1,25 @@
1
+ From 93a5ae2d676c5ac6aa7dc1bcf41426050c1e9fe7 Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Thu, 9 Jun 2016 01:59:08 +0300
4
+ Subject: [PATCH 5/5] Produce a static binary
5
+
6
+ ---
7
+ makefile | 2 +-
8
+ 1 file changed, 1 insertion(+), 1 deletion(-)
9
+
10
+ diff --git a/makefile b/makefile
11
+ index 8201b3d..627da2d 100644
12
+ --- a/makefile
13
+ +++ b/makefile
14
+ @@ -15,7 +15,7 @@ $(OBJ)/%.o:$(SRC)/%.c
15
+ ${CC} $(CFLAGS) -c $< -o $@
16
+
17
+ jhead: $(objs) jhead.h
18
+ - ${CC} -o jhead $(objs) -lm
19
+ + ${CC} -o jhead $(objs) -lm -static
20
+
21
+ clean:
22
+ rm -f $(objs) jhead
23
+ --
24
+ 2.8.3
25
+
@@ -0,0 +1,34 @@
1
+ From ee573287eed74a6b5053f73b180f34cacc711cd9 Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Thu, 9 Jun 2016 02:19:08 +0300
4
+ Subject: [PATCH] Link lm after ljpeg
5
+
6
+ ---
7
+ configure | 4 ++--
8
+ 1 file changed, 2 insertions(+), 2 deletions(-)
9
+
10
+ diff --git a/configure b/configure
11
+ index c2ea37e..dfb3aa5 100755
12
+ --- a/configure
13
+ +++ b/configure
14
+ @@ -3381,7 +3381,7 @@ if ${ac_cv_lib_m_floor+:} false; then :
15
+ $as_echo_n "(cached) " >&6
16
+ else
17
+ ac_check_lib_save_LIBS=$LIBS
18
+ -LIBS="-lm $LIBS"
19
+ +LIBS="$LIBS -lm"
20
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21
+ /* end confdefs.h. */
22
+
23
+ @@ -3416,7 +3416,7 @@ if test "x$ac_cv_lib_m_floor" = xyes; then :
24
+ #define HAVE_LIBM 1
25
+ _ACEOF
26
+
27
+ - LIBS="-lm $LIBS"
28
+ + LIBS="$LIBS -lm"
29
+
30
+ fi
31
+
32
+ --
33
+ 2.8.3
34
+
@@ -0,0 +1,327 @@
1
+ From ac0cee4d31ada2048f7815cce30786131531313b Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Thu, 9 Jun 2016 02:27:51 +0300
4
+ Subject: [PATCH] Do not build binary utilities
5
+
6
+ ---
7
+ Makefile.am | 8 ----
8
+ Makefile.in | 152 ++++++++++++------------------------------------------------
9
+ 2 files changed, 30 insertions(+), 130 deletions(-)
10
+
11
+ diff --git a/Makefile.am b/Makefile.am
12
+ index 73097db..ffa13f1 100644
13
+ --- a/Makefile.am
14
+ +++ b/Makefile.am
15
+ @@ -9,9 +9,6 @@ ACLOCAL_AMFLAGS = -I scripts
16
+ # test programs - run on make check, make distcheck
17
+ check_PROGRAMS= pngtest pngunknown pngstest pngvalid pngimage
18
+
19
+ -# Utilities - installed
20
+ -bin_PROGRAMS= pngfix png-fix-itxt
21
+ -
22
+ # This ensures that pnglibconf.h gets built at the start of 'make all' or
23
+ # 'make check', but it does not add dependencies to the individual programs,
24
+ # this is done below.
25
+ @@ -37,11 +34,6 @@ pngunknown_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
26
+ pngimage_SOURCES = contrib/libtests/pngimage.c
27
+ pngimage_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
28
+
29
+ -pngfix_SOURCES = contrib/tools/pngfix.c
30
+ -pngfix_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
31
+ -
32
+ -png_fix_itxt_SOURCES = contrib/tools/png-fix-itxt.c
33
+ -
34
+ # Generally these are single line shell scripts to run a test with a particular
35
+ # set of parameters:
36
+ TESTS =\
37
+ diff --git a/Makefile.in b/Makefile.in
38
+ index e4f3562..f66ea35 100644
39
+ --- a/Makefile.in
40
+ +++ b/Makefile.in
41
+ @@ -21,7 +21,6 @@
42
+
43
+
44
+
45
+ -
46
+ VPATH = @srcdir@
47
+ am__is_gnu_make = { \
48
+ if test -z '$(MAKELEVEL)'; then \
49
+ @@ -97,7 +96,6 @@ build_triplet = @build@
50
+ host_triplet = @host@
51
+ check_PROGRAMS = pngtest$(EXEEXT) pngunknown$(EXEEXT) \
52
+ pngstest$(EXEEXT) pngvalid$(EXEEXT) pngimage$(EXEEXT)
53
+ -bin_PROGRAMS = pngfix$(EXEEXT) png-fix-itxt$(EXEEXT)
54
+ @PNG_ARM_NEON_TRUE@am__append_1 = arm/arm_init.c\
55
+ @PNG_ARM_NEON_TRUE@ arm/filter_neon.S arm/filter_neon_intrinsics.c
56
+
57
+ @@ -154,9 +152,9 @@ am__uninstall_files_from_dir = { \
58
+ $(am__cd) "$$dir" && rm -f $$files; }; \
59
+ }
60
+ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
61
+ - "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man3dir)" \
62
+ - "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(pkgconfigdir)" \
63
+ - "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)"
64
+ + "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" \
65
+ + "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)" \
66
+ + "$(DESTDIR)$(pkgincludedir)"
67
+ LTLIBRARIES = $(lib_LTLIBRARIES)
68
+ libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LIBADD =
69
+ am__libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES_DIST = png.c \
70
+ @@ -185,13 +183,6 @@ libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LINK = $(LIBTOOL) $(AM_V_lt) \
71
+ $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
72
+ $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS) $(LDFLAGS) -o \
73
+ $@
74
+ -PROGRAMS = $(bin_PROGRAMS)
75
+ -am_png_fix_itxt_OBJECTS = contrib/tools/png-fix-itxt.$(OBJEXT)
76
+ -png_fix_itxt_OBJECTS = $(am_png_fix_itxt_OBJECTS)
77
+ -png_fix_itxt_LDADD = $(LDADD)
78
+ -am_pngfix_OBJECTS = contrib/tools/pngfix.$(OBJEXT)
79
+ -pngfix_OBJECTS = $(am_pngfix_OBJECTS)
80
+ -pngfix_DEPENDENCIES = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
81
+ am_pngimage_OBJECTS = contrib/libtests/pngimage.$(OBJEXT)
82
+ pngimage_OBJECTS = $(am_pngimage_OBJECTS)
83
+ pngimage_DEPENDENCIES = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
84
+ @@ -254,14 +245,12 @@ am__v_CCLD_0 = @echo " CCLD " $@;
85
+ am__v_CCLD_1 =
86
+ SOURCES = $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES) \
87
+ $(nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES) \
88
+ - $(png_fix_itxt_SOURCES) $(pngfix_SOURCES) $(pngimage_SOURCES) \
89
+ - $(pngstest_SOURCES) $(pngtest_SOURCES) $(pngunknown_SOURCES) \
90
+ - $(pngvalid_SOURCES)
91
+ + $(pngimage_SOURCES) $(pngstest_SOURCES) $(pngtest_SOURCES) \
92
+ + $(pngunknown_SOURCES) $(pngvalid_SOURCES)
93
+ DIST_SOURCES = \
94
+ $(am__libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES_DIST) \
95
+ - $(png_fix_itxt_SOURCES) $(pngfix_SOURCES) $(pngimage_SOURCES) \
96
+ - $(pngstest_SOURCES) $(pngtest_SOURCES) $(pngunknown_SOURCES) \
97
+ - $(pngvalid_SOURCES)
98
+ + $(pngimage_SOURCES) $(pngstest_SOURCES) $(pngtest_SOURCES) \
99
+ + $(pngunknown_SOURCES) $(pngvalid_SOURCES)
100
+ am__can_run_installinfo = \
101
+ case $$AM_UPDATE_INFO_DIR in \
102
+ n|no|NO) false;; \
103
+ @@ -664,9 +653,6 @@ pngunknown_SOURCES = contrib/libtests/pngunknown.c
104
+ pngunknown_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
105
+ pngimage_SOURCES = contrib/libtests/pngimage.c
106
+ pngimage_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
107
+ -pngfix_SOURCES = contrib/tools/pngfix.c
108
+ -pngfix_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
109
+ -png_fix_itxt_SOURCES = contrib/tools/png-fix-itxt.c
110
+
111
+ # Generally these are single line shell scripts to run a test with a particular
112
+ # set of parameters:
113
+ @@ -854,55 +840,6 @@ arm/filter_neon_intrinsics.lo: arm/$(am__dirstamp) \
114
+
115
+ libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la: $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES) $(EXTRA_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES)
116
+ $(AM_V_CCLD)$(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LINK) -rpath $(libdir) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LIBADD) $(LIBS)
117
+ -install-binPROGRAMS: $(bin_PROGRAMS)
118
+ - @$(NORMAL_INSTALL)
119
+ - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
120
+ - if test -n "$$list"; then \
121
+ - echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
122
+ - $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
123
+ - fi; \
124
+ - for p in $$list; do echo "$$p $$p"; done | \
125
+ - sed 's/$(EXEEXT)$$//' | \
126
+ - while read p p1; do if test -f $$p \
127
+ - || test -f $$p1 \
128
+ - ; then echo "$$p"; echo "$$p"; else :; fi; \
129
+ - done | \
130
+ - sed -e 'p;s,.*/,,;n;h' \
131
+ - -e 's|.*|.|' \
132
+ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
133
+ - sed 'N;N;N;s,\n, ,g' | \
134
+ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
135
+ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
136
+ - if ($$2 == $$4) files[d] = files[d] " " $$1; \
137
+ - else { print "f", $$3 "/" $$4, $$1; } } \
138
+ - END { for (d in files) print "f", d, files[d] }' | \
139
+ - while read type dir files; do \
140
+ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
141
+ - test -z "$$files" || { \
142
+ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
143
+ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
144
+ - } \
145
+ - ; done
146
+ -
147
+ -uninstall-binPROGRAMS:
148
+ - @$(NORMAL_UNINSTALL)
149
+ - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
150
+ - files=`for p in $$list; do echo "$$p"; done | \
151
+ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
152
+ - -e 's/$$/$(EXEEXT)/' \
153
+ - `; \
154
+ - test -n "$$list" || exit 0; \
155
+ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
156
+ - cd "$(DESTDIR)$(bindir)" && rm -f $$files
157
+ -
158
+ -clean-binPROGRAMS:
159
+ - @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
160
+ - echo " rm -f" $$list; \
161
+ - rm -f $$list || exit $$?; \
162
+ - test -n "$(EXEEXT)" || exit 0; \
163
+ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
164
+ - echo " rm -f" $$list; \
165
+ - rm -f $$list
166
+
167
+ clean-checkPROGRAMS:
168
+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
169
+ @@ -912,24 +849,6 @@ clean-checkPROGRAMS:
170
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
171
+ echo " rm -f" $$list; \
172
+ rm -f $$list
173
+ -contrib/tools/$(am__dirstamp):
174
+ - @$(MKDIR_P) contrib/tools
175
+ - @: > contrib/tools/$(am__dirstamp)
176
+ -contrib/tools/$(DEPDIR)/$(am__dirstamp):
177
+ - @$(MKDIR_P) contrib/tools/$(DEPDIR)
178
+ - @: > contrib/tools/$(DEPDIR)/$(am__dirstamp)
179
+ -contrib/tools/png-fix-itxt.$(OBJEXT): contrib/tools/$(am__dirstamp) \
180
+ - contrib/tools/$(DEPDIR)/$(am__dirstamp)
181
+ -
182
+ -png-fix-itxt$(EXEEXT): $(png_fix_itxt_OBJECTS) $(png_fix_itxt_DEPENDENCIES) $(EXTRA_png_fix_itxt_DEPENDENCIES)
183
+ - @rm -f png-fix-itxt$(EXEEXT)
184
+ - $(AM_V_CCLD)$(LINK) $(png_fix_itxt_OBJECTS) $(png_fix_itxt_LDADD) $(LIBS)
185
+ -contrib/tools/pngfix.$(OBJEXT): contrib/tools/$(am__dirstamp) \
186
+ - contrib/tools/$(DEPDIR)/$(am__dirstamp)
187
+ -
188
+ -pngfix$(EXEEXT): $(pngfix_OBJECTS) $(pngfix_DEPENDENCIES) $(EXTRA_pngfix_DEPENDENCIES)
189
+ - @rm -f pngfix$(EXEEXT)
190
+ - $(AM_V_CCLD)$(LINK) $(pngfix_OBJECTS) $(pngfix_LDADD) $(LIBS)
191
+ contrib/libtests/$(am__dirstamp):
192
+ @$(MKDIR_P) contrib/libtests
193
+ @: > contrib/libtests/$(am__dirstamp)
194
+ @@ -1006,7 +925,6 @@ mostlyclean-compile:
195
+ -rm -f arm/*.$(OBJEXT)
196
+ -rm -f arm/*.lo
197
+ -rm -f contrib/libtests/*.$(OBJEXT)
198
+ - -rm -f contrib/tools/*.$(OBJEXT)
199
+
200
+ distclean-compile:
201
+ -rm -f *.tab.c
202
+ @@ -1034,8 +952,6 @@ distclean-compile:
203
+ @AMDEP_TRUE@@am__include@ @am__quote@contrib/libtests/$(DEPDIR)/pngstest.Po@am__quote@
204
+ @AMDEP_TRUE@@am__include@ @am__quote@contrib/libtests/$(DEPDIR)/pngunknown.Po@am__quote@
205
+ @AMDEP_TRUE@@am__include@ @am__quote@contrib/libtests/$(DEPDIR)/pngvalid.Po@am__quote@
206
+ -@AMDEP_TRUE@@am__include@ @am__quote@contrib/tools/$(DEPDIR)/png-fix-itxt.Po@am__quote@
207
+ -@AMDEP_TRUE@@am__include@ @am__quote@contrib/tools/$(DEPDIR)/pngfix.Po@am__quote@
208
+
209
+ .S.o:
210
+ @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
211
+ @@ -1853,12 +1769,10 @@ check-am: all-am
212
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
213
+ check: $(BUILT_SOURCES)
214
+ $(MAKE) $(AM_MAKEFLAGS) check-am
215
+ -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \
216
+ - $(HEADERS) config.h
217
+ -install-binPROGRAMS: install-libLTLIBRARIES
218
+ -
219
+ +all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) $(HEADERS) \
220
+ + config.h
221
+ installdirs:
222
+ - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)"; do \
223
+ + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)"; do \
224
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
225
+ done
226
+ install: $(BUILT_SOURCES)
227
+ @@ -1896,8 +1810,6 @@ distclean-generic:
228
+ -rm -f arm/$(am__dirstamp)
229
+ -rm -f contrib/libtests/$(DEPDIR)/$(am__dirstamp)
230
+ -rm -f contrib/libtests/$(am__dirstamp)
231
+ - -rm -f contrib/tools/$(DEPDIR)/$(am__dirstamp)
232
+ - -rm -f contrib/tools/$(am__dirstamp)
233
+
234
+ maintainer-clean-generic:
235
+ @echo "This command is intended for maintainers to use"
236
+ @@ -1909,12 +1821,12 @@ maintainer-clean-generic:
237
+ @DO_INSTALL_LIBPNG_CONFIG_FALSE@@DO_INSTALL_LIBPNG_PC_FALSE@@DO_INSTALL_LINKS_FALSE@uninstall-hook:
238
+ clean: clean-am
239
+
240
+ -clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
241
+ - clean-libLTLIBRARIES clean-libtool mostlyclean-am
242
+ +clean-am: clean-checkPROGRAMS clean-generic clean-libLTLIBRARIES \
243
+ + clean-libtool mostlyclean-am
244
+
245
+ distclean: distclean-am
246
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
247
+ - -rm -rf ./$(DEPDIR) arm/$(DEPDIR) contrib/libtests/$(DEPDIR) contrib/tools/$(DEPDIR)
248
+ + -rm -rf ./$(DEPDIR) arm/$(DEPDIR) contrib/libtests/$(DEPDIR)
249
+ -rm -f Makefile
250
+ distclean-am: clean-am distclean-compile distclean-generic \
251
+ distclean-hdr distclean-libtool distclean-tags
252
+ @@ -1939,8 +1851,7 @@ install-dvi: install-dvi-am
253
+
254
+ install-dvi-am:
255
+
256
+ -install-exec-am: install-binPROGRAMS install-binSCRIPTS \
257
+ - install-libLTLIBRARIES
258
+ +install-exec-am: install-binSCRIPTS install-libLTLIBRARIES
259
+ @$(NORMAL_INSTALL)
260
+ $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
261
+ install-html: install-html-am
262
+ @@ -1966,7 +1877,7 @@ installcheck-am:
263
+ maintainer-clean: maintainer-clean-am
264
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
265
+ -rm -rf $(top_srcdir)/autom4te.cache
266
+ - -rm -rf ./$(DEPDIR) arm/$(DEPDIR) contrib/libtests/$(DEPDIR) contrib/tools/$(DEPDIR)
267
+ + -rm -rf ./$(DEPDIR) arm/$(DEPDIR) contrib/libtests/$(DEPDIR)
268
+ -rm -f Makefile
269
+ maintainer-clean-am: distclean-am maintainer-clean-generic
270
+
271
+ @@ -1983,10 +1894,9 @@ ps: ps-am
272
+
273
+ ps-am:
274
+
275
+ -uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
276
+ - uninstall-libLTLIBRARIES uninstall-man \
277
+ - uninstall-nodist_pkgincludeHEADERS uninstall-pkgconfigDATA \
278
+ - uninstall-pkgincludeHEADERS
279
+ +uninstall-am: uninstall-binSCRIPTS uninstall-libLTLIBRARIES \
280
+ + uninstall-man uninstall-nodist_pkgincludeHEADERS \
281
+ + uninstall-pkgconfigDATA uninstall-pkgincludeHEADERS
282
+ @$(NORMAL_INSTALL)
283
+ $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
284
+ uninstall-man: uninstall-man3 uninstall-man5
285
+ @@ -1995,15 +1905,14 @@ uninstall-man: uninstall-man3 uninstall-man5
286
+ install-exec-am install-strip uninstall-am
287
+
288
+ .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-TESTS \
289
+ - check-am clean clean-binPROGRAMS clean-checkPROGRAMS \
290
+ - clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
291
+ - cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
292
+ - dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \
293
+ - dist-zip distcheck distclean distclean-compile \
294
+ - distclean-generic distclean-hdr distclean-libtool \
295
+ - distclean-tags distcleancheck distdir distuninstallcheck dvi \
296
+ - dvi-am html html-am info info-am install install-am \
297
+ - install-binPROGRAMS install-binSCRIPTS install-data \
298
+ + check-am clean clean-checkPROGRAMS clean-cscope clean-generic \
299
+ + clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \
300
+ + ctags-am dist dist-all dist-bzip2 dist-gzip dist-hook \
301
+ + dist-lzip dist-shar dist-tarZ dist-xz dist-zip distcheck \
302
+ + distclean distclean-compile distclean-generic distclean-hdr \
303
+ + distclean-libtool distclean-tags distcleancheck distdir \
304
+ + distuninstallcheck dvi dvi-am html html-am info info-am \
305
+ + install install-am install-binSCRIPTS install-data \
306
+ install-data-am install-data-hook install-dvi install-dvi-am \
307
+ install-exec install-exec-am install-exec-hook install-html \
308
+ install-html-am install-info install-info-am \
309
+ @@ -2014,11 +1923,10 @@ uninstall-man: uninstall-man3 uninstall-man5
310
+ installdirs maintainer-clean maintainer-clean-generic \
311
+ mostlyclean mostlyclean-compile mostlyclean-generic \
312
+ mostlyclean-libtool pdf pdf-am ps ps-am recheck tags tags-am \
313
+ - uninstall uninstall-am uninstall-binPROGRAMS \
314
+ - uninstall-binSCRIPTS uninstall-hook uninstall-libLTLIBRARIES \
315
+ - uninstall-man uninstall-man3 uninstall-man5 \
316
+ - uninstall-nodist_pkgincludeHEADERS uninstall-pkgconfigDATA \
317
+ - uninstall-pkgincludeHEADERS
318
+ + uninstall uninstall-am uninstall-binSCRIPTS uninstall-hook \
319
+ + uninstall-libLTLIBRARIES uninstall-man uninstall-man3 \
320
+ + uninstall-man5 uninstall-nodist_pkgincludeHEADERS \
321
+ + uninstall-pkgconfigDATA uninstall-pkgincludeHEADERS
322
+
323
+ .PRECIOUS: Makefile
324
+
325
+ --
326
+ 2.8.3
327
+
@@ -0,0 +1,34 @@
1
+ From 9a12984ba0dde61da211a023c84c04a06a5219e6 Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Thu, 9 Jun 2016 01:28:09 +0300
4
+ Subject: [PATCH] Build static binaries
5
+
6
+ ---
7
+ Makefile.am | 1 +
8
+ Makefile.in | 1 +
9
+ 2 files changed, 2 insertions(+)
10
+
11
+ diff --git a/Makefile.am b/Makefile.am
12
+ index 8b10001..192f32b 100644
13
+ --- a/Makefile.am
14
+ +++ b/Makefile.am
15
+ @@ -1,3 +1,4 @@
16
+ +AM_LDFLAGS = -all-static
17
+ lib_LTLIBRARIES = libjpeg.la
18
+ libjpeg_la_LDFLAGS = -version-info ${LIBTOOL_CURRENT}:${SO_MINOR_VERSION}:${SO_AGE} -no-undefined
19
+ include_HEADERS = jerror.h jmorecfg.h jpeglib.h
20
+ diff --git a/Makefile.in b/Makefile.in
21
+ index 76cb653..e1f458c 100644
22
+ --- a/Makefile.in
23
+ +++ b/Makefile.in
24
+ @@ -623,6 +623,7 @@ target_alias = @target_alias@
25
+ top_build_prefix = @top_build_prefix@
26
+ top_builddir = @top_builddir@
27
+ top_srcdir = @top_srcdir@
28
+ +AM_LDFLAGS = -all-static
29
+ lib_LTLIBRARIES = libjpeg.la $(am__append_1)
30
+ libjpeg_la_LDFLAGS = -version-info \
31
+ ${LIBTOOL_CURRENT}:${SO_MINOR_VERSION}:${SO_AGE} -no-undefined \
32
+ --
33
+ 2.8.3
34
+
@@ -0,0 +1,35 @@
1
+ From ef60a1c883d5159cc3e521a8b29993a4e828b6cd Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Thu, 9 Jun 2016 01:39:55 +0300
4
+ Subject: [PATCH] Allow passing LDFLAGS as configure arg
5
+
6
+ ---
7
+ configure | 5 +++++
8
+ 1 file changed, 5 insertions(+)
9
+
10
+ diff --git a/configure b/configure
11
+ index 7ab199e..67695e4 100755
12
+ --- a/configure
13
+ +++ b/configure
14
+ @@ -146,6 +146,9 @@ do
15
+ # Can't use the system-supplied libpng without the system-supplied zlib.
16
+ with_system_libpng=0
17
+ ;;
18
+ + LDFLAGS=* )
19
+ + export LDFLAGS="$optarg"
20
+ + ;;
21
+ * )
22
+ echo "$0: error: unknown option: $arg"
23
+ echo "Type \"$0 -help\" for help"
24
+ @@ -154,6 +157,8 @@ do
25
+ esac
26
+ done
27
+
28
+ +echo $LDFLAGS
29
+ +
30
+ if test ! -f "$0"
31
+ then
32
+ echo "$0: error: cannot find myself; rerun with an absolute file name"
33
+ --
34
+ 2.8.3
35
+
@@ -0,0 +1,33 @@
1
+ From 8868eb72ea64fef8193b71c9372373e4aebdd4fd Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Sun, 22 Nov 2015 18:45:07 +0200
4
+ Subject: [PATCH 1/3] Add an install task
5
+
6
+ ---
7
+ Makefile | 6 ++++++
8
+ 1 file changed, 6 insertions(+)
9
+
10
+ diff --git a/Makefile b/Makefile
11
+ index c57c267..0391a49 100644
12
+ --- a/Makefile
13
+ +++ b/Makefile
14
+ @@ -14,6 +14,8 @@
15
+ #ZINC = ../../zlib
16
+ #ZLIB = ../../zlib
17
+
18
+ +DESTDIR=.
19
+ +
20
+ CC = gcc
21
+ LD = gcc
22
+ RM = rm -f
23
+ @@ -91,3 +93,7 @@ $(PNGCRUSH)$(E): $(OBJS)
24
+
25
+ clean:
26
+ $(RM) $(EXES) $(OBJS)
27
+ +
28
+ +install: $(PNGCRUSH)$(E)
29
+ + mkdir -p ${DESTDIR}/bin/
30
+ + cp $(PNGCRUSH)$(E) ${DESTDIR}/bin/
31
+ --
32
+ 2.8.3
33
+
@@ -0,0 +1,41 @@
1
+ From bf6f5c097a8dd88620dff316df85c3917ba72269 Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Sun, 22 Nov 2015 18:46:05 +0200
4
+ Subject: [PATCH 2/3] Add a configure script
5
+
6
+ ---
7
+ configure | 22 ++++++++++++++++++++++
8
+ 1 file changed, 22 insertions(+)
9
+ create mode 100755 configure
10
+
11
+ diff --git a/configure b/configure
12
+ new file mode 100755
13
+ index 0000000..59a425f
14
+ --- /dev/null
15
+ +++ b/configure
16
+ @@ -0,0 +1,22 @@
17
+ +#!/bin/sh
18
+ +
19
+ +TEMP=`getopt -o '' --long enable-static,disable-shared,prefix:,host: \
20
+ + -n 'configure' -- "$@"`
21
+ +
22
+ +if [ $? != 0 ] ; then exit 1 ; fi
23
+ +
24
+ +# Note the quotes around `$TEMP': they are essential!
25
+ +eval set -- "$TEMP"
26
+ +
27
+ +while true ; do
28
+ + case "$1" in
29
+ + --host) shift 2 ;;
30
+ + --enable-static) shift ;;
31
+ + --disable-shared) shift ;;
32
+ + --prefix)
33
+ + dir="$( echo $2 | sed 's_/_\\/_g' )"
34
+ + sed -i "s/DESTDIR=.*/DESTDIR=${dir}/" Makefile; shift 2 ;;
35
+ + --) shift ; break ;;
36
+ + *) echo "Internal error!" ; exit 1 ;;
37
+ + esac
38
+ +done
39
+ --
40
+ 2.8.3
41
+
@@ -0,0 +1,25 @@
1
+ From afef67e30aff76fba9f852012691687098c1ffbd Mon Sep 17 00:00:00 2001
2
+ From: Petko Bordjukov <bordjukov@gmail.com>
3
+ Date: Thu, 9 Jun 2016 02:03:46 +0300
4
+ Subject: [PATCH 3/3] Produce a static binary
5
+
6
+ ---
7
+ Makefile | 2 +-
8
+ 1 file changed, 1 insertion(+), 1 deletion(-)
9
+
10
+ diff --git a/Makefile b/Makefile
11
+ index 0391a49..c008c3e 100644
12
+ --- a/Makefile
13
+ +++ b/Makefile
14
+ @@ -38,7 +38,7 @@ TOOFAR_OK=
15
+ CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall -Wshadow
16
+ # [note that -Wall is a gcc-specific compilation flag ("all warnings on")]
17
+
18
+ -LDFLAGS =
19
+ +LDFLAGS = -static
20
+ O = .o
21
+ E =
22
+
23
+ --
24
+ 2.8.3
25
+