Skip to content
Browse files

+ Extended build to look for homebrew setup (hcatlin)

[git-p4: depot-paths = "//src/image_science/dev/": change = 5984]
  • Loading branch information...
1 parent d5b3523 commit 1816f8c61cedf5df0f1cf6b8db347a4994745619 @zenspider zenspider committed Nov 17, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/image_science.rb
8 lib/image_science.rb
@@ -88,9 +88,11 @@ def cropped_thumbnail(size) # :yields: image
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 "#{dir}/include" then
+ builder.add_compile_flags "-I#{dir}/include"
+ builder.add_link_flags "-L#{dir}/lib"
+ end
builder.add_link_flags "-lfreeimage"

3 comments on commit 1816f8c


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.


Yes, this patch is worth a new gem release


Yes, please!

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