Looks like something is wrong with the current sources if you want to compile SFML for Mac OS X 10.5 or earlier.
I've been adding this in one of the CMake files for my own purpose:
if(MACOSX)
add_definitions("-arch ppc -arch i386 -arch x86_64 --sysroot=/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5")
endif()
But it gives these errors:
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/cg_sf_conversion.cpp.o
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp: In function ‘sf::VideoMode sf::priv::ConvertCGModeToSFMode(const __CFDictionary*)’:
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:99: error: ‘CurrentMode’ was not declared in this scope
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:100: error: ‘mode’ was not declared in this scope
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp: In function ‘const __CFDictionary* sf::priv::ConvertSFModeToCGMode(sf::VideoMode)’:
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:133: error: expected `)' before ‘__null’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:197: error: too few arguments to function ‘const __CFDictionary* CGDisplayBestModeForParameters(CGDirectDisplayID, size_t, size_t, size_t, boolean_t*)’
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:133: error: at this point in file
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp: In function ‘sf::VideoMode sf::priv::ConvertCGModeToSFMode(const __CFDictionary*)’:
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:99: error: ‘CurrentMode’ was not declared in this scope
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:100: error: ‘mode’ was not declared in this scope
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp: In function ‘const __CFDictionary* sf::priv::ConvertSFModeToCGMode(sf::VideoMode)’:
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:133: error: expected `)' before ‘__null’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:197: error: too few arguments to function ‘const __CFDictionary* CGDisplayBestModeForParameters(CGDirectDisplayID, size_t, size_t, size_t, boolean_t*)’
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:133: error: at this point in file
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp: In function ‘sf::VideoMode sf::priv::ConvertCGModeToSFMode(const __CFDictionary*)’:
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:99: error: ‘CurrentMode’ was not declared in this scope
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:100: error: ‘mode’ was not declared in this scope
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp: In function ‘const __CFDictionary* sf::priv::ConvertSFModeToCGMode(sf::VideoMode)’:
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:133: error: expected `)' before ‘__null’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:197: error: too few arguments to function ‘const __CFDictionary* CGDisplayBestModeForParameters(CGDirectDisplayID, size_t, size_t, size_t, boolean_t*)’
.../sfml2/src/SFML/Window/OSX/cg_sf_conversion.cpp:133: error: at this point in file
Switching back to the 10.6 SDK fixes this issue.