Skip to content

Commit

Permalink
Merge pull request #21 from envato/viraptor/pkg-config
Browse files Browse the repository at this point in the history
Use pkg-config for library detection
  • Loading branch information
viraptor authored Feb 7, 2022
2 parents 9e02450 + 40ff6b3 commit 18c044d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ext/exiv2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
RbConfig::MAKEFILE_CONFIG['CXX'] = ENV['CXX'] if ENV['CXX']
RbConfig::MAKEFILE_CONFIG['CXXFLAGS'] = ENV['CXXFLAGS'] if ENV['CXXFLAGS']

dir_config("exiv2")
if dir_config("exiv2") == [nil, nil]
pkg_config("exiv2")
end
have_library("exiv2")
create_makefile("exiv2/exiv2")
2 changes: 1 addition & 1 deletion lib/exiv2/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coding: utf-8
module Exiv2
VERSION = "0.0.10"
VERSION = "0.0.11"
end

0 comments on commit 18c044d

Please sign in to comment.