image_compressor_pack 0.1.3-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +1 -0
- data/LICENSE.txt +22 -0
- data/lib/.paths.yml +12 -0
- data/lib/image_compressor_pack/dynamically_linked_recipes.yml +99 -0
- data/lib/image_compressor_pack/recipes.rb +42 -0
- data/lib/image_compressor_pack/statically_linked_recipes.yml +106 -0
- data/lib/image_compressor_pack/version.rb +3 -0
- data/lib/image_compressor_pack.rb +24 -0
- data/ports/advancecomp-1.2-i686-linux-gnu.installed +0 -0
- data/ports/archives/2.1.1.tar.gz +0 -0
- data/ports/archives/2.7.1.tar.gz +0 -0
- data/ports/archives/advancecomp-1.20.tar.gz +0 -0
- data/ports/archives/gifsicle-1.88.tar.gz +0 -0
- data/ports/archives/jhead-3.00.tar.gz +0 -0
- data/ports/archives/jpegoptim-1.4.3.tar.gz +0 -0
- data/ports/archives/lcms2-2.7.tar.gz +0 -0
- data/ports/archives/libpng-1.6.21.tar.gz +0 -0
- data/ports/archives/mozjpeg-3.1-release-source.tar.gz +0 -0
- data/ports/archives/nasm-2.12.01.tar.gz +0 -0
- data/ports/archives/optipng-0.7.6.tar.gz +0 -0
- data/ports/archives/pngcrush-1.8.1.tar.gz +0 -0
- data/ports/archives/zlib-1.2.8.tar.gz +0 -0
- data/ports/gifsicle-1.88-i686-linux-gnu.installed +0 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/bin/advdef +0 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/bin/advmng +0 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/bin/advpng +0 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/bin/advzip +0 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/share/man/man1/advdef.1 +83 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/share/man/man1/advmng.1 +197 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/share/man/man1/advpng.1 +93 -0
- data/ports/i686-linux-gnu/advancecomp/1.2/share/man/man1/advzip.1 +116 -0
- data/ports/i686-linux-gnu/gifsicle/1.88/bin/gifsicle +0 -0
- data/ports/i686-linux-gnu/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
- data/ports/i686-linux-gnu/jhead/3.0/bin/jhead +0 -0
- data/ports/i686-linux-gnu/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
- data/ports/i686-linux-gnu/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
- data/ports/i686-linux-gnu/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
- data/ports/i686-linux-gnu/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
- data/ports/i686-linux-gnu/jpegoptim/1.4.3/bin/jpegoptim +0 -0
- data/ports/i686-linux-gnu/jpegoptim/1.4.3/share/man/man1/jpegoptim.1 +186 -0
- data/ports/i686-linux-gnu/lcms2/2.7/bin/linkicc +0 -0
- data/ports/i686-linux-gnu/lcms2/2.7/bin/psicc +0 -0
- data/ports/i686-linux-gnu/lcms2/2.7/bin/transicc +0 -0
- data/ports/i686-linux-gnu/lcms2/2.7/include/lcms2.h +1889 -0
- data/ports/i686-linux-gnu/lcms2/2.7/include/lcms2_plugin.h +637 -0
- data/ports/i686-linux-gnu/lcms2/2.7/lib/liblcms2.a +0 -0
- data/ports/i686-linux-gnu/lcms2/2.7/lib/liblcms2.la +41 -0
- data/ports/i686-linux-gnu/lcms2/2.7/lib/pkgconfig/lcms2.pc +11 -0
- data/ports/i686-linux-gnu/lcms2/2.7/share/man/man1/jpgicc.1 +122 -0
- data/ports/i686-linux-gnu/lcms2/2.7/share/man/man1/tificc.1 +117 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/include/libpng16/png.h +3130 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/include/libpng16/pngconf.h +622 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/include/libpng16/pnglibconf.h +212 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/include/png.h +1 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/include/pngconf.h +1 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/include/pnglibconf.h +1 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/lib/libpng.a +1 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/lib/libpng.la +1 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/lib/libpng16.a +0 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/lib/libpng16.la +41 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/lib/pkgconfig/libpng16.pc +11 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/share/man/man3/libpng.3 +6124 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/share/man/man3/libpngpf.3 +18 -0
- data/ports/i686-linux-gnu/libpng/1.6.21/share/man/man5/png.5 +74 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/bin/cjpeg +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/bin/djpeg +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/bin/jpegtran +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/bin/rdjpgcom +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/bin/tjbench +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/bin/wrjpgcom +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/include/jconfig.h +71 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/include/jerror.h +320 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/include/jmorecfg.h +390 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/include/jpeglib.h +1185 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/include/turbojpeg.h +1538 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/lib/libjpeg.a +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/lib/libjpeg.la +41 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/README +281 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/example.c +433 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/structure.txt +906 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/usage.txt +649 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/doc/wizard.txt +211 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
- data/ports/i686-linux-gnu/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
- data/ports/i686-linux-gnu/nasm/2.12.01/bin/nasm +0 -0
- data/ports/i686-linux-gnu/nasm/2.12.01/bin/ndisasm +0 -0
- data/ports/i686-linux-gnu/nasm/2.12.01/share/man/man1/nasm.1 +429 -0
- data/ports/i686-linux-gnu/nasm/2.12.01/share/man/man1/ndisasm.1 +120 -0
- data/ports/i686-linux-gnu/optipng/0.7.6/bin/optipng +0 -0
- data/ports/i686-linux-gnu/optipng/0.7.6/man/man1/optipng.1 +343 -0
- data/ports/i686-linux-gnu/pngcrush/1.8.1/bin/pngcrush +0 -0
- data/ports/i686-linux-gnu/pngquant/2.7.1/bin/pngquant +0 -0
- data/ports/i686-linux-gnu/pngquant/2.7.1/share/man/man1/pngquant.1 +127 -0
- data/ports/i686-linux-gnu/zlib/1.2.8/include/zconf.h +511 -0
- data/ports/i686-linux-gnu/zlib/1.2.8/include/zlib.h +1768 -0
- data/ports/i686-linux-gnu/zlib/1.2.8/lib/libz.a +0 -0
- data/ports/i686-linux-gnu/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
- data/ports/i686-linux-gnu/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
- data/ports/jhead-3.0-i686-linux-gnu.installed +0 -0
- data/ports/jpeg-archive-2.1.1-i686-linux-gnu.installed +0 -0
- data/ports/jpegoptim-1.4.3-i686-linux-gnu.installed +0 -0
- data/ports/lcms2-2.7-i686-linux-gnu.installed +0 -0
- data/ports/libpng-1.6.21-i686-linux-gnu.installed +0 -0
- data/ports/mozjpeg-3.1-i686-linux-gnu.installed +0 -0
- data/ports/nasm-2.12.01-i686-linux-gnu.installed +0 -0
- data/ports/optipng-0.7.6-i686-linux-gnu.installed +0 -0
- data/ports/pngcrush-1.8.1-i686-linux-gnu.installed +0 -0
- data/ports/pngquant-2.7.1-i686-linux-gnu.installed +0 -0
- data/ports/zlib-1.2.8-i686-linux-gnu.installed +0 -0
- data.tar.gz.sig +0 -0
- metadata +264 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6d10017b467c9559893b355ec7a3fdc4cb764448
|
4
|
+
data.tar.gz: ae546cdfc6be9e118f0d1ebc471e5320a38e2e23
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 330dc1651a24f092582b0b50a81290aae5c1d3f40138480e564a5eaa0ba505c64e0c7805c9196c1574a3a2676c12f0b6933cd400f16d744c4b53df3112595e79
|
7
|
+
data.tar.gz: f436664fe92e1ef4d0006cb51dff3fbf05af332de58fd74fe99affb6fd288a94df60da674f6dbcbdc7734630851fd1db87a13fe29555078be0636d336fe32c81
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
T�6�M{.N��o0�"q͵V�s%�fqQX��a�ɛ;���Ha��l.��c�����S`�3m��C�T;~̖���Щ�m[AíĿ�rcYdQ�J\z��8�%ô�x�E����>����<D��l�%a��Ŋkҵա�I�T4ۮ�>Qki�Q�rO��G��2�8�s���D��h���?�(v��2��KJL��(�g�.d����MUL�4�6=K�ԥ��pg1'����f��5��E�h0��XK�������7YT:�d_0�?�0�*OA\[� '���u��e]�<ټ���xڀA�ѱ2m;v��"e���(|��]j����&g��L��v�������p"���΄������bҴN�E���w9�UqC�G��-A\�T~A�sU�����T���K~a���K�����wc���D��|�R�T�ť�o) Ks+���=��TOdԽ�70���1]{g~���+����V8-+�l��f�Y�;׳��N�r��X
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015-2016 Petko Bordjukov
|
4
|
+
Copyright (c) 2014-2016 Ivan Kuchin
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
data/lib/.paths.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
- ports/i686-linux-gnu/lcms2/2.7/bin
|
3
|
+
- ports/i686-linux-gnu/pngquant/2.7.1/bin
|
4
|
+
- ports/i686-linux-gnu/jpeg-archive/2.1.1/bin
|
5
|
+
- ports/i686-linux-gnu/optipng/0.7.6/bin
|
6
|
+
- ports/i686-linux-gnu/pngcrush/1.8.1/bin
|
7
|
+
- ports/i686-linux-gnu/mozjpeg/3.1/bin
|
8
|
+
- ports/i686-linux-gnu/nasm/2.12.01/bin
|
9
|
+
- ports/i686-linux-gnu/advancecomp/1.2/bin
|
10
|
+
- ports/i686-linux-gnu/jhead/3.0/bin
|
11
|
+
- ports/i686-linux-gnu/jpegoptim/1.4.3/bin
|
12
|
+
- ports/i686-linux-gnu/gifsicle/1.88/bin
|
@@ -0,0 +1,99 @@
|
|
1
|
+
nasm:
|
2
|
+
version: 2.12.01
|
3
|
+
files:
|
4
|
+
- :url: http://www.nasm.us/pub/nasm/releasebuilds/2.12.01/nasm-2.12.01.tar.gz
|
5
|
+
:sha256: 4cab94c041ae85740b47d92d0a25dd2325f05b2378dcf6fac4d09c49c62ee481
|
6
|
+
zlib:
|
7
|
+
version: 1.2.8
|
8
|
+
files:
|
9
|
+
- :url: http://download.sourceforge.net/libpng/zlib-1.2.8.tar.gz
|
10
|
+
:md5: 44d667c142d7cda120332623eab69f40
|
11
|
+
configure_options: ['--static']
|
12
|
+
lcms2:
|
13
|
+
version: 2.7
|
14
|
+
files:
|
15
|
+
- :url: http://download.sourceforge.net/lcms/lcms2-2.7.tar.gz
|
16
|
+
:sha256: 4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53
|
17
|
+
libpng:
|
18
|
+
version: 1.6.21
|
19
|
+
files:
|
20
|
+
- :url: http://download.sourceforge.net/libpng/libpng-1.6.21.tar.gz
|
21
|
+
:md5: aca36ec8e0a3b406a5912243bc243717
|
22
|
+
patch_files:
|
23
|
+
- 0001-Do-not-build-binary-utilities.patch
|
24
|
+
configure_options: ['--enable-static', '--disable-shared', '--without-binconfigs', '--disable-unversioned-libpng-pc', '--disable-unversioned-libpng-config']
|
25
|
+
mozjpeg:
|
26
|
+
version: 3.1
|
27
|
+
files:
|
28
|
+
- :url: https://github.com/mozilla/mozjpeg/releases/download/v3.1/mozjpeg-3.1-release-source.tar.gz
|
29
|
+
:sha256: deedd88342c5da219f0047d9a290cd58eebe1b7a513564fcd8ebc49670077a1f
|
30
|
+
patch_files:
|
31
|
+
- 0002-Fix-x86-64-ABI-conformance-issue-in-SIMD-code-descri.patch
|
32
|
+
configure_options: ['--enable-static', '--disable-shared', '--with-jpeg8']
|
33
|
+
optipng:
|
34
|
+
version: 0.7.6
|
35
|
+
files:
|
36
|
+
- :url: http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.6/optipng-0.7.6.tar.gz
|
37
|
+
:sha256: 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
|
38
|
+
configure_options: ['-with-system-libs']
|
39
|
+
pngquant:
|
40
|
+
version: 2.7.1
|
41
|
+
files:
|
42
|
+
- :url: https://github.com/pornel/pngquant/archive/2.7.1.tar.gz
|
43
|
+
:sha256: e8645bea07ef255c102f053d3566ac00e64005aa0e68a2c9f00bc39e575f1dfd
|
44
|
+
patch_files:
|
45
|
+
- 0001-Work-around-mini-portile-s-configure-invocation.patch
|
46
|
+
- 0002-Add-default-LDFLAGS.patch
|
47
|
+
- 0003-Disable-libpng-check.patch
|
48
|
+
- 0004-Remove-libz-check.patch
|
49
|
+
- 0005-Remove-lcms2-check.patch
|
50
|
+
- 0006-Do-not-build-static-binary.patch
|
51
|
+
- 0007-Use-cc-instead-of-gcc-by-default.patch
|
52
|
+
configure_options: []
|
53
|
+
advancecomp:
|
54
|
+
version: 1.20
|
55
|
+
files:
|
56
|
+
- :url: https://github.com/amadvance/advancecomp/releases/download/v1.20/advancecomp-1.20.tar.gz
|
57
|
+
:sha256: 590a447cfc7ab3a37ec707e13967a0046a81a888c561ebaff5415b1e946da67b
|
58
|
+
gifsicle:
|
59
|
+
version: 1.88
|
60
|
+
files:
|
61
|
+
- :url: https://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz
|
62
|
+
:sha256: 4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be
|
63
|
+
configure_options: ['--without-x', '--disable-gifdiff']
|
64
|
+
jhead:
|
65
|
+
version: 3.00
|
66
|
+
files:
|
67
|
+
- :url: http://sentex.net/%7Emwandel/jhead/jhead-3.00.tar.gz
|
68
|
+
:sha256: 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e
|
69
|
+
patch_files:
|
70
|
+
- 0001-Add-a-configure-shim.patch
|
71
|
+
- 0002-Specify-a-default-DESTDIR.patch
|
72
|
+
- 0003-Make-the-configure-script-set-the-DESTDIR.patch
|
73
|
+
- 0004-Make-the-makefile-install-to-the-proper-location.patch
|
74
|
+
pngcrush:
|
75
|
+
version: 1.8.1
|
76
|
+
files:
|
77
|
+
- :url: http://downloads.sourceforge.net/project/pmt/pngcrush/1.8.1/pngcrush-1.8.1.tar.gz
|
78
|
+
:sha256: ab299feb0dd77d2e84a043cf773302ad6323733d9b82e8ce76468dd024c0ad63
|
79
|
+
patch_files:
|
80
|
+
- 0001-Add-an-install-task.patch
|
81
|
+
- 0002-Add-a-configure-script.patch
|
82
|
+
- 0003-Use-cc-by-default-instead-of-gcc.patch
|
83
|
+
jpegoptim:
|
84
|
+
version: 1.4.3
|
85
|
+
files:
|
86
|
+
- :url: http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
|
87
|
+
:sha256: 233d4ae09273cb977e162671f4767be7ef5d96e8c1888d3ed4aa70c4dac1a34c
|
88
|
+
patch_files:
|
89
|
+
- 0001-Link-lm-after-ljpeg.patch
|
90
|
+
jpeg-archive:
|
91
|
+
version: 2.1.1
|
92
|
+
files:
|
93
|
+
- :url: https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz
|
94
|
+
:sha256: 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
|
95
|
+
patch_files:
|
96
|
+
- 0001-Add-a-rudimentary-configure-script.patch
|
97
|
+
- 0002-Use-our-mozjpeg.patch
|
98
|
+
- 0003-Use-cc-instead-of-gcc-by-default.patch
|
99
|
+
configure_options: []
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'mini_portile2'
|
2
|
+
require 'yaml'
|
3
|
+
require 'rbconfig'
|
4
|
+
|
5
|
+
module ImageCompressorPack
|
6
|
+
def self.recipes
|
7
|
+
unless RbConfig::CONFIG['target_os'] =~ /darwin/
|
8
|
+
statically_linked_recipes
|
9
|
+
else
|
10
|
+
dynamically_linked_recipes
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.statically_linked_recipes
|
15
|
+
parse_recipes File.expand_path('../statically_linked_recipes.yml', __FILE__)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.dynamically_linked_recipes
|
19
|
+
parse_recipes File.expand_path('../dynamically_linked_recipes.yml', __FILE__)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.parse_recipes(file)
|
23
|
+
recipes = YAML.load_file(file)
|
24
|
+
|
25
|
+
recipes.map do |name, parameters|
|
26
|
+
MiniPortile.new(name, parameters['version']).tap do |recipe|
|
27
|
+
recipe.files = parameters['files']
|
28
|
+
recipe.target = if parameters['target'].nil?
|
29
|
+
File.expand_path('../../../ports', __FILE__)
|
30
|
+
else
|
31
|
+
parameters['target']
|
32
|
+
end
|
33
|
+
unless parameters['patch_files'].nil?
|
34
|
+
recipe.patch_files = parameters['patch_files'].map do |patch|
|
35
|
+
File.expand_path("../../../ports/patches/#{name}/#{patch}", __FILE__)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
recipe.configure_options = parameters['configure_options'] unless parameters['configure_options'].nil?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
nasm:
|
2
|
+
version: 2.12.01
|
3
|
+
files:
|
4
|
+
- :url: http://www.nasm.us/pub/nasm/releasebuilds/2.12.01/nasm-2.12.01.tar.gz
|
5
|
+
:sha256: 4cab94c041ae85740b47d92d0a25dd2325f05b2378dcf6fac4d09c49c62ee481
|
6
|
+
configure_options: ['LDFLAGS=-static']
|
7
|
+
zlib:
|
8
|
+
version: 1.2.8
|
9
|
+
files:
|
10
|
+
- :url: http://download.sourceforge.net/libpng/zlib-1.2.8.tar.gz
|
11
|
+
:md5: 44d667c142d7cda120332623eab69f40
|
12
|
+
configure_options: ['--static']
|
13
|
+
lcms2:
|
14
|
+
version: 2.7
|
15
|
+
files:
|
16
|
+
- :url: http://download.sourceforge.net/lcms/lcms2-2.7.tar.gz
|
17
|
+
:sha256: 4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53
|
18
|
+
libpng:
|
19
|
+
version: 1.6.21
|
20
|
+
files:
|
21
|
+
- :url: http://download.sourceforge.net/libpng/libpng-1.6.21.tar.gz
|
22
|
+
:md5: aca36ec8e0a3b406a5912243bc243717
|
23
|
+
patch_files:
|
24
|
+
- 0001-Do-not-build-binary-utilities.patch
|
25
|
+
configure_options: ['--enable-static', '--disable-shared', '--without-binconfigs', '--disable-unversioned-libpng-pc', '--disable-unversioned-libpng-config']
|
26
|
+
mozjpeg:
|
27
|
+
version: 3.1
|
28
|
+
files:
|
29
|
+
- :url: https://github.com/mozilla/mozjpeg/releases/download/v3.1/mozjpeg-3.1-release-source.tar.gz
|
30
|
+
:sha256: deedd88342c5da219f0047d9a290cd58eebe1b7a513564fcd8ebc49670077a1f
|
31
|
+
configure_options: ['--enable-static', '--disable-shared', 'libpng_LIBS=-lpng\ -lz', '--with-jpeg8']
|
32
|
+
patch_files:
|
33
|
+
- 0001-Build-static-binaries.patch
|
34
|
+
- 0002-Fix-x86-64-ABI-conformance-issue-in-SIMD-code-descri.patch
|
35
|
+
optipng:
|
36
|
+
version: 0.7.6
|
37
|
+
files:
|
38
|
+
- :url: http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.6/optipng-0.7.6.tar.gz
|
39
|
+
:sha256: 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
|
40
|
+
configure_options: ['-with-system-libs', 'LDFLAGS=-static']
|
41
|
+
patch_files:
|
42
|
+
- 0001-Allow-passing-LDFLAGS-as-configure-arg.patch
|
43
|
+
pngquant:
|
44
|
+
version: 2.7.1
|
45
|
+
files:
|
46
|
+
- :url: https://github.com/pornel/pngquant/archive/2.7.1.tar.gz
|
47
|
+
:sha256: e8645bea07ef255c102f053d3566ac00e64005aa0e68a2c9f00bc39e575f1dfd
|
48
|
+
patch_files:
|
49
|
+
- 0001-Work-around-mini-portile-s-configure-invocation.patch
|
50
|
+
- 0002-Add-default-LDFLAGS.patch
|
51
|
+
- 0003-Disable-libpng-check.patch
|
52
|
+
- 0004-Remove-libz-check.patch
|
53
|
+
- 0005-Remove-lcms2-check.patch
|
54
|
+
- 0007-Use-cc-instead-of-gcc-by-default.patch
|
55
|
+
configure_options: ['--extra-ldflags=-lpng']
|
56
|
+
advancecomp:
|
57
|
+
version: 1.20
|
58
|
+
files:
|
59
|
+
- :url: https://github.com/amadvance/advancecomp/releases/download/v1.20/advancecomp-1.20.tar.gz
|
60
|
+
:sha256: 590a447cfc7ab3a37ec707e13967a0046a81a888c561ebaff5415b1e946da67b
|
61
|
+
configure_options: ['LDFLAGS=-static']
|
62
|
+
gifsicle:
|
63
|
+
version: 1.88
|
64
|
+
files:
|
65
|
+
- :url: https://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz
|
66
|
+
:sha256: 4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be
|
67
|
+
configure_options: ['--without-x', '--disable-gifdiff', 'LDFLAGS=-static']
|
68
|
+
jhead:
|
69
|
+
version: 3.00
|
70
|
+
files:
|
71
|
+
- :url: http://sentex.net/%7Emwandel/jhead/jhead-3.00.tar.gz
|
72
|
+
:sha256: 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e
|
73
|
+
patch_files:
|
74
|
+
- 0001-Add-a-configure-shim.patch
|
75
|
+
- 0002-Specify-a-default-DESTDIR.patch
|
76
|
+
- 0003-Make-the-configure-script-set-the-DESTDIR.patch
|
77
|
+
- 0004-Make-the-makefile-install-to-the-proper-location.patch
|
78
|
+
- 0005-Produce-a-static-binary.patch
|
79
|
+
pngcrush:
|
80
|
+
version: 1.8.1
|
81
|
+
files:
|
82
|
+
- :url: http://downloads.sourceforge.net/project/pmt/pngcrush/1.8.1/pngcrush-1.8.1.tar.gz
|
83
|
+
:sha256: ab299feb0dd77d2e84a043cf773302ad6323733d9b82e8ce76468dd024c0ad63
|
84
|
+
patch_files:
|
85
|
+
- 0001-Add-an-install-task.patch
|
86
|
+
- 0002-Add-a-configure-script.patch
|
87
|
+
- 0003-Use-cc-by-default-instead-of-gcc.patch
|
88
|
+
- 0004-Produce-a-static-binary.patch
|
89
|
+
jpegoptim:
|
90
|
+
version: 1.4.3
|
91
|
+
files:
|
92
|
+
- :url: http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
|
93
|
+
:sha256: 233d4ae09273cb977e162671f4767be7ef5d96e8c1888d3ed4aa70c4dac1a34c
|
94
|
+
patch_files:
|
95
|
+
- 0001-Link-lm-after-ljpeg.patch
|
96
|
+
configure_options: ['LDFLAGS=-static']
|
97
|
+
jpeg-archive:
|
98
|
+
version: 2.1.1
|
99
|
+
files:
|
100
|
+
- :url: https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz
|
101
|
+
:sha256: 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
|
102
|
+
patch_files:
|
103
|
+
- 0001-Add-a-rudimentary-configure-script.patch
|
104
|
+
- 0002-Use-our-mozjpeg.patch
|
105
|
+
- 0003-Use-cc-instead-of-gcc-by-default.patch
|
106
|
+
configure_options: ['--ldflags=-static']
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'image_compressor_pack/recipes'
|
2
|
+
require 'image_compressor_pack/version'
|
3
|
+
|
4
|
+
module ImageCompressorPack
|
5
|
+
def self.paths
|
6
|
+
root = File.expand_path("../../", __FILE__)
|
7
|
+
relative_paths = YAML.load_file File.expand_path('../.paths.yml', __FILE__)
|
8
|
+
relative_paths.map { |path| File.join root, path }
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.activate
|
12
|
+
paths.each do |path|
|
13
|
+
path.gsub!(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR
|
14
|
+
|
15
|
+
old_value = ENV['PATH'] || ''
|
16
|
+
|
17
|
+
unless old_value.include?(path)
|
18
|
+
ENV['PATH'] = "#{path}#{File::PATH_SEPARATOR}#{old_value}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
ImageCompressorPack.activate
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,83 @@
|
|
1
|
+
.TH "AdvanceCOMP Deflate Compression Utility" 1
|
2
|
+
.SH NAME
|
3
|
+
advdef \- AdvanceCOMP Deflate Compression Utility
|
4
|
+
.SH SYNOPSIS
|
5
|
+
advdef [\-z, \-\-recompress] [\-0, \-\-shrink\-store]
|
6
|
+
.PD 0
|
7
|
+
.PP
|
8
|
+
.PD
|
9
|
+
[\-1, \-\-shrink\-fast] [\-2, \-\-shrink\-normal] [\-3, \-\-shrink\-extra]
|
10
|
+
.PD 0
|
11
|
+
.PP
|
12
|
+
.PD
|
13
|
+
[\-4, \-\-shrink\-insane] [\-i, \-\-iter N]
|
14
|
+
.PD 0
|
15
|
+
.PP
|
16
|
+
.PD
|
17
|
+
[\-f, \-\-force] [\-q, \-\-quiet]
|
18
|
+
.PD 0
|
19
|
+
.PP
|
20
|
+
.PD
|
21
|
+
[\-h, \-\-help] [\-V, \-\-version] FILES...
|
22
|
+
.PD 0
|
23
|
+
.PP
|
24
|
+
.PD
|
25
|
+
.SH DESCRIPTION
|
26
|
+
The main purpose of this utility is to recompress the
|
27
|
+
data present in the .png, .mng, .gz, .tgz and .svgz
|
28
|
+
files.
|
29
|
+
.PP
|
30
|
+
The internal structure of the files isn\'t changed.
|
31
|
+
Only the compressed data is modified.
|
32
|
+
.SH OPTIONS
|
33
|
+
.TP
|
34
|
+
.B \-z, \-\-recompress FILES...
|
35
|
+
Recompress the specified files. If the \-1, \-2, \-3, \-4
|
36
|
+
options are specified it\'s used the smallest file
|
37
|
+
choice from the previous compressed data and the
|
38
|
+
new compression. If the \-0 option is specified the
|
39
|
+
file is always rewritten without any compression.
|
40
|
+
.TP
|
41
|
+
.B \-0, \-\-shrink\-store
|
42
|
+
Disable the compression. The file is
|
43
|
+
only stored and not compressed. The file is always
|
44
|
+
rewritten also if it\'s bigger.
|
45
|
+
.TP
|
46
|
+
.B \-1, \-\-shrink\-fast
|
47
|
+
Set the compression level to \[dq]fast\[dq] using the zlib
|
48
|
+
compressor.
|
49
|
+
.TP
|
50
|
+
.B \-2, \-\-shrink\-normal
|
51
|
+
Set the compression level to \[dq]normal\[dq] using the 7z
|
52
|
+
compressor.
|
53
|
+
This is the default level of compression.
|
54
|
+
.TP
|
55
|
+
.B \-3, \-\-shrink\-extra
|
56
|
+
Set the compression level to \[dq]extra\[dq] using the 7z
|
57
|
+
compressor.
|
58
|
+
You can define the compressor iterations with
|
59
|
+
the \-i, \-\-iter option.
|
60
|
+
.TP
|
61
|
+
.B \-4, \-\-shrink\-insane
|
62
|
+
Set the compression level to \[dq]insane\[dq] using the zopfli
|
63
|
+
compressor.
|
64
|
+
You can define the compressor iterations with
|
65
|
+
the \-i, \-\-iter option.
|
66
|
+
.TP
|
67
|
+
.B \-i, \-\-iter N
|
68
|
+
Define an additional numer of iterations for the 7z and zopfli
|
69
|
+
compressors for modes \-3 and \-4.
|
70
|
+
More iterations usually give a better compression, but may
|
71
|
+
require a lot more time.
|
72
|
+
Try for example with 10, 15, 20, and so on.
|
73
|
+
.TP
|
74
|
+
.B \-f, \-\-force
|
75
|
+
Force the use of the new file also if it\'s bigger.
|
76
|
+
.SH LIMITATIONS
|
77
|
+
The advdef program cannot be used to recompress huge files
|
78
|
+
because it needs to allocate memory for both the complete
|
79
|
+
compressed and uncompressed data.
|
80
|
+
.SH COPYRIGHT
|
81
|
+
This file is Copyright (C) 2003, 2004 Andrea Mazzoleni
|
82
|
+
.SH SEE ALSO
|
83
|
+
advpng(1), advmng(1), advzip(1), gzip(1), bzip2(1)
|
@@ -0,0 +1,197 @@
|
|
1
|
+
.TH "AdvanceCOMP MNG Compression Utility" 1
|
2
|
+
.SH NAME
|
3
|
+
advmng \- AdvanceCOMP MNG Compression Utility
|
4
|
+
.SH SYNOPSIS
|
5
|
+
advmng [\-l, \-\-list] [\-z, \-\-recompress]
|
6
|
+
.PD 0
|
7
|
+
.PP
|
8
|
+
.PD
|
9
|
+
[\-x, \-\-extract] [\-a, \-\-add RATE MNG_FILE PNG_FILES...]
|
10
|
+
.PD 0
|
11
|
+
.PP
|
12
|
+
.PD
|
13
|
+
[\-0, \-\-shrink\-store] [\-1, \-\-shrink\-fast] [\-2, \-\-shrink\-normal]
|
14
|
+
.PD 0
|
15
|
+
.PP
|
16
|
+
.PD
|
17
|
+
[\-3, \-\-shrink\-extra] [\-4, \-\-shrink\-insane] [\-i, \-\-iter N]
|
18
|
+
.PD 0
|
19
|
+
.PP
|
20
|
+
.PD
|
21
|
+
[\-s, \-\-scroll HxV] [\-S, \-\-scroll\-square]
|
22
|
+
.PD 0
|
23
|
+
.PP
|
24
|
+
.PD
|
25
|
+
[\-e, \-\-expand] [\-r, \-\-reduce]
|
26
|
+
.PD 0
|
27
|
+
.PP
|
28
|
+
.PD
|
29
|
+
[\-c, \-\-lc] [\-C, \-\-vlc] [\-f, \-\-force] [\-q, \-\-quiet] [\-v, \-\-verbose]
|
30
|
+
.PD 0
|
31
|
+
.PP
|
32
|
+
.PD
|
33
|
+
[\-h, \-\-help] [\-V, \-\-version] FILES...
|
34
|
+
.PD 0
|
35
|
+
.PP
|
36
|
+
.PD
|
37
|
+
.SH DESCRIPTION
|
38
|
+
The main purpose of this utility is to recompress MNG
|
39
|
+
files to get the smallest possible size.
|
40
|
+
.PP
|
41
|
+
Please note that this utility is not able to read
|
42
|
+
a generic file. It\'s granted to be able to read only
|
43
|
+
the files generated by the AdvanceMAME emulator.
|
44
|
+
.PP
|
45
|
+
To compress the files this utility uses the following
|
46
|
+
strategies:
|
47
|
+
.PD 0
|
48
|
+
.IP \(bu
|
49
|
+
Remove all ancillary chunks.
|
50
|
+
.IP \(bu
|
51
|
+
Use the MNG Delta feature to compress video clips with
|
52
|
+
only small changes between frames.
|
53
|
+
.IP \(bu
|
54
|
+
Use the MNG Move feature to compress video clips with
|
55
|
+
a scrolling background (option \-s).
|
56
|
+
.IP \(bu
|
57
|
+
Reduce the color depth to 8 bit (option \-r).
|
58
|
+
.IP \(bu
|
59
|
+
Use the 7zip Deflate implementation.
|
60
|
+
.PD
|
61
|
+
.SH COMMANDS
|
62
|
+
.TP
|
63
|
+
.B \-l, \-\-list FILES...
|
64
|
+
List the content of the specified files.
|
65
|
+
.TP
|
66
|
+
.B \-z, \-\-recompress FILES...
|
67
|
+
Recompress the specified files. If the \-1, \-2, \-3
|
68
|
+
options are specified, it\'s used the smallest file
|
69
|
+
choice from the previous compressed data and the
|
70
|
+
new compression. If the \-0 option is specified the
|
71
|
+
file is always rewritten without any compression.
|
72
|
+
.TP
|
73
|
+
.B \-x, \-\-extract FILES...
|
74
|
+
Extract all the .png frames in the .mng clips.
|
75
|
+
You can use the \-\-shrink options to control the
|
76
|
+
compression ratio of the .png files. The extracted
|
77
|
+
images are always 24 bit images with alpha channel.
|
78
|
+
You can remove the alpha channel with the \-n option.
|
79
|
+
.TP
|
80
|
+
.B \-a, \-\-add RATE MNG_FILE PNG_FILES...
|
81
|
+
Compress all the .png files on the command line
|
82
|
+
as a .mng file. All the .png files must have the
|
83
|
+
same size and the same bit depth. You must also
|
84
|
+
specify an integer frame rate to use in the
|
85
|
+
.mng file.
|
86
|
+
.SH OPTIONS
|
87
|
+
.TP
|
88
|
+
.B \-0, \-\-shrink\-store
|
89
|
+
Disable the compression. The file is
|
90
|
+
only stored and not compressed. The file is always
|
91
|
+
rewritten also if it\'s bigger.
|
92
|
+
.TP
|
93
|
+
.B \-1, \-\-shrink\-fast
|
94
|
+
Set the compression level to \[dq]fast\[dq] using the zlib
|
95
|
+
compressor.
|
96
|
+
.TP
|
97
|
+
.B \-2, \-\-shrink\-normal
|
98
|
+
Set the compression level to \[dq]normal\[dq] using the 7z
|
99
|
+
compressor.
|
100
|
+
This is the default level of compression.
|
101
|
+
.TP
|
102
|
+
.B \-3, \-\-shrink\-extra
|
103
|
+
Set the compression level to \[dq]extra\[dq] using the 7z
|
104
|
+
compressor.
|
105
|
+
You can define the compressor iterations with
|
106
|
+
the \-i, \-\-iter option.
|
107
|
+
.TP
|
108
|
+
.B \-4, \-\-shrink\-insane
|
109
|
+
Set the compression level to \[dq]insane\[dq] using the zopfli
|
110
|
+
compressor.
|
111
|
+
You can define the compressor iterations with
|
112
|
+
the \-i, \-\-iter option.
|
113
|
+
.TP
|
114
|
+
.B \-i, \-\-iter N
|
115
|
+
Define an additional numer of iterations for the 7z and zopfli
|
116
|
+
compressors for modes \-3 and \-4.
|
117
|
+
More iterations usually give a better compression, but may
|
118
|
+
require a lot more time.
|
119
|
+
Try for example with 10, 15, 20, and so on.
|
120
|
+
.TP
|
121
|
+
.B \-s, \-\-scroll HxV
|
122
|
+
The \[dq]\-s HxV\[dq] option specifies the size of the pattern
|
123
|
+
(H width x V height) used to check for a
|
124
|
+
scrolling background. The size is expressed in
|
125
|
+
pixels and it must be bigger or equal than the
|
126
|
+
scrolling speed of the background. For example
|
127
|
+
take the game 1942 that scrolls vertically by 1
|
128
|
+
pixel every frame. If you recorded with an interleave
|
129
|
+
factor of 2 the vertical scrolling speed is
|
130
|
+
1*2 = 2. In this case the minimum pattern is \[dq]\-s 0x2\[dq].
|
131
|
+
Generally you can use \[dq]\-s 8x8\[dq] and use bigger
|
132
|
+
values only for games scrolling faster. If the
|
133
|
+
game scrolls only horizontally or vertically you can
|
134
|
+
speed up a lot the compression with monodirectional
|
135
|
+
patterns like \[dq]\-s 16x0\[dq] or \[dq]\-s 0x16\[dq].
|
136
|
+
.TP
|
137
|
+
.B \-S, \-\-scroll\-square N
|
138
|
+
This option is like the option \[dq]\-s NxN\[dq] but excludes
|
139
|
+
big movement on both directions reducing the computation
|
140
|
+
time. Specifically the check done is X+Y<=N.
|
141
|
+
.TP
|
142
|
+
.B \-r, \-\-reduce
|
143
|
+
Force the color reduction to 8 bit. The reduction is
|
144
|
+
really done only if any frame have less than 256 colors
|
145
|
+
and if no alpha channel is present. To force the reduction
|
146
|
+
also if an alpha channel is present use the \-n option.
|
147
|
+
.TP
|
148
|
+
.B \-e, \-\-expand
|
149
|
+
Force the color expansion to 24 bit.
|
150
|
+
.TP
|
151
|
+
.B \-n, \-\-noalpha
|
152
|
+
Remove the alpha channel if present.
|
153
|
+
.TP
|
154
|
+
.B \-c, \-\-lc
|
155
|
+
Force the use of the MNG LC (Low Complexity)
|
156
|
+
specifications. It disables the delta compression.
|
157
|
+
The file is always rewritten also if it\'s bigger.
|
158
|
+
.TP
|
159
|
+
.B \-C, \-\-vlc
|
160
|
+
Force the use of the MNG VLC (Very Low Complexity)
|
161
|
+
specifications. It disables the delta compression
|
162
|
+
and the precise timing. Warning! you may lose the
|
163
|
+
correct timing information because the VLC format
|
164
|
+
only supports integer frequency. The file is always
|
165
|
+
rewritten also if it\'s bigger.
|
166
|
+
.TP
|
167
|
+
.B \-f, \-\-force
|
168
|
+
Force the use of the new file also if it\'s bigger.
|
169
|
+
.TP
|
170
|
+
.B \-q, \-\-quiet
|
171
|
+
Don\'t print the filenames.
|
172
|
+
.TP
|
173
|
+
.B \-v, \-\-verbose
|
174
|
+
Print more information on the compression process.
|
175
|
+
.SH EXAMPLES
|
176
|
+
A good tradeoff of recompression and time is the command :
|
177
|
+
.PP
|
178
|
+
.RS 4
|
179
|
+
advmng \-z \-r \-S 16 *.mng
|
180
|
+
.RE
|
181
|
+
.PP
|
182
|
+
To create a .mng file from a series of .png files use the
|
183
|
+
command :
|
184
|
+
.PP
|
185
|
+
.RS 4
|
186
|
+
advmng \-a 30 video.mng video*.png
|
187
|
+
.RE
|
188
|
+
.PP
|
189
|
+
To extract all the images in a .mng file use the command :
|
190
|
+
.PP
|
191
|
+
.RS 4
|
192
|
+
advmng \-x video.mng
|
193
|
+
.RE
|
194
|
+
.SH COPYRIGHT
|
195
|
+
This file is Copyright (C) 2003 Andrea Mazzoleni, Filipe Estima
|
196
|
+
.SH SEE ALSO
|
197
|
+
advzip(1), advpng(1), advdef(1)
|