image_compressor_pack 1.0.0.1-amd64-freebsd-11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/LICENSE.txt +22 -0
  4. data/lib/.paths.yml +12 -0
  5. data/lib/image_compressor_pack/dynamically_linked_recipes.yml +102 -0
  6. data/lib/image_compressor_pack/recipes.rb +42 -0
  7. data/lib/image_compressor_pack/statically_linked_recipes.yml +109 -0
  8. data/lib/image_compressor_pack/version.rb +3 -0
  9. data/lib/image_compressor_pack.rb +24 -0
  10. data/ports/advancecomp-1.22-x86_64-unknown-freebsd11.0.installed +0 -0
  11. data/ports/gifsicle-1.88-x86_64-unknown-freebsd11.0.installed +0 -0
  12. data/ports/jhead-3.0-x86_64-unknown-freebsd11.0.installed +0 -0
  13. data/ports/jpeg-archive-2.1.1-x86_64-unknown-freebsd11.0.installed +0 -0
  14. data/ports/jpegoptim-1.4.4-x86_64-unknown-freebsd11.0.installed +0 -0
  15. data/ports/lcms2-2.8-x86_64-unknown-freebsd11.0.installed +0 -0
  16. data/ports/libpng-1.6.26-x86_64-unknown-freebsd11.0.installed +0 -0
  17. data/ports/mozjpeg-3.1-x86_64-unknown-freebsd11.0.installed +0 -0
  18. data/ports/nasm-2.12.02-x86_64-unknown-freebsd11.0.installed +0 -0
  19. data/ports/optipng-0.7.6-x86_64-unknown-freebsd11.0.installed +0 -0
  20. data/ports/pngcrush-1.8.10-x86_64-unknown-freebsd11.0.installed +0 -0
  21. data/ports/pngquant-2.8.0-x86_64-unknown-freebsd11.0.installed +0 -0
  22. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advdef +0 -0
  23. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advmng +0 -0
  24. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advpng +0 -0
  25. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advzip +0 -0
  26. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advdef.1 +83 -0
  27. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advmng.1 +197 -0
  28. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advpng.1 +93 -0
  29. data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advzip.1 +116 -0
  30. data/ports/x86_64-unknown-freebsd11.0/gifsicle/1.88/bin/gifsicle +0 -0
  31. data/ports/x86_64-unknown-freebsd11.0/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
  32. data/ports/x86_64-unknown-freebsd11.0/jhead/3.0/bin/jhead +0 -0
  33. data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
  34. data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
  35. data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
  36. data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
  37. data/ports/x86_64-unknown-freebsd11.0/jpegoptim/1.4.4/bin/jpegoptim +0 -0
  38. data/ports/x86_64-unknown-freebsd11.0/jpegoptim/1.4.4/share/man/man1/jpegoptim.1 +186 -0
  39. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin/linkicc +0 -0
  40. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin/psicc +0 -0
  41. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin/transicc +0 -0
  42. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/include/lcms2.h +1903 -0
  43. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/include/lcms2_plugin.h +665 -0
  44. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/lib/liblcms2.a +0 -0
  45. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/lib/liblcms2.la +41 -0
  46. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/lib/pkgconfig/lcms2.pc +11 -0
  47. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/share/man/man1/jpgicc.1 +122 -0
  48. data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/share/man/man1/tificc.1 +117 -0
  49. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/libpng16/png.h +3266 -0
  50. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/libpng16/pngconf.h +622 -0
  51. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/libpng16/pnglibconf.h +213 -0
  52. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/png.h +1 -0
  53. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/pngconf.h +1 -0
  54. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/pnglibconf.h +1 -0
  55. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng.a +1 -0
  56. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng.la +1 -0
  57. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng16.a +0 -0
  58. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng16.la +41 -0
  59. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/pkgconfig/libpng16.pc +11 -0
  60. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/share/man/man3/libpng.3 +6179 -0
  61. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/share/man/man3/libpngpf.3 +18 -0
  62. data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/share/man/man5/png.5 +74 -0
  63. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/cjpeg +0 -0
  64. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/djpeg +0 -0
  65. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/jpegtran +0 -0
  66. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/rdjpgcom +0 -0
  67. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/tjbench +0 -0
  68. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/wrjpgcom +0 -0
  69. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jconfig.h +71 -0
  70. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jerror.h +320 -0
  71. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jmorecfg.h +390 -0
  72. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jpeglib.h +1185 -0
  73. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/turbojpeg.h +1538 -0
  74. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libjpeg.a +0 -0
  75. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libjpeg.la +41 -0
  76. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
  77. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
  78. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/README +281 -0
  79. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
  80. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
  81. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/example.c +433 -0
  82. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
  83. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/structure.txt +906 -0
  84. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/usage.txt +649 -0
  85. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/wizard.txt +211 -0
  86. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
  87. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
  88. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
  89. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
  90. data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
  91. data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/bin/nasm +0 -0
  92. data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/bin/ndisasm +0 -0
  93. data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/share/man/man1/nasm.1 +429 -0
  94. data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/share/man/man1/ndisasm.1 +120 -0
  95. data/ports/x86_64-unknown-freebsd11.0/optipng/0.7.6/bin/optipng +0 -0
  96. data/ports/x86_64-unknown-freebsd11.0/optipng/0.7.6/man/man1/optipng.1 +343 -0
  97. data/ports/x86_64-unknown-freebsd11.0/pngcrush/1.8.10/bin/pngcrush +0 -0
  98. data/ports/x86_64-unknown-freebsd11.0/pngquant/2.8.0/bin/pngquant +0 -0
  99. data/ports/x86_64-unknown-freebsd11.0/pngquant/2.8.0/share/man/man1/pngquant.1 +127 -0
  100. data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/include/zconf.h +511 -0
  101. data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/include/zlib.h +1768 -0
  102. data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/lib/libz.a +0 -0
  103. data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
  104. data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
  105. data/ports/zlib-1.2.8-x86_64-unknown-freebsd11.0.installed +0 -0
  106. data.tar.gz.sig +0 -0
  107. metadata +251 -0
  108. metadata.gz.sig +0 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 851dfc9220396295ce9b450f89f226b21276e42c
4
+ data.tar.gz: e47ef8fb7124a759e22319b940b17b881e8cefed
5
+ SHA512:
6
+ metadata.gz: aaa62352af51c6a0744d47e16a61329da558f3ab5507c68faee6697bd05bcc703d6555eca4aba75631903ca77a4c8cd5e1594ae54349e9d8ad1bca34b863ce94
7
+ data.tar.gz: c22867db0006fddbaebc66fcc0709500966604c4e02c06608db44adc31338ac8add69891fcef4f59a30e000d8ca863dbd4d46903c36fe64b9dd39c93559a4aa9
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-freebsd11.0/nasm/2.12.02/bin
3
+ - ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin
4
+ - ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin
5
+ - ports/x86_64-unknown-freebsd11.0/optipng/0.7.6/bin
6
+ - ports/x86_64-unknown-freebsd11.0/pngquant/2.8.0/bin
7
+ - ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin
8
+ - ports/x86_64-unknown-freebsd11.0/gifsicle/1.88/bin
9
+ - ports/x86_64-unknown-freebsd11.0/jhead/3.0/bin
10
+ - ports/x86_64-unknown-freebsd11.0/pngcrush/1.8.10/bin
11
+ - ports/x86_64-unknown-freebsd11.0/jpegoptim/1.4.4/bin
12
+ - ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin
@@ -0,0 +1,102 @@
1
+ nasm:
2
+ version: 2.12.02
3
+ files:
4
+ - :url: http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/nasm-2.12.02.tar.gz
5
+ :sha256: b7346d827b282ccf70608fe90b9bcf27effb1ddbd1bcba8a5ab4be95284fd01b
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.8
14
+ files:
15
+ - :url: http://downloads.sourceforge.net/project/lcms/lcms/2.8/lcms2-2.8.tar.gz
16
+ :sha256: 66d02b229d2ea9474e62c2b6cd6720fde946155cd1d0d2bffdab829790a0fb22
17
+ configure_options: ['--enable-static', '--disable-shared', '--without-jpeg', '--without-tiff']
18
+ libpng:
19
+ version: 1.6.26
20
+ files:
21
+ - :url: http://downloads.sourceforge.net/project/libpng/libpng16/1.6.26/libpng-1.6.26.tar.gz
22
+ :md5: 236cd975520fc1f34cc0b8f0e615f7a0
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
+ patch_files:
32
+ - 0002-Fix-x86-64-ABI-conformance-issue-in-SIMD-code-descri.patch
33
+ configure_options: ['--enable-static', '--disable-shared', '--with-jpeg8']
34
+ optipng:
35
+ version: 0.7.6
36
+ files:
37
+ - :url: http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.6/optipng-0.7.6.tar.gz
38
+ :sha256: 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
39
+ configure_options: ['-with-system-libs']
40
+ pngquant:
41
+ version: 2.8.0
42
+ files:
43
+ - :url: https://pngquant.org/pngquant-2.8.0-src.tar.gz
44
+ :sha1: f4428793dbc439a12bc67c7a585aa2fb9b86b349
45
+ patch_files:
46
+ - 0001-Work-around-mini-portile-s-configure-invocation.patch
47
+ - 0002-Add-default-LDFLAGS.patch
48
+ - 0003-Disable-libpng-check.patch
49
+ - 0004-Remove-libz-check.patch
50
+ - 0005-Remove-lcms2-check.patch
51
+ - 0006-Do-not-build-static-binary.patch
52
+ - 0007-Use-cc-instead-of-gcc-by-default.patch
53
+ configure_options: []
54
+ advancecomp:
55
+ version: 1.22
56
+ files:
57
+ - :url: https://github.com/amadvance/advancecomp/releases/download/v1.22/advancecomp-1.22.tar.gz
58
+ :sha256: 31dec84049b919176d14070b8e6f97e086a0ddcd24ff1b83cf498245ece6607d
59
+ patch_files:
60
+ - 0001-Add-missing-libdeflate-header-file.patch
61
+ gifsicle:
62
+ version: 1.88
63
+ files:
64
+ - :url: https://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz
65
+ :sha256: 4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be
66
+ configure_options: ['--without-x', '--disable-gifdiff']
67
+ jhead:
68
+ version: 3.00
69
+ files:
70
+ - :url: http://sentex.net/%7Emwandel/jhead/jhead-3.00.tar.gz
71
+ :sha256: 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e
72
+ patch_files:
73
+ - 0001-Add-a-configure-shim.patch
74
+ - 0002-Specify-a-default-DESTDIR.patch
75
+ - 0003-Make-the-configure-script-set-the-DESTDIR.patch
76
+ - 0004-Make-the-makefile-install-to-the-proper-location.patch
77
+ pngcrush:
78
+ version: 1.8.10
79
+ files:
80
+ - :url: http://downloads.sourceforge.net/project/pmt/pngcrush/1.8.10/pngcrush-1.8.10.tar.gz
81
+ :sha256: ed8dc4759d5067ebf53a2a5188eff1e8ad10262737cf50516cccf8c60d220b6d
82
+ patch_files:
83
+ - 0001-Add-an-install-task.patch
84
+ - 0002-Add-a-configure-script.patch
85
+ - 0003-Use-cc-by-default-instead-of-gcc.patch
86
+ jpegoptim:
87
+ version: 1.4.4
88
+ files:
89
+ - :url: http://www.kokkonen.net/tjko/src/jpegoptim-1.4.4.tar.gz
90
+ :sha256: 89a03ea2dfe9483dfb2e009a2851be0befb0deb7cb45c04550bcc91e1e88c1b2
91
+ patch_files:
92
+ - 0001-Link-lm-after-ljpeg.patch
93
+ jpeg-archive:
94
+ version: 2.1.1
95
+ files:
96
+ - :url: https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz
97
+ :sha256: 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
98
+ patch_files:
99
+ - 0001-Add-a-rudimentary-configure-script.patch
100
+ - 0002-Use-our-mozjpeg.patch
101
+ - 0003-Use-cc-instead-of-gcc-by-default.patch
102
+ 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,109 @@
1
+ nasm:
2
+ version: 2.12.02
3
+ files:
4
+ - :url: http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/nasm-2.12.02.tar.gz
5
+ :sha256: b7346d827b282ccf70608fe90b9bcf27effb1ddbd1bcba8a5ab4be95284fd01b
6
+ configure_options: ['LDFLAGS=-static']
7
+ zlib:
8
+ version: 1.2.8
9
+ files:
10
+ - :url: http://downloads.sourceforge.net/project/libpng/zlib/1.2.8/zlib-1.2.8.tar.gz
11
+ :md5: 44d667c142d7cda120332623eab69f40
12
+ configure_options: ['--static']
13
+ lcms2:
14
+ version: 2.8
15
+ files:
16
+ - :url: http://downloads.sourceforge.net/project/lcms/lcms/2.8/lcms2-2.8.tar.gz
17
+ :sha256: 66d02b229d2ea9474e62c2b6cd6720fde946155cd1d0d2bffdab829790a0fb22
18
+ configure_options: ['--enable-static', '--disable-shared', '--without-jpeg', '--without-tiff']
19
+ libpng:
20
+ version: 1.6.26
21
+ files:
22
+ - :url: http://downloads.sourceforge.net/project/libpng/libpng16/1.6.26/libpng-1.6.26.tar.gz
23
+ :md5: 236cd975520fc1f34cc0b8f0e615f7a0
24
+ patch_files:
25
+ - 0001-Do-not-build-binary-utilities.patch
26
+ configure_options: ['--enable-static', '--disable-shared', '--without-binconfigs', '--disable-unversioned-libpng-pc', '--disable-unversioned-libpng-config']
27
+ mozjpeg:
28
+ version: 3.1
29
+ files:
30
+ - :url: https://github.com/mozilla/mozjpeg/releases/download/v3.1/mozjpeg-3.1-release-source.tar.gz
31
+ :sha256: deedd88342c5da219f0047d9a290cd58eebe1b7a513564fcd8ebc49670077a1f
32
+ configure_options: ['--enable-static', '--disable-shared', 'libpng_LIBS=-lpng\ -lz', '--with-jpeg8']
33
+ patch_files:
34
+ - 0001-Build-static-binaries.patch
35
+ - 0002-Fix-x86-64-ABI-conformance-issue-in-SIMD-code-descri.patch
36
+ optipng:
37
+ version: 0.7.6
38
+ files:
39
+ - :url: http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.6/optipng-0.7.6.tar.gz
40
+ :sha256: 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
41
+ configure_options: ['-with-system-libs', 'LDFLAGS=-static']
42
+ patch_files:
43
+ - 0001-Allow-passing-LDFLAGS-as-configure-arg.patch
44
+ pngquant:
45
+ version: 2.8.0
46
+ files:
47
+ - :url: https://pngquant.org/pngquant-2.8.0-src.tar.gz
48
+ :sha1: f4428793dbc439a12bc67c7a585aa2fb9b86b349
49
+ patch_files:
50
+ - 0001-Work-around-mini-portile-s-configure-invocation.patch
51
+ - 0002-Add-default-LDFLAGS.patch
52
+ - 0003-Disable-libpng-check.patch
53
+ - 0004-Remove-libz-check.patch
54
+ - 0005-Remove-lcms2-check.patch
55
+ - 0007-Use-cc-instead-of-gcc-by-default.patch
56
+ configure_options: ['--extra-ldflags=-lpng']
57
+ advancecomp:
58
+ version: 1.22
59
+ files:
60
+ - :url: https://github.com/amadvance/advancecomp/releases/download/v1.22/advancecomp-1.22.tar.gz
61
+ :sha256: 31dec84049b919176d14070b8e6f97e086a0ddcd24ff1b83cf498245ece6607d
62
+ patch_files:
63
+ - 0001-Add-missing-libdeflate-header-file.patch
64
+ configure_options: ['LDFLAGS=-static']
65
+ gifsicle:
66
+ version: 1.88
67
+ files:
68
+ - :url: https://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz
69
+ :sha256: 4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be
70
+ configure_options: ['--without-x', '--disable-gifdiff', 'LDFLAGS=-static']
71
+ jhead:
72
+ version: 3.00
73
+ files:
74
+ - :url: http://sentex.net/%7Emwandel/jhead/jhead-3.00.tar.gz
75
+ :sha256: 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e
76
+ patch_files:
77
+ - 0001-Add-a-configure-shim.patch
78
+ - 0002-Specify-a-default-DESTDIR.patch
79
+ - 0003-Make-the-configure-script-set-the-DESTDIR.patch
80
+ - 0004-Make-the-makefile-install-to-the-proper-location.patch
81
+ - 0005-Produce-a-static-binary.patch
82
+ pngcrush:
83
+ version: 1.8.10
84
+ files:
85
+ - :url: http://downloads.sourceforge.net/project/pmt/pngcrush/1.8.10/pngcrush-1.8.10.tar.gz
86
+ :sha256: ed8dc4759d5067ebf53a2a5188eff1e8ad10262737cf50516cccf8c60d220b6d
87
+ patch_files:
88
+ - 0001-Add-an-install-task.patch
89
+ - 0002-Add-a-configure-script.patch
90
+ - 0003-Use-cc-by-default-instead-of-gcc.patch
91
+ - 0004-Produce-a-static-binary.patch
92
+ jpegoptim:
93
+ version: 1.4.4
94
+ files:
95
+ - :url: http://www.kokkonen.net/tjko/src/jpegoptim-1.4.4.tar.gz
96
+ :sha256: 89a03ea2dfe9483dfb2e009a2851be0befb0deb7cb45c04550bcc91e1e88c1b2
97
+ patch_files:
98
+ - 0001-Link-lm-after-ljpeg.patch
99
+ configure_options: ['LDFLAGS=-static']
100
+ jpeg-archive:
101
+ version: 2.1.1
102
+ files:
103
+ - :url: https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz
104
+ :sha256: 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
105
+ patch_files:
106
+ - 0001-Add-a-rudimentary-configure-script.patch
107
+ - 0002-Use-our-mozjpeg.patch
108
+ - 0003-Use-cc-instead-of-gcc-by-default.patch
109
+ configure_options: ['--ldflags=-static']
@@ -0,0 +1,3 @@
1
+ module ImageCompressorPack
2
+ VERSION = "1.0.0.1"
3
+ end
@@ -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
@@ -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 libdeflate
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 libdeflate
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)