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

Fix MacPorts Issue. Could not open library dlopen #144

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/vips.rb
Expand Up @@ -21,6 +21,8 @@ class << self

if FFI::Platform.windows?
glib_libname = 'libglib-2.0-0.dll'
elsif FFI::Platform.mac? and FileTest.exists?('/opt/local/lib/libglib-2.0.dylib')
glib_libname = '/opt/local/lib/libglib-2.0.dylib'
else
glib_libname = 'glib-2.0'
end
Expand Down Expand Up @@ -121,6 +123,8 @@ module GObject

if FFI::Platform.windows?
gobject_libname = 'libgobject-2.0-0.dll'
elsif FFI::Platform.mac? and FileTest.exists?('/opt/local/lib/libgobject-2.0.dylib')
gobject_libname = '/opt/local/lib/libgobject-2.0.dylib'
else
gobject_libname = 'gobject-2.0'
end
Expand Down Expand Up @@ -464,6 +468,8 @@ module Vips

if FFI::Platform.windows?
vips_libname = 'libvips-42.dll'
elsif FFI::Platform.mac? and FileTest.exists?('/opt/local/lib/libvips.dylib')
vips_libname = '/opt/local/lib/libvips.dylib'
else
vips_libname = 'vips'
end
Expand Down