From 45478f2dfe31b4086096c49aaa19b307137015e7 Mon Sep 17 00:00:00 2001 From: Ryan Baumann Date: Tue, 19 Aug 2008 15:30:09 -0400 Subject: [PATCH] Use MacPorts ffcall library location on Mac --- ext/extconf.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"]