image_compressor_pack 0.1.3-amd64-freebsd-10
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 +0 -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-x86_64-unknown-freebsd10.3.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-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/jhead-3.0-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/jpeg-archive-2.1.1-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/jpegoptim-1.4.3-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/lcms2-2.7-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/libpng-1.6.21-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/mozjpeg-3.1-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/nasm-2.12.01-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/optipng-0.7.6-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/pngcrush-1.8.1-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/pngquant-2.7.1-x86_64-unknown-freebsd10.3.installed +0 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advdef +0 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advmng +0 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advpng +0 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advzip +0 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advdef.1 +83 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advmng.1 +197 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advpng.1 +93 -0
- data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advzip.1 +116 -0
- data/ports/x86_64-unknown-freebsd10.3/gifsicle/1.88/bin/gifsicle +0 -0
- data/ports/x86_64-unknown-freebsd10.3/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
- data/ports/x86_64-unknown-freebsd10.3/jhead/3.0/bin/jhead +0 -0
- data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
- data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
- data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
- data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
- data/ports/x86_64-unknown-freebsd10.3/jpegoptim/1.4.3/bin/jpegoptim +0 -0
- data/ports/x86_64-unknown-freebsd10.3/jpegoptim/1.4.3/share/man/man1/jpegoptim.1 +186 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin/linkicc +0 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin/psicc +0 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin/transicc +0 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/include/lcms2.h +1889 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/include/lcms2_plugin.h +637 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/lib/liblcms2.a +0 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/lib/liblcms2.la +41 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/lib/pkgconfig/lcms2.pc +11 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/share/man/man1/jpgicc.1 +122 -0
- data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/share/man/man1/tificc.1 +117 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/libpng16/png.h +3130 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/libpng16/pngconf.h +622 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/libpng16/pnglibconf.h +212 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/png.h +1 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/pngconf.h +1 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/pnglibconf.h +1 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng.a +1 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng.la +1 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng16.a +0 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng16.la +41 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/pkgconfig/libpng16.pc +11 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/share/man/man3/libpng.3 +6124 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/share/man/man3/libpngpf.3 +18 -0
- data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/share/man/man5/png.5 +74 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/cjpeg +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/djpeg +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/jpegtran +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/rdjpgcom +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/tjbench +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/wrjpgcom +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jconfig.h +71 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jerror.h +320 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jmorecfg.h +390 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jpeglib.h +1185 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/turbojpeg.h +1538 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libjpeg.a +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libjpeg.la +41 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/README +281 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/example.c +433 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/structure.txt +906 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/usage.txt +649 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/wizard.txt +211 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
- data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
- data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/bin/nasm +0 -0
- data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/bin/ndisasm +0 -0
- data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/share/man/man1/nasm.1 +429 -0
- data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/share/man/man1/ndisasm.1 +120 -0
- data/ports/x86_64-unknown-freebsd10.3/optipng/0.7.6/bin/optipng +0 -0
- data/ports/x86_64-unknown-freebsd10.3/optipng/0.7.6/man/man1/optipng.1 +343 -0
- data/ports/x86_64-unknown-freebsd10.3/pngcrush/1.8.1/bin/pngcrush +0 -0
- data/ports/x86_64-unknown-freebsd10.3/pngquant/2.7.1/bin/pngquant +0 -0
- data/ports/x86_64-unknown-freebsd10.3/pngquant/2.7.1/share/man/man1/pngquant.1 +127 -0
- data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/include/zconf.h +511 -0
- data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/include/zlib.h +1768 -0
- data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/lib/libz.a +0 -0
- data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
- data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
- data/ports/zlib-1.2.8-x86_64-unknown-freebsd10.3.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: 8707ff42d2c83d4978aedcf455fbb0f9b07cd8e3
|
4
|
+
data.tar.gz: 47463c9cec738dc3c28037100e357c8662165332
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dc28e4c348472d027be46b0bca7bd434190897b7103fdb93b843ce07fe5e94bc4e5485416392310d8e20e16b5fac4257ba19002fe8786c6a8d916a0bfae5b99e
|
7
|
+
data.tar.gz: e5395ae0b32550afe26155cd014a8e0253315a008c281f28c176adcc91c532f329fdcbccfc94c29398d8d8b9b051b956e07b554a5cafd8ec2944c40ec36d3e75
|
checksums.yaml.gz.sig
ADDED
Binary file
|
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/x86_64-unknown-freebsd10.3/nasm/2.12.01/bin
|
3
|
+
- ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin
|
4
|
+
- ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin
|
5
|
+
- ports/x86_64-unknown-freebsd10.3/optipng/0.7.6/bin
|
6
|
+
- ports/x86_64-unknown-freebsd10.3/pngquant/2.7.1/bin
|
7
|
+
- ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin
|
8
|
+
- ports/x86_64-unknown-freebsd10.3/gifsicle/1.88/bin
|
9
|
+
- ports/x86_64-unknown-freebsd10.3/jhead/3.0/bin
|
10
|
+
- ports/x86_64-unknown-freebsd10.3/pngcrush/1.8.1/bin
|
11
|
+
- ports/x86_64-unknown-freebsd10.3/jpegoptim/1.4.3/bin
|
12
|
+
- ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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)
|