Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncs mozjpeg.podspec #335

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions mozjpeg.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
Pod::Spec.new do |spec|
spec.name = "mozjpeg"
spec.version = "3.3.1"
spec.version = "3.3.2"
spec.license = { :type => "BSD" }
spec.homepage = "https://github.com/mozilla/mozjpeg"
spec.summary = "Improved JPEG encoder."
spec.authors = "Mozilla"
spec.source = { :git => "https://github.com/mozilla/mozjpeg.git", :tag => "v#{spec.version}" }
spec.source = { :git => "https://github.com/mozilla/mozjpeg.git", :tag => "v3.3.1" }
spec.module_name = "mozjpeg"
spec.header_dir = "mozjpeg"
spec.platforms = { :ios => "8.0" }
spec.prepare_command = <<-CMD
cat << EOF > ctransupp.h
#ifdef __cplusplus
#ifndef DONT_USE_EXTERN_C
extern "C" {
#endif
#endif
EOF

cat transupp.h >> ctransupp.h

cat << EOF >> ctransupp.h
#ifdef __cplusplus
#ifndef DONT_USE_EXTERN_C
}
#endif
#endif
EOF

mv ctransupp.h transupp.h

cat << EOF > jconfig.h
#define JPEG_LIB_VERSION 80 /* Version 6b */
#define LIBJPEG_TURBO_VERSION 3.1.m
Expand Down Expand Up @@ -145,7 +165,8 @@ Pod::Spec.new do |spec|
"jsimd.h",
"jsimddct.h",
"jversion.h",
"wrppm.h"
"wrppm.h",
"transupp.h"

# Despite their extensions, these are header files that shouldn't be compiled
# on their own but should still be present for other files to include.
Expand Down