diff --git a/CMakeLists.txt b/CMakeLists.txt index e6326a00..ce484b3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,6 +328,10 @@ elseif(SFML_OS_MACOSX) install(DIRECTORY extlibs/libs-osx/Frameworks/vorbisfile.framework DESTINATION ${CMAKE_INSTALL_FRAMEWORK_PREFIX}) endif() + if("${OPENAL_LIBRARY}" STREQUAL "${SFML_SOURCE_DIR}/extlibs/libs-osx/Frameworks/OpenAL.framework") + install(DIRECTORY "${OPENAL_LIBRARY}" DESTINATION ${CMAKE_INSTALL_FRAMEWORK_PREFIX}) + endif() + # install the Xcode templates if requested if(SFML_INSTALL_XCODE_TEMPLATES) # configure the templates plist files diff --git a/extlibs/libs-osx/Frameworks/OpenAL.framework/OpenAL b/extlibs/libs-osx/Frameworks/OpenAL.framework/OpenAL new file mode 120000 index 00000000..7a4d340e --- /dev/null +++ b/extlibs/libs-osx/Frameworks/OpenAL.framework/OpenAL @@ -0,0 +1 @@ +Versions/Current/OpenAL \ No newline at end of file diff --git a/extlibs/libs-osx/Frameworks/OpenAL.framework/Resources b/extlibs/libs-osx/Frameworks/OpenAL.framework/Resources new file mode 120000 index 00000000..953ee36f --- /dev/null +++ b/extlibs/libs-osx/Frameworks/OpenAL.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/A/OpenAL b/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/A/OpenAL new file mode 100755 index 00000000..827872e4 Binary files /dev/null and b/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/A/OpenAL differ diff --git a/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/A/Resources/Info.plist b/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/A/Resources/Info.plist new file mode 100644 index 00000000..9d630276 --- /dev/null +++ b/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + OpenAL + CFBundleIdentifier + org.sfml-dev.OpenAL + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + FMWK + CFBundleSignature + ???? + CFBundleVersion + 1.0 + + diff --git a/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/Current b/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/Current new file mode 120000 index 00000000..8c7e5a66 --- /dev/null +++ b/extlibs/libs-osx/Frameworks/OpenAL.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist.in b/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist.in index fccfa9c5..e44dee90 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist.in +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist.in @@ -228,14 +228,13 @@ require () # $1 is a SFML module like 'system' or 'audio' # copy extra dependencies if [ "$1" = "audio" ] then - # copy "FLAC" "ogg" "vorbis" "vorbisenc" "vorbisfile" frameworks too - for f in "FLAC" "ogg" "vorbis" "vorbisenc" "vorbisfile" + # copy "FLAC" "ogg" "vorbis" "vorbisenc" "vorbisfile" "OpenAL" frameworks too + for f in "FLAC" "ogg" "vorbis" "vorbisenc" "vorbisfile" "OpenAL" do copy "$CMAKE_INSTALL_FRAMEWORK_PREFIX/$f.framework" "$dest/$f.framework" done elif [ "$1" = "graphics" ] then - # copy freetype framework too copy "$CMAKE_INSTALL_FRAMEWORK_PREFIX/freetype.framework" "$dest/freetype.framework" fi fi