anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / easyaudiosync / 0003-fix-darwin-app.patch
blobf547a20446f34a1d4aa934380504200d9f46f046
1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2 index e7befae..e7dc255 100644
3 --- a/src/CMakeLists.txt
4 +++ b/src/CMakeLists.txt
5 @@ -86,7 +86,6 @@ if (UNIX)
7 endif ()
8 if (APPLE)
9 - if (DMG)
10 set_target_properties(${EXECUTABLE_NAME} PROPERTIES
11 MACOSX_BUNDLE ON
12 MACOSX_BUNDLE_EXECUTABLE_NAME "${EXECUTABLE_NAME}"
13 @@ -94,21 +93,12 @@ if (UNIX)
14 MACOSX_BUNDLE_ICON_FILE "${EXECUTABLE_NAME}.icns"
15 MACOSX_BUNDLE_GUI_IDENTIFIER "${RDNS_NAME}"
16 MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}"
17 - MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}"
18 + MACOSX_BUNDLE_BUNDLE_NAME "Easy Audio Sync"
19 MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
20 MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
21 MACOSX_BUNDLE_COPYRIGHT "Public Domain"
24 - install(CODE "include(BundleUtilities)\nfixup_bundle(\"${PROJECT_BINARY_DIR}/${EXECUTABLE_NAME}.app\" \"\" \"\")")
25 - add_custom_target(my_install COMMAND ${CMAKE_COMMAND} --build . --target install WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
26 - add_custom_target(dmg
27 - COMMAND mv "${EXECUTABLE_NAME}.app" "${PROJECT_NAME}.app" # fixup_bundle won't accept app names with spaces so need to manually rename
28 - COMMAND "${MACDEPLOYQT}" "${PROJECT_NAME}.app" -dmg
29 - COMMAND mv "${PROJECT_NAME}.dmg" "${EXECUTABLE_NAME}-${PROJECT_VERSION}-${CMAKE_OSX_ARCHITECTURES}.dmg"
30 - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
31 - add_dependencies(dmg my_install)
32 - endif ()
33 else ()
34 install(TARGETS ${EXECUTABLE_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
35 set (DATA_DIR "${CMAKE_INSTALL_PREFIX}/share")