Skip to content

Commit

Permalink
Use pkg-config instead of imlib2-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgrosser committed Feb 9, 2022
1 parent 6e70b02 commit 0b26a77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Rszr 1.1.0 (Feb 9, 2022)

* Use pkg_config as imlib2 dropped imlib2-config

## Rszr 1.0.1 (Nov 10, 2021)

* Remove libexif.h header check
Expand Down
5 changes: 2 additions & 3 deletions ext/rszr/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
require 'mkmf'
require 'rbconfig'

imlib2_config = with_config('imlib2-config', 'imlib2-config')
pkg_config('imlib2')

$CFLAGS << ' -DX_DISPLAY_MISSING ' << `#{imlib2_config} --cflags`.chomp
$LDFLAGS << ' ' << `#{imlib2_config} --libs`.chomp
$CFLAGS << ' -DX_DISPLAY_MISSING'
$LDFLAGS.gsub!(/\ -lX11\ -lXext/, '') if RUBY_PLATFORM =~ /darwin/

unless find_header('Imlib2.h')
Expand Down
2 changes: 1 addition & 1 deletion lib/rszr/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Rszr
VERSION = '1.0.1'
VERSION = '1.1.0'
end

0 comments on commit 0b26a77

Please sign in to comment.