-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from envato/viraptor/fix-0-28-compat
Fix exiv2 0.28 compatibility
- Loading branch information
Showing
4 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
require 'mkmf' | ||
|
||
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] | ||
RbConfig::MAKEFILE_CONFIG['CCFLAGS'] = ENV['CCFLAGS'] if ENV['CCFLAGS'] | ||
RbConfig::MAKEFILE_CONFIG['CXX'] = ENV['CXX'] if ENV['CXX'] | ||
RbConfig::MAKEFILE_CONFIG['CXXFLAGS'] = ENV['CXXFLAGS'] if ENV['CXXFLAGS'] | ||
$CXXFLAGS += " -std=c++11" | ||
RbConfig::CONFIG['PKG_CONFIG'] = 'pkg-config' | ||
|
||
if dir_config("exiv2") == [nil, nil] | ||
pkg_config("exiv2") | ||
end | ||
have_library("exiv2") | ||
|
||
# Some extensions are optional in versions <= 0.27 and also don't exist in | ||
# versions >= 0.28. | ||
# Check if they're enabled in the existing exiv2 headers | ||
# configuration and include the relevant libraries. | ||
if have_macro("EXV_USE_SSH", "exiv2/exv_conf.h") | ||
if dir_config("libssh") == [nil, nil] | ||
pkg_config("libssh") | ||
end | ||
have_library("libssh") | ||
end | ||
|
||
if have_macro("EXV_USE_CURL", "exiv2/exv_conf.h") | ||
if dir_config("libcurl") == [nil, nil] | ||
pkg_config("libcurl") | ||
end | ||
have_library("libcurl") | ||
end | ||
|
||
create_makefile("exiv2/exiv2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# coding: utf-8 | ||
module Exiv2 | ||
VERSION = "0.1.1" | ||
VERSION = "0.1.2" | ||
end |