diff options
| author | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
| commit | 9fc8b732737f139d3e466510d75668ab45578960 (patch) | |
| tree | 76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/scripts/freebsd/install.cmake | |
| parent | b75e2659df11c23aa921d2eed83c23adc282ed27 (diff) | |
| download | kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2 kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip | |
sync with upstream
Diffstat (limited to 'project/cmake/scripts/freebsd/install.cmake')
| -rw-r--r-- | project/cmake/scripts/freebsd/install.cmake | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/project/cmake/scripts/freebsd/install.cmake b/project/cmake/scripts/freebsd/install.cmake new file mode 100644 index 0000000..0c8939e --- /dev/null +++ b/project/cmake/scripts/freebsd/install.cmake | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | set(libdir ${CMAKE_INSTALL_PREFIX}/lib) | ||
| 2 | set(bindir ${CMAKE_INSTALL_PREFIX}/bin) | ||
| 3 | |||
| 4 | configure_file(${CORE_SOURCE_DIR}/tools/Linux/xbmc.sh.in | ||
| 5 | ${CORE_BUILD_DIR}/scripts/xbmc @ONLY) | ||
| 6 | configure_file(${CORE_SOURCE_DIR}/tools/Linux/xbmc-standalone.sh.in | ||
| 7 | ${CORE_BUILD_DIR}/scripts/xbmc-standalone @ONLY) | ||
| 8 | |||
| 9 | install(TARGETS xbmc-xrandr DESTINATION lib/xbmc) | ||
| 10 | install(FILES ${addon_bindings} DESTINATION include/xbmc) | ||
| 11 | install(FILES ${cmake_files} ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/modules/xbmc-config.cmake | ||
| 12 | DESTINATION lib/xbmc) | ||
| 13 | install(PROGRAMS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/xbmc | ||
| 14 | ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/xbmc-standalone | ||
| 15 | DESTINATION bin) | ||
| 16 | install(FILES ${CORE_SOURCE_DIR}/tools/Linux/FEH.py | ||
| 17 | DESTINATION share/xbmc) | ||
| 18 | |||
| 19 | install(FILES ${CORE_SOURCE_DIR}/tools/Linux/xbmc-xsession.desktop | ||
| 20 | RENAME XBMC.desktop | ||
| 21 | DESTINATION share/xsessions) | ||
| 22 | |||
| 23 | install(FILES ${CORE_SOURCE_DIR}/LICENSE.GPL | ||
| 24 | ${CORE_SOURCE_DIR}/docs/README.freebsd | ||
| 25 | DESTINATION share/doc/xbmc) | ||
| 26 | |||
| 27 | foreach(texture ${XBT_FILES}) | ||
| 28 | string(REPLACE "${CMAKE_BINARY_DIR}/" "" dir ${texture}) | ||
| 29 | get_filename_component(dir ${dir} PATH) | ||
| 30 | install(FILES ${texture} | ||
| 31 | DESTINATION share/xbmc/${dir}) | ||
| 32 | endforeach() | ||
| 33 | |||
| 34 | foreach(wraplib ${WRAP_FILES}) | ||
| 35 | get_filename_component(dir ${wraplib} PATH) | ||
| 36 | install(PROGRAMS ${CMAKE_BINARY_DIR}/${wraplib} | ||
| 37 | DESTINATION lib/xbmc/${dir}) | ||
| 38 | endforeach() | ||
| 39 | |||
| 40 | foreach(file ${install_data}) | ||
| 41 | get_filename_component(dir ${file} PATH) | ||
| 42 | install(FILES ${CMAKE_BINARY_DIR}/${file} | ||
| 43 | DESTINATION share/xbmc/${dir}) | ||
| 44 | endforeach() | ||
| 45 | |||
| 46 | install(CODE "file(STRINGS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/extra-installs dirs) | ||
| 47 | foreach(dir \${dirs}) | ||
| 48 | file(GLOB_RECURSE FILES RELATIVE ${CMAKE_BINARY_DIR} \${dir}/*) | ||
| 49 | foreach(file \${FILES}) | ||
| 50 | get_filename_component(dir \${file} PATH) | ||
| 51 | file(INSTALL \${file} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/xbmc/\${dir}) | ||
| 52 | endforeach() | ||
| 53 | endforeach()") | ||
| 54 | foreach(subdir ${build_dirs}) | ||
| 55 | string(REPLACE " " ";" subdir ${subdir}) | ||
| 56 | list(GET subdir 0 id) | ||
| 57 | install(CODE "execute_process(COMMAND make -C ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/${id}/src/${id}-build install)") | ||
| 58 | endforeach() | ||
