Commit 99781d53 authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix install on macOS

parent e4670c65
Pipeline #81115 canceled with stage
......@@ -80,6 +80,13 @@ else()
set(MLT_PREFIX ${MLT_ROOT_DIR})
endif()
# macOS
if(APPLE)
set(DATA_INSTALL_PREFIX "")
else()
set(DATA_INSTALL_PREFIX "/kdenlive")
endif()
if(KF5FileMetaData_FOUND)
message(STATUS "Found KF5 FileMetadata to extract file metadata")
set(KF5_FILEMETADATA TRUE)
......
......@@ -25,7 +25,7 @@ install(FILES
kdenlivetranscodingrc
kdenlivedefaultlayouts.rc
DESTINATION ${DATA_INSTALL_DIR}/kdenlive)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX})
install(FILES kdenlive.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
if(KF5NewStuff_VERSION VERSION_GREATER "5.56.0")
install(FILES kdenlive_renderprofiles.knsrc kdenlive_wipes.knsrc kdenlive_keyboardschemes.knsrc kdenlive_titles.knsrc kdenlive_luts.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
......@@ -33,7 +33,7 @@ else()
install(FILES kdenlive_renderprofiles.knsrc kdenlive_wipes.knsrc kdenlive_keyboardschemes.knsrc kdenlive_titles.knsrc kdenlive_luts.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
endif()
install(FILES profiles.xml DESTINATION ${DATA_INSTALL_DIR}/kdenlive/export)
install(FILES profiles.xml DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/export)
install(FILES org.kde.kdenlive.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES org.kde.kdenlive.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
......
......@@ -168,7 +168,7 @@ vignette.xml
volume.xml
wave.xml
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/effects)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/effects)
add_subdirectory(update)
add_subdirectory(avfilter)
......@@ -87,4 +87,4 @@ avfilter_weave.xml
avfilter_xbr.xml
avfilter_yadif.xml
avfilter_zoompan.xml
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/effects)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/effects)
......@@ -8,4 +8,4 @@ frei0r.lightgraffiti.js
frei0r.select0r.js
frei0r.sopsat.js
frei0r.vertigo.js
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/effects/update)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/effects/update)
......@@ -4,4 +4,4 @@ count.xml
noise.xml
frei0r_test_pat_b.xml
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/generators)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/generators)
......@@ -17,7 +17,7 @@ PAL/square.pgm
PAL/square2-bars.pgm
PAL/square2.pgm
PAL/symmetric_clock.pgm
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/lumas/PAL)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/lumas/PAL)
INSTALL(FILES
HD/bi-linear_x.pgm
......@@ -38,4 +38,4 @@ HD/square.pgm
HD/square2-bars.pgm
HD/square2.pgm
HD/symmetric_clock.pgm
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/lumas/HD)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/lumas/HD)
......@@ -7,4 +7,4 @@ dci_2160p_30
dci_2160p_50
dci_2160p_5994
dci_2160p_60
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/profiles)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/profiles)
......@@ -6,4 +6,4 @@ pexels_photo.json
pexels_video.json
pixabay_photo.json
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/resourceproviders)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/resourceproviders)
......@@ -3,4 +3,4 @@ INSTALL(FILES
speech.py
speechtotext.py
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/scripts)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/scripts)
INSTALL(FILES
Premiere
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/shortcuts)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/shortcuts)
FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.kdenlivetitle")
INSTALL (FILES ${files} DESTINATION ${DATA_INSTALL_DIR}/kdenlive/titles)
INSTALL (FILES ${files} DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/titles)
......@@ -12,6 +12,6 @@ luma.xml
mix.xml
composite.xml
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/transitions)
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/transitions)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment