image_optim_pack 0.5.0.20171101-x86-freebsd → 0.5.0.20171208-x86-freebsd
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +7 -0
- data/Makefile +47 -10
- data/image_optim_pack.gemspec +2 -2
- data/vendor/freebsd-i386/pngquant +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5feaf2eb64f9bd8b751833fc82018b7e4a04bed1
|
4
|
+
data.tar.gz: 636bb6dddd66226459a5e312c26bcc07ce4793db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bcee30fb11d24cfae5940f780734b3c50d1f660364ed40530a6985b9b2edb364f2d7a21d47a192a43c79eb73ecb6811f2eef87c3fdf8d2b5152918e59149ff6
|
7
|
+
data.tar.gz: b8ba2115144f4b42c1118f3391bb5f8d0e18b98d060e1033e0b1b946207f24a90a96919c7b64f94c15e5eb7fe37547d952d93104f8a91feacd66e6c616cfa218
|
data/CHANGELOG.markdown
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## unreleased
|
4
4
|
|
5
|
+
## v0.5.0.20171208 (2017-12-08)
|
6
|
+
|
7
|
+
* ensure unused libgcc is not dynamically linked with pngquant [@toy](https://github.com/toy)
|
8
|
+
* don’t use lcms (colour profiles) in pngquant [@toy](https://github.com/toy)
|
9
|
+
* pngquant 2.11.2 [@toy](https://github.com/toy)
|
10
|
+
* pngquant 2.11.1 [@toy](https://github.com/toy)
|
11
|
+
|
5
12
|
## v0.5.0.20171101 (2017-11-01)
|
6
13
|
|
7
14
|
* pngquant 2.11.0 [@toy](https://github.com/toy)
|
data/Makefile
CHANGED
@@ -13,7 +13,7 @@ LIBPNG_VER := 1.6.34
|
|
13
13
|
LIBZ_VER := 1.2.11
|
14
14
|
OPTIPNG_VER := 0.7.6
|
15
15
|
PNGCRUSH_VER := 1.8.13
|
16
|
-
PNGQUANT_VER := 2.11.
|
16
|
+
PNGQUANT_VER := 2.11.2
|
17
17
|
|
18
18
|
# ====== CONSTANTS ======
|
19
19
|
|
@@ -162,15 +162,48 @@ all : build
|
|
162
162
|
build : $(call downcase,$(PRODUCTS))
|
163
163
|
.PHONY : build
|
164
164
|
|
165
|
-
|
165
|
+
ifdef IS_DARWIN
|
166
|
+
ldd := otool -L
|
167
|
+
else
|
168
|
+
ldd := ldd
|
169
|
+
endif
|
170
|
+
|
171
|
+
define check_exists
|
166
172
|
@test -f $(OUTPUT_DIR)/$1 || \
|
167
|
-
{ printf "$(ANSI_RED)
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
{ printf "$(ANSI_RED)Expected $
|
173
|
-
|
173
|
+
{ printf "$1: $(ANSI_RED)not found$(ANSI_RESET)\n"; exit 1; }
|
174
|
+
endef
|
175
|
+
|
176
|
+
define check_version
|
177
|
+
@$(OUTPUT_DIR)/$1 $2 | fgrep -q $3 || \
|
178
|
+
{ printf "$1: $(ANSI_RED)Expected $3, got $$($(OUTPUT_DIR)/$1 $2)$(ANSI_RESET)\n"; exit 1; }
|
179
|
+
endef
|
180
|
+
|
181
|
+
define check_arch
|
182
|
+
@file -b $(OUTPUT_DIR)/$1 | fgrep -q '$(ARCH_STRING)' || \
|
183
|
+
{ printf "$1: $(ANSI_RED)Expected $(ARCH_STRING), got $$(file -b $(OUTPUT_DIR)/$1)$(ANSI_RESET)\n"; exit 1; }
|
184
|
+
endef
|
185
|
+
|
186
|
+
define check_output
|
187
|
+
@printf "$1: $(ANSI_GREEN)$3$(ANSI_RESET) / $(ANSI_MAGENTA)$(ARCH_STRING)$(ANSI_RESET)\n"
|
188
|
+
endef
|
189
|
+
|
190
|
+
define check_shlib
|
191
|
+
@! $(ldd) $(OUTPUT_DIR)/$1 | egrep -o "[^: ]+/[^: ]+" | egrep -v "^(@loader_path|/lib|/lib64|/usr|$(OUTPUT_DIR))/"
|
192
|
+
endef
|
193
|
+
|
194
|
+
define check_lib
|
195
|
+
$(call check_exists,$1)
|
196
|
+
$(call check_arch,$1)
|
197
|
+
$(call check_output,$1,,-)
|
198
|
+
$(call check_shlib,$1)
|
199
|
+
endef
|
200
|
+
|
201
|
+
define check_bin
|
202
|
+
$(call check_exists,$1)
|
203
|
+
$(call check_version,$1,$2,$3)
|
204
|
+
$(call check_arch,$1)
|
205
|
+
$(call check_output,$1,,$3)
|
206
|
+
$(call check_shlib,$1)
|
174
207
|
endef
|
175
208
|
|
176
209
|
ifdef IS_DARWIN
|
@@ -188,6 +221,9 @@ test :
|
|
188
221
|
$(call check_bin,jpeg-recompress,--version,$(JPEGARCHIVE_VER))
|
189
222
|
$(call check_bin,jpegoptim,--version,$(JPEGOPTIM_VER))
|
190
223
|
$(call check_bin,jpegtran,-v - 2>&1,$(LIBJPEG_VER))
|
224
|
+
$(call check_lib,libjpeg$(DLEXT))
|
225
|
+
$(call check_lib,libpng$(DLEXT))
|
226
|
+
$(call check_lib,libz$(DLEXT))
|
191
227
|
$(call check_bin,optipng,--version,$(OPTIPNG_VER))
|
192
228
|
$(call check_bin,pngcrush,-version 2>&1,$(PNGCRUSH_VER))
|
193
229
|
$(call check_bin,pngquant,--help,$(PNGQUANT_VER))
|
@@ -383,7 +419,8 @@ $(PNGCRUSH_TARGET) :
|
|
383
419
|
|
384
420
|
## pngquant
|
385
421
|
$(eval $(call depend,PNGQUANT,LIBPNG LIBZ))
|
422
|
+
$(PNGQUANT_TARGET) : export CFLAGS := $(CFLAGS) $(shell if $(CC) -v 2>&1 | fgrep -q gcc; then echo -static-libgcc; fi)
|
386
423
|
$(PNGQUANT_TARGET) :
|
387
|
-
cd $(DIR) && ./configure --without-cocoa --extra-ldflags="$(XORIGIN)"
|
424
|
+
cd $(DIR) && ./configure --without-cocoa --without-lcms2 --extra-ldflags="$(XORIGIN)"
|
388
425
|
cd $(DIR) && $(MAKE) pngquant
|
389
426
|
$(call chrpath_origin,$@)
|
data/image_optim_pack.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'image_optim_pack'
|
5
|
-
s.version = '0.5.0.
|
5
|
+
s.version = '0.5.0.20171208'
|
6
6
|
s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
@@ -36,6 +36,6 @@ Gem::Specification.new do |s|
|
|
36
36
|
|
37
37
|
s.add_development_dependency 'rspec', '~> 3.0'
|
38
38
|
if RUBY_VERSION >= '2.0'
|
39
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
39
|
+
s.add_development_dependency 'rubocop', '~> 0.49'
|
40
40
|
end
|
41
41
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_optim_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.
|
4
|
+
version: 0.5.0.20171208
|
5
5
|
platform: x86-freebsd
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optim
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0.
|
67
|
+
version: '0.49'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '0.
|
74
|
+
version: '0.49'
|
75
75
|
description:
|
76
76
|
email:
|
77
77
|
executables: []
|