diff --git a/ext/extconf.rb b/ext/extconf.rb index 313ebda..274e04d 100755 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -16,7 +16,11 @@ require "mkmf" # extconf.rb --with-opencv-include=/path/to/opencv/include dir_config("opencv", "/usr/local/include/opencv", "/usr/local/lib") -dir_config("ffcall", "/usr/local/include", "/usr/local/lib") +if CONFIG["arch"].include?("darwin") + dir_config("ffcall", "/opt/local/include", "/opt/local/lib") +else + dir_config("ffcall", "/usr/local/include", "/usr/local/lib") +end opencv_libraries = ["cxcore", "cv", "highgui"]