I know its too soon, but ive upgraded to OSX mavericks and I\'m unable to install opencv using Homebrew.
==> Installing dependencies for opencv: cmake
I was able to install opencv on a fresh install of mavericks by installing the command line tools provided by apple (either via Xcode or via the developer's site), using the cmake installer to install cmake, then grabbing the opencv2.4.3 source and running the following:
tar -xf opencv-2.4.3.tar.gz
cd opencv-2.4.3
echo "#define GTEST_USE_OWN_TR1_TUPLE 1" | cat > temp1
cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2
cat temp1 temp2 > modules/ts/include/opencv2/ts/ts_gtest.h
mkdir build
cd build
cmake .. -Wno-dev
make -j8 && sudo make install