Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ Extended build to look for homebrew setup (hcatlin)

[git-p4: depot-paths = "//src/image_science/dev/": change = 5984]
  • Loading branch information...
commit 1816f8c61cedf5df0f1cf6b8db347a4994745619 1 parent d5b3523
@zenspider zenspider authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/image_science.rb
View
8 lib/image_science.rb
@@ -88,9 +88,11 @@ def cropped_thumbnail(size) # :yields: image
end
inline do |builder|
- if test ?d, "/opt/local" then
- builder.add_compile_flags "-I/opt/local/include"
- builder.add_link_flags "-L/opt/local/lib"
+ %w[/opt/local /usr/local].each do |dir|
+ if File.directory? "#{dir}/include" then
+ builder.add_compile_flags "-I#{dir}/include"
+ builder.add_link_flags "-L#{dir}/lib"
+ end
end
builder.add_link_flags "-lfreeimage"

3 comments on commit 1816f8c

@joshfrench

This patch alone is worth a new gem release. FreeImage has historically been a pain to install, Homebrew cleared that up; ImageScience should be just as easy.

@steve21124

Yes, this patch is worth a new gem release

@benjaminbooth

Yes, please!

Please sign in to comment.
Something went wrong with that request. Please try again.