image_compressor_pack 0.1.1.rc2 → 0.1.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.rspec +2 -0
- data/.travis.yml +26 -3
- data/LICENSE.txt +2 -1
- data/Rakefile +9 -2
- data/image_compressor_pack.gemspec +6 -4
- data/lib/image_compressor_pack/dynamically_linked_recipes.yml +11 -2
- data/lib/image_compressor_pack/statically_linked_recipes.yml +11 -2
- data/lib/image_compressor_pack/version.rb +1 -1
- data/ports/archives/2.1.1.tar.gz +0 -0
- data/ports/archives/2.7.1.tar.gz +0 -0
- data/ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch +48 -23
- data/ports/patches/jhead/0004-Make-the-makefile-install-to-the-proper-location.patch +1 -1
- data/ports/patches/jhead/0005-Produce-a-static-binary.patch +1 -1
- data/ports/patches/jpeg-archive/0001-Add-a-rudimentary-configure-script.patch +90 -0
- data/ports/patches/jpeg-archive/0002-Use-our-mozjpeg.patch +46 -0
- data/ports/patches/pngcrush/0002-Add-a-configure-script.patch +48 -23
- data/ports/patches/pngcrush/0003-Produce-a-static-binary.patch +1 -1
- data.tar.gz.sig +0 -0
- metadata +43 -11
- metadata.gz.sig +0 -0
- data/ports/archives/pngquant-2.7.1-src.tar.gz +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43e6936c9120b17bfe3c0d4a023c13b3bae530b7
|
|
4
|
+
data.tar.gz: edd5b059efe87343a452022a30270b4b64a35cd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9de816e7b0ee382ca6b18302d9ffcf262c330ed1d1205062541293746ca46527d2625a96124089cb3a99195608ee13bd95e16c648e84097a48652ac46cd31ad5
|
|
7
|
+
data.tar.gz: 8b50f11347528a8a159ec92d61d97fa19ee17d18adaf1059a23f0c0a9baab43716a323ca33a1bd1ea559d613e35ef9894e0ced2a84f3006c2b20e44e10593c2b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/.rspec
ADDED
data/.travis.yml
CHANGED
|
@@ -11,6 +11,29 @@ matrix:
|
|
|
11
11
|
- rvm: 2.3.1
|
|
12
12
|
dist: trusty
|
|
13
13
|
sudo: true
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
- rvm: 2.2
|
|
15
|
+
os: osx
|
|
16
|
+
osx_image: xcode6.4
|
|
17
|
+
- rvm: system
|
|
18
|
+
os: osx
|
|
19
|
+
osx_image: xcode7.3
|
|
20
|
+
- rvm: 1.9.3
|
|
21
|
+
allow_failures:
|
|
22
|
+
- rvm: 1.9.3
|
|
23
|
+
before_install:
|
|
24
|
+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then gem update bundler; fi
|
|
25
|
+
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo gem install bundler; fi
|
|
26
|
+
cache:
|
|
27
|
+
bundler: true
|
|
28
|
+
directories:
|
|
29
|
+
- ports/archives
|
|
30
|
+
deploy:
|
|
31
|
+
provider: releases
|
|
32
|
+
api_key:
|
|
33
|
+
secure: lxEv32SRj+E82RJRfmjNDHqjMJqu15sIeAQ283rYxWDkblFiVeZewTNfRqr3/0hgarUaWsr+JK8cuH+YbB5b6LU5sBWCdrmJ8bL9W+Ru803KdGH3J/7S6WaAPUBV0K5PZvz5TKpF8cVkQ2Dz5jpThR8me773yn7iK0nr1Z3Y0ewiFow6JFOODivluRVlQj9HdFMU4ydc/x2aTIGwshlGYyHMS5htqcpA+/dEOrtrNqMCRUPlDcl11HaCZ0uRqD2YjXloIrpBZotjr8pgpJNZ+wvOQxkw9skAmIUjJJ1DEqRkTImqBKou1E6fSc+e6GRYOgmik6AJWCTNpz25pwXiACbIidIRQWLLLTQFJYGnBswE0yO4fdkmeZ8PwQL5SjEWQ4+mL0iGRBx+JrRYpFkCKQH9Lm4UCuKnPxf0/m41odifqW/bNyil4x2H1WKgqS88UR7IhMJAShP0r0X/3duCSrvVe59XnJnKQHjWjqxQYmpkfJ40Y5Wx9Gcp+vYFhceeRF68mE5ZMdZvcxHqlmh7TiIEsPIuqmu49aYF6r+KnsXAIkjiRvdIvNtnpMTGtoHmyk4bO3cCiI2bd29BPRhgljESl5h3iTpitlGnSJk+ofFZyZDq2bvktR5hC+QaJsExoNlIB0xIA47qXtjPn+UaxlZkM8WqfqVVSSCS4m0teZs=
|
|
34
|
+
file: "$(git ls-files -o pkg | head -1)"
|
|
35
|
+
on:
|
|
36
|
+
repo: ignisf/image_compressor_pack
|
|
37
|
+
branch: master
|
|
38
|
+
tags: true
|
|
39
|
+
condition: $TRAVIS_OS_NAME = osx
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2015 Petko Bordjukov
|
|
3
|
+
Copyright (c) 2015-2016 Petko Bordjukov
|
|
4
|
+
Copyright (c) 2014-2016 Ivan Kuchin
|
|
4
5
|
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
7
|
of this software and associated documentation files (the "Software"), to deal
|
data/Rakefile
CHANGED
|
@@ -24,6 +24,7 @@ desc "Build #{Helpers.binary_gem_name} into the pkg directory"
|
|
|
24
24
|
task binary: :compile do
|
|
25
25
|
gemspec = Helpers.binary_gemspec
|
|
26
26
|
gemspec.extensions.clear
|
|
27
|
+
gemspec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
|
|
27
28
|
|
|
28
29
|
# We don't need most things for the binary
|
|
29
30
|
gemspec.files = `git ls-files lib`.split("\n")
|
|
@@ -43,7 +44,7 @@ task binary: :compile do
|
|
|
43
44
|
end
|
|
44
45
|
|
|
45
46
|
task :clean do
|
|
46
|
-
sh 'git clean -dxf -e .bundle -e vendor
|
|
47
|
+
sh 'git clean -dxf -e .bundle -e vendor -e Gemfile.lock'
|
|
47
48
|
end
|
|
48
49
|
|
|
49
50
|
desc 'Download all recipe archives'
|
|
@@ -51,6 +52,12 @@ task :download do
|
|
|
51
52
|
ImageCompressorPack.recipes.each(&:download)
|
|
52
53
|
end
|
|
53
54
|
|
|
55
|
+
begin
|
|
56
|
+
require 'rspec/core/rake_task'
|
|
57
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
58
|
+
rescue LoadError
|
|
59
|
+
end
|
|
60
|
+
|
|
54
61
|
task build: [:clean, :download]
|
|
55
62
|
|
|
56
|
-
task default: [:compile]
|
|
63
|
+
task default: [:compile, :spec]
|
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Petko Bordjukov"]
|
|
10
10
|
spec.email = ["bordjukov@gmail.com"]
|
|
11
11
|
spec.cert_chain = ['certs/ignisf.pem']
|
|
12
|
-
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
|
|
12
|
+
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/ and ENV['TRAVIS'] != "true"
|
|
13
13
|
|
|
14
14
|
spec.summary = %q{A distribution of image optimization utilities.}
|
|
15
15
|
spec.description = %q{This gem packs a bunch of useful utilities for image optimization for use with image_optim.}
|
|
@@ -21,8 +21,10 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
22
|
spec.extensions = ["ext/image_compressor_pack/extconf.rb"]
|
|
23
23
|
|
|
24
|
-
spec.add_runtime_dependency "mini_portile2", "~> 2
|
|
24
|
+
spec.add_runtime_dependency "mini_portile2", "~> 2"
|
|
25
25
|
|
|
26
|
-
spec.add_development_dependency "bundler", "~> 1
|
|
27
|
-
spec.add_development_dependency "rake", "~>
|
|
26
|
+
spec.add_development_dependency "bundler", "~> 1"
|
|
27
|
+
spec.add_development_dependency "rake", "~> 11"
|
|
28
|
+
spec.add_development_dependency 'image_optim', '~> 0'
|
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3'
|
|
28
30
|
end
|
|
@@ -36,8 +36,8 @@ optipng:
|
|
|
36
36
|
pngquant:
|
|
37
37
|
version: 2.7.1
|
|
38
38
|
files:
|
|
39
|
-
- :url: https://
|
|
40
|
-
:
|
|
39
|
+
- :url: https://github.com/pornel/pngquant/archive/2.7.1.tar.gz
|
|
40
|
+
:sha256: e8645bea07ef255c102f053d3566ac00e64005aa0e68a2c9f00bc39e575f1dfd
|
|
41
41
|
patch_files:
|
|
42
42
|
- 0001-Work-around-mini-portile-s-configure-invocation.patch
|
|
43
43
|
- 0002-Add-default-LDFLAGS.patch
|
|
@@ -82,3 +82,12 @@ jpegoptim:
|
|
|
82
82
|
:sha256: 233d4ae09273cb977e162671f4767be7ef5d96e8c1888d3ed4aa70c4dac1a34c
|
|
83
83
|
patch_files:
|
|
84
84
|
- 0001-Link-lm-after-ljpeg.patch
|
|
85
|
+
jpeg-archive:
|
|
86
|
+
version: 2.1.1
|
|
87
|
+
files:
|
|
88
|
+
- :url: https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz
|
|
89
|
+
:sha256: 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
|
|
90
|
+
patch_files:
|
|
91
|
+
- 0001-Add-a-rudimentary-configure-script.patch
|
|
92
|
+
- 0002-Use-our-mozjpeg.patch
|
|
93
|
+
configure_options: []
|
|
@@ -42,8 +42,8 @@ optipng:
|
|
|
42
42
|
pngquant:
|
|
43
43
|
version: 2.7.1
|
|
44
44
|
files:
|
|
45
|
-
- :url: https://
|
|
46
|
-
:
|
|
45
|
+
- :url: https://github.com/pornel/pngquant/archive/2.7.1.tar.gz
|
|
46
|
+
:sha256: e8645bea07ef255c102f053d3566ac00e64005aa0e68a2c9f00bc39e575f1dfd
|
|
47
47
|
patch_files:
|
|
48
48
|
- 0001-Work-around-mini-portile-s-configure-invocation.patch
|
|
49
49
|
- 0002-Add-default-LDFLAGS.patch
|
|
@@ -91,3 +91,12 @@ jpegoptim:
|
|
|
91
91
|
patch_files:
|
|
92
92
|
- 0001-Link-lm-after-ljpeg.patch
|
|
93
93
|
configure_options: ['LDFLAGS=-static']
|
|
94
|
+
jpeg-archive:
|
|
95
|
+
version: 2.1.1
|
|
96
|
+
files:
|
|
97
|
+
- :url: https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz
|
|
98
|
+
:sha256: 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
|
|
99
|
+
patch_files:
|
|
100
|
+
- 0001-Add-a-rudimentary-configure-script.patch
|
|
101
|
+
- 0002-Use-our-mozjpeg.patch
|
|
102
|
+
configure_options: ['--ldflags=-static']
|
|
Binary file
|
|
Binary file
|
|
@@ -1,39 +1,64 @@
|
|
|
1
|
-
From
|
|
1
|
+
From 28ea2dcad9c0d706099f9466edd453c0220d2a55 Mon Sep 17 00:00:00 2001
|
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
3
|
Date: Sun, 22 Nov 2015 17:57:21 +0200
|
|
4
4
|
Subject: [PATCH 3/5] Make the configure script set the DESTDIR
|
|
5
5
|
|
|
6
6
|
---
|
|
7
|
-
configure |
|
|
8
|
-
1 file changed,
|
|
7
|
+
configure | 46 ++++++++++++++++++++++++++++++++++++++++++++++
|
|
8
|
+
1 file changed, 46 insertions(+)
|
|
9
9
|
|
|
10
10
|
diff --git a/configure b/configure
|
|
11
|
-
index 1a24852..
|
|
11
|
+
index 1a24852..b2407ee 100755
|
|
12
12
|
--- a/configure
|
|
13
13
|
+++ b/configure
|
|
14
|
-
@@ -1 +1,
|
|
14
|
+
@@ -1 +1,47 @@
|
|
15
15
|
#!/bin/sh
|
|
16
16
|
+
|
|
17
|
-
+
|
|
18
|
-
+
|
|
19
|
-
+
|
|
20
|
-
+
|
|
21
|
-
+
|
|
22
|
-
|
|
23
|
-
+
|
|
24
|
-
+
|
|
25
|
-
+
|
|
26
|
-
+
|
|
27
|
-
+
|
|
28
|
-
+
|
|
29
|
-
+
|
|
30
|
-
+
|
|
31
|
-
+
|
|
32
|
-
+
|
|
33
|
-
+
|
|
34
|
-
+
|
|
17
|
+
+for arg in "$@"
|
|
18
|
+
+do
|
|
19
|
+
+ case "$arg" in
|
|
20
|
+
+ -- )
|
|
21
|
+
+ option="$arg"
|
|
22
|
+
+ ;;
|
|
23
|
+
+ * )
|
|
24
|
+
+ option="$arg"
|
|
25
|
+
+ ;;
|
|
26
|
+
+ esac
|
|
27
|
+
+ case "$arg" in
|
|
28
|
+
+ *=* )
|
|
29
|
+
+ optarg=`expr "X$arg" : 'X[^=]*=\(.*\)'`
|
|
30
|
+
+ ;;
|
|
31
|
+
+ * )
|
|
32
|
+
+ optarg=""
|
|
33
|
+
+ ;;
|
|
34
|
+
+ esac
|
|
35
|
+
+ case "$option" in
|
|
36
|
+
+ --help | -h )
|
|
37
|
+
+ echo "Usage:"
|
|
38
|
+
+ echo " $0 [options]"
|
|
39
|
+
+ echo "Options:"
|
|
40
|
+
+ echo " -h, --help Show this help"
|
|
41
|
+
+ echo " --prefix=PREFIX Install in the specified prefix"
|
|
42
|
+
+ echo " [default: /usr/local]"
|
|
43
|
+
+ exit 0
|
|
44
|
+
+ ;;
|
|
45
|
+
+ --prefix=* )
|
|
46
|
+
+ prefix="$optarg"
|
|
47
|
+
+ shift
|
|
48
|
+
+ ;;
|
|
49
|
+
+ * )
|
|
50
|
+
+ echo "$0: warning: unknown option: $arg"
|
|
51
|
+
+ echo "Type \"$0 -help\" for help"
|
|
52
|
+
+ ;;
|
|
35
53
|
+ esac
|
|
36
54
|
+done
|
|
55
|
+
+
|
|
56
|
+
+sed_config="
|
|
57
|
+
+ s|DESTDIR=.*|DESTDIR=$prefix|g
|
|
58
|
+
+ s| *\$||
|
|
59
|
+
+"
|
|
60
|
+
+
|
|
61
|
+
+sed -i.bak "$sed_config" makefile
|
|
37
62
|
--
|
|
38
63
|
2.8.3
|
|
39
64
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
From
|
|
1
|
+
From b3c348fc8646fd1499fd6b1c6c652a15d819a9dd Mon Sep 17 00:00:00 2001
|
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
3
|
Date: Sun, 22 Nov 2015 18:28:37 +0200
|
|
4
4
|
Subject: [PATCH 4/5] Make the makefile install to the proper location
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
From
|
|
1
|
+
From 548385f303ef319fca7ad714793bb5c0ac81abaa Mon Sep 17 00:00:00 2001
|
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
3
|
Date: Thu, 9 Jun 2016 01:59:08 +0300
|
|
4
4
|
Subject: [PATCH 5/5] Produce a static binary
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
From eec20eb9b5601caf6edeed9355ac225cecc249d0 Mon Sep 17 00:00:00 2001
|
|
2
|
+
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
|
+
Date: Fri, 10 Jun 2016 11:58:28 +0300
|
|
4
|
+
Subject: [PATCH 1/2] Add a rudimentary configure script
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
Makefile | 3 +++
|
|
8
|
+
configure | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
9
|
+
2 files changed, 59 insertions(+)
|
|
10
|
+
create mode 100755 configure
|
|
11
|
+
|
|
12
|
+
diff --git a/Makefile b/Makefile
|
|
13
|
+
index aff7587..2b3c6b6 100644
|
|
14
|
+
--- a/Makefile
|
|
15
|
+
+++ b/Makefile
|
|
16
|
+
@@ -4,6 +4,9 @@ LDFLAGS += -lm
|
|
17
|
+
MAKE ?= make
|
|
18
|
+
PREFIX ?= /usr/local
|
|
19
|
+
|
|
20
|
+
+CONFIGURE_LDFLAGS =
|
|
21
|
+
+LDFLAGS += $(CONFIGURE_LDFLAGS)
|
|
22
|
+
+
|
|
23
|
+
UNAME_S := $(shell uname -s)
|
|
24
|
+
UNAME_M := $(shell uname -m)
|
|
25
|
+
|
|
26
|
+
diff --git a/configure b/configure
|
|
27
|
+
new file mode 100755
|
|
28
|
+
index 0000000..fc92e55
|
|
29
|
+
--- /dev/null
|
|
30
|
+
+++ b/configure
|
|
31
|
+
@@ -0,0 +1,56 @@
|
|
32
|
+
+#!/bin/sh
|
|
33
|
+
+
|
|
34
|
+
+ldflags=""
|
|
35
|
+
+
|
|
36
|
+
+for arg in "$@"
|
|
37
|
+
+do
|
|
38
|
+
+ case "$arg" in
|
|
39
|
+
+ -- )
|
|
40
|
+
+ option="$arg"
|
|
41
|
+
+ ;;
|
|
42
|
+
+ * )
|
|
43
|
+
+ option="$arg"
|
|
44
|
+
+ ;;
|
|
45
|
+
+ esac
|
|
46
|
+
+ case "$arg" in
|
|
47
|
+
+ *=* )
|
|
48
|
+
+ optarg=`expr "X$arg" : 'X[^=]*=\(.*\)'`
|
|
49
|
+
+ ;;
|
|
50
|
+
+ * )
|
|
51
|
+
+ optarg=""
|
|
52
|
+
+ ;;
|
|
53
|
+
+ esac
|
|
54
|
+
+ case "$option" in
|
|
55
|
+
+ --help | -h )
|
|
56
|
+
+ echo "Usage:"
|
|
57
|
+
+ echo " $0 [options]"
|
|
58
|
+
+ echo "Options:"
|
|
59
|
+
+ echo " -h, --help Show this help"
|
|
60
|
+
+ echo " --ldflags=LDFLAGS Pass these flags to ld"
|
|
61
|
+
+ echo " [default: none]"
|
|
62
|
+
+ echo " --prefix=PREFIX Install in the specified prefix"
|
|
63
|
+
+ echo " [default: /usr/local]"
|
|
64
|
+
+ exit 0
|
|
65
|
+
+ ;;
|
|
66
|
+
+ --ldflags=* )
|
|
67
|
+
+ ldflags="$optarg"
|
|
68
|
+
+ shift
|
|
69
|
+
+ ;;
|
|
70
|
+
+ --prefix=* )
|
|
71
|
+
+ prefix="$optarg"
|
|
72
|
+
+ shift
|
|
73
|
+
+ ;;
|
|
74
|
+
+ * )
|
|
75
|
+
+ echo "$0: warning: unknown option: $arg"
|
|
76
|
+
+ echo "Type \"$0 -help\" for help"
|
|
77
|
+
+ ;;
|
|
78
|
+
+ esac
|
|
79
|
+
+done
|
|
80
|
+
+
|
|
81
|
+
+sed_config="
|
|
82
|
+
+ s|PREFIX ?=.*|PREFIX ?= $prefix|g
|
|
83
|
+
+ s|CONFIGURE_LDFLAGS =.*|CONFIGURE_LDFLAGS = $ldflags|g
|
|
84
|
+
+ s| *\$||
|
|
85
|
+
+"
|
|
86
|
+
+
|
|
87
|
+
+sed -i.bak "$sed_config" Makefile
|
|
88
|
+
--
|
|
89
|
+
2.8.3
|
|
90
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
From 0a577842fc7f44e8b57c1ba8130761e8759626d5 Mon Sep 17 00:00:00 2001
|
|
2
|
+
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
|
+
Date: Fri, 10 Jun 2016 11:59:33 +0300
|
|
4
|
+
Subject: [PATCH 2/2] Use our mozjpeg
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
Makefile | 23 +----------------------
|
|
8
|
+
1 file changed, 1 insertion(+), 22 deletions(-)
|
|
9
|
+
|
|
10
|
+
diff --git a/Makefile b/Makefile
|
|
11
|
+
index 2b3c6b6..2cde65a 100644
|
|
12
|
+
--- a/Makefile
|
|
13
|
+
+++ b/Makefile
|
|
14
|
+
@@ -10,28 +10,7 @@ LDFLAGS += $(CONFIGURE_LDFLAGS)
|
|
15
|
+
UNAME_S := $(shell uname -s)
|
|
16
|
+
UNAME_M := $(shell uname -m)
|
|
17
|
+
|
|
18
|
+
-ifeq ($(UNAME_S),Linux)
|
|
19
|
+
- # Linux (e.g. Ubuntu)
|
|
20
|
+
- MOZJPEG_PREFIX ?= /opt/mozjpeg
|
|
21
|
+
- CFLAGS += -I$(MOZJPEG_PREFIX)/include
|
|
22
|
+
- ifeq ($(UNAME_M),x86_64)
|
|
23
|
+
- LIBJPEG = $(MOZJPEG_PREFIX)/lib64/libjpeg.a
|
|
24
|
+
- else
|
|
25
|
+
- LIBJPEG = $(MOZJPEG_PREFIX)/lib/libjpeg.a
|
|
26
|
+
- endif
|
|
27
|
+
-else
|
|
28
|
+
- ifeq ($(UNAME_S),Darwin)
|
|
29
|
+
- # Mac OS X
|
|
30
|
+
- MOZJPEG_PREFIX ?= /usr/local/opt/mozjpeg
|
|
31
|
+
- LIBJPEG = $(MOZJPEG_PREFIX)/lib/libjpeg.a
|
|
32
|
+
- CFLAGS += -I$(MOZJPEG_PREFIX)/include
|
|
33
|
+
- else
|
|
34
|
+
- # Windows
|
|
35
|
+
- LIBJPEG = ../mozjpeg/libjpeg.a
|
|
36
|
+
- CFLAGS += -I../mozjpeg
|
|
37
|
+
- MAKE = mingw32-make
|
|
38
|
+
- endif
|
|
39
|
+
-endif
|
|
40
|
+
+LIBJPEG = -ljpeg
|
|
41
|
+
|
|
42
|
+
LIBIQA=src/iqa/build/release/libiqa.a
|
|
43
|
+
|
|
44
|
+
--
|
|
45
|
+
2.8.3
|
|
46
|
+
|
|
@@ -1,41 +1,66 @@
|
|
|
1
|
-
From
|
|
1
|
+
From f5f4dbab2c81d9a3a6e908f9cc9d8c41c9188a71 Mon Sep 17 00:00:00 2001
|
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
3
|
Date: Sun, 22 Nov 2015 18:46:05 +0200
|
|
4
4
|
Subject: [PATCH 2/3] Add a configure script
|
|
5
5
|
|
|
6
6
|
---
|
|
7
|
-
configure |
|
|
8
|
-
1 file changed,
|
|
7
|
+
configure | 47 +++++++++++++++++++++++++++++++++++++++++++++++
|
|
8
|
+
1 file changed, 47 insertions(+)
|
|
9
9
|
create mode 100755 configure
|
|
10
10
|
|
|
11
11
|
diff --git a/configure b/configure
|
|
12
12
|
new file mode 100755
|
|
13
|
-
index 0000000..
|
|
13
|
+
index 0000000..6af6f2f
|
|
14
14
|
--- /dev/null
|
|
15
15
|
+++ b/configure
|
|
16
|
-
@@ -0,0 +1,
|
|
16
|
+
@@ -0,0 +1,47 @@
|
|
17
17
|
+#!/bin/sh
|
|
18
18
|
+
|
|
19
|
-
+
|
|
20
|
-
+
|
|
21
|
-
+
|
|
22
|
-
+
|
|
23
|
-
+
|
|
24
|
-
|
|
25
|
-
+
|
|
26
|
-
+
|
|
27
|
-
+
|
|
28
|
-
+
|
|
29
|
-
+
|
|
30
|
-
+
|
|
31
|
-
+
|
|
32
|
-
+
|
|
33
|
-
+
|
|
34
|
-
+
|
|
35
|
-
+
|
|
36
|
-
+
|
|
19
|
+
+for arg in "$@"
|
|
20
|
+
+do
|
|
21
|
+
+ case "$arg" in
|
|
22
|
+
+ -- )
|
|
23
|
+
+ option="$arg"
|
|
24
|
+
+ ;;
|
|
25
|
+
+ * )
|
|
26
|
+
+ option="$arg"
|
|
27
|
+
+ ;;
|
|
28
|
+
+ esac
|
|
29
|
+
+ case "$arg" in
|
|
30
|
+
+ *=* )
|
|
31
|
+
+ optarg=`expr "X$arg" : 'X[^=]*=\(.*\)'`
|
|
32
|
+
+ ;;
|
|
33
|
+
+ * )
|
|
34
|
+
+ optarg=""
|
|
35
|
+
+ ;;
|
|
36
|
+
+ esac
|
|
37
|
+
+ case "$option" in
|
|
38
|
+
+ --help | -h )
|
|
39
|
+
+ echo "Usage:"
|
|
40
|
+
+ echo " $0 [options]"
|
|
41
|
+
+ echo "Options:"
|
|
42
|
+
+ echo " -h, --help Show this help"
|
|
43
|
+
+ echo " --prefix=PREFIX Install in the specified prefix"
|
|
44
|
+
+ echo " [default: /usr/local]"
|
|
45
|
+
+ exit 0
|
|
46
|
+
+ ;;
|
|
47
|
+
+ --prefix=* )
|
|
48
|
+
+ prefix="$optarg"
|
|
49
|
+
+ shift
|
|
50
|
+
+ ;;
|
|
51
|
+
+ * )
|
|
52
|
+
+ echo "$0: warning: unknown option: $arg"
|
|
53
|
+
+ echo "Type \"$0 -help\" for help"
|
|
54
|
+
+ ;;
|
|
37
55
|
+ esac
|
|
38
56
|
+done
|
|
57
|
+
+
|
|
58
|
+
+sed_config="
|
|
59
|
+
+ s|DESTDIR=.*|DESTDIR=$prefix|g
|
|
60
|
+
+ s| *\$||
|
|
61
|
+
+"
|
|
62
|
+
+
|
|
63
|
+
+sed -i.bak "$sed_config" Makefile
|
|
39
64
|
--
|
|
40
65
|
2.8.3
|
|
41
66
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
From
|
|
1
|
+
From 5e45c536b23db916fd14f3290209acbff9059029 Mon Sep 17 00:00:00 2001
|
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
|
3
3
|
Date: Thu, 9 Jun 2016 02:03:46 +0300
|
|
4
4
|
Subject: [PATCH 3/3] Produce a static binary
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: image_compressor_pack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.1
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Petko Bordjukov
|
|
@@ -41,7 +41,7 @@ cert_chain:
|
|
|
41
41
|
7meOvqpsImGixir/Fdrmo2C2ozMqkbAHt1P3lUjSkaKPJFhCPL6tct0DbrHGOE0R
|
|
42
42
|
bfdfE27aG1U=
|
|
43
43
|
-----END CERTIFICATE-----
|
|
44
|
-
date: 2016-06-
|
|
44
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
|
45
45
|
dependencies:
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: mini_portile2
|
|
@@ -49,42 +49,70 @@ dependencies:
|
|
|
49
49
|
requirements:
|
|
50
50
|
- - "~>"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '2
|
|
52
|
+
version: '2'
|
|
53
53
|
type: :runtime
|
|
54
54
|
prerelease: false
|
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
57
|
- - "~>"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '2
|
|
59
|
+
version: '2'
|
|
60
60
|
- !ruby/object:Gem::Dependency
|
|
61
61
|
name: bundler
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
64
|
- - "~>"
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: '1
|
|
66
|
+
version: '1'
|
|
67
67
|
type: :development
|
|
68
68
|
prerelease: false
|
|
69
69
|
version_requirements: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
|
71
71
|
- - "~>"
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: '1
|
|
73
|
+
version: '1'
|
|
74
74
|
- !ruby/object:Gem::Dependency
|
|
75
75
|
name: rake
|
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements:
|
|
78
78
|
- - "~>"
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
|
-
version: '
|
|
80
|
+
version: '11'
|
|
81
81
|
type: :development
|
|
82
82
|
prerelease: false
|
|
83
83
|
version_requirements: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
|
85
85
|
- - "~>"
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
|
-
version: '
|
|
87
|
+
version: '11'
|
|
88
|
+
- !ruby/object:Gem::Dependency
|
|
89
|
+
name: image_optim
|
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
|
91
|
+
requirements:
|
|
92
|
+
- - "~>"
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '0'
|
|
95
|
+
type: :development
|
|
96
|
+
prerelease: false
|
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - "~>"
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
102
|
+
- !ruby/object:Gem::Dependency
|
|
103
|
+
name: rspec
|
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - "~>"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '3'
|
|
109
|
+
type: :development
|
|
110
|
+
prerelease: false
|
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - "~>"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '3'
|
|
88
116
|
description: This gem packs a bunch of useful utilities for image optimization for
|
|
89
117
|
use with image_optim.
|
|
90
118
|
email:
|
|
@@ -95,6 +123,7 @@ extensions:
|
|
|
95
123
|
extra_rdoc_files: []
|
|
96
124
|
files:
|
|
97
125
|
- ".gitignore"
|
|
126
|
+
- ".rspec"
|
|
98
127
|
- ".travis.yml"
|
|
99
128
|
- Gemfile
|
|
100
129
|
- LICENSE.txt
|
|
@@ -111,6 +140,8 @@ files:
|
|
|
111
140
|
- lib/image_compressor_pack/recipes.rb
|
|
112
141
|
- lib/image_compressor_pack/statically_linked_recipes.yml
|
|
113
142
|
- lib/image_compressor_pack/version.rb
|
|
143
|
+
- ports/archives/2.1.1.tar.gz
|
|
144
|
+
- ports/archives/2.7.1.tar.gz
|
|
114
145
|
- ports/archives/advancecomp-1.20.tar.gz
|
|
115
146
|
- ports/archives/gifsicle-1.88.tar.gz
|
|
116
147
|
- ports/archives/jhead-3.00.tar.gz
|
|
@@ -121,13 +152,14 @@ files:
|
|
|
121
152
|
- ports/archives/nasm-2.12.01.tar.gz
|
|
122
153
|
- ports/archives/optipng-0.7.6.tar.gz
|
|
123
154
|
- ports/archives/pngcrush-1.8.1.tar.gz
|
|
124
|
-
- ports/archives/pngquant-2.7.1-src.tar.gz
|
|
125
155
|
- ports/archives/zlib-1.2.8.tar.gz
|
|
126
156
|
- ports/patches/jhead/0001-Add-a-configure-shim.patch
|
|
127
157
|
- ports/patches/jhead/0002-Specify-a-default-DESTDIR.patch
|
|
128
158
|
- ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch
|
|
129
159
|
- ports/patches/jhead/0004-Make-the-makefile-install-to-the-proper-location.patch
|
|
130
160
|
- ports/patches/jhead/0005-Produce-a-static-binary.patch
|
|
161
|
+
- ports/patches/jpeg-archive/0001-Add-a-rudimentary-configure-script.patch
|
|
162
|
+
- ports/patches/jpeg-archive/0002-Use-our-mozjpeg.patch
|
|
131
163
|
- ports/patches/jpegoptim/0001-Link-lm-after-ljpeg.patch
|
|
132
164
|
- ports/patches/libpng/0001-Do-not-build-binary-utilities.patch
|
|
133
165
|
- ports/patches/mozjpeg/0001-Build-static-binaries.patch
|
|
@@ -156,9 +188,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
156
188
|
version: '0'
|
|
157
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
190
|
requirements:
|
|
159
|
-
- - "
|
|
191
|
+
- - ">="
|
|
160
192
|
- !ruby/object:Gem::Version
|
|
161
|
-
version:
|
|
193
|
+
version: '0'
|
|
162
194
|
requirements: []
|
|
163
195
|
rubyforge_project:
|
|
164
196
|
rubygems_version: 2.6.4
|
metadata.gz.sig
CHANGED
|
Binary file
|
|
Binary file
|