Problem building RawTherapee on MacOS, trying to make a debug build

I recently installed the MacOSX10.9.sdk, and I’m wondering if in doing that it hosed cmake’s ability to find the dependency packages imported by macports?

cmake -DCMAKE_BUILD_TYPE="debug"       -DPROC_TARGET_NUMBER="1" -DPROC_LABEL="generic processor"       -DCACHE_NAME_SUFFIX="5.1"       -DCMAKE_C_COMPILER="clang-mp-3.9"       -DCMAKE_CXX_COMPILER="clang++-mp-3.9"       -DWITH_LTO="OFF"       .. 
-- CMAKE_BUILD_TYPE: debug
-- Checking for module 'gtk+-3.0>=3.16'
--   No package 'gtk+-3.0' found
CMake Error at /opt/local/share/cmake-3.8/Modules/FindPkgConfig.cmake:416 (message):
  A required package was not found
Call Stack (most recent call first):
  /opt/local/share/cmake-3.8/Modules/FindPkgConfig.cmake:589 (_pkg_check_modules_internal)
  CMakeLists.txt:265 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/Users/tune/repo-rt/build/CMakeFiles/CMakeOutput.log".

I’ve got MACOSX_DEPLOYMENT_TARGET=10.9 in the environment but wondering if I can do more to unbreak the way cmake found packages before the change, like another variable or argument to cmake?

solved by commenting out the test… line at the end of my .profile put in by fink, and placing opt/local/lib as the first path in PATH.