diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2021-03-18 02:16:22 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2021-03-18 02:16:22 +0000 |
commit | 75342d7b162e5ac3900f16b4bf71e4cefbcdc589 (patch) | |
tree | 17afc5aa4df0598268f2fbdd920c41f41e0e561e /games/emptyepsilon/files/patch-CMakeLists.txt | |
parent | aeb3628206ca034d558a9271d96727c2fbb9e2b7 (diff) | |
download | ports-75342d7b162e5ac3900f16b4bf71e4cefbcdc589.tar.gz ports-75342d7b162e5ac3900f16b4bf71e4cefbcdc589.zip |
Notes
Diffstat (limited to 'games/emptyepsilon/files/patch-CMakeLists.txt')
-rw-r--r-- | games/emptyepsilon/files/patch-CMakeLists.txt | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/games/emptyepsilon/files/patch-CMakeLists.txt b/games/emptyepsilon/files/patch-CMakeLists.txt index aa3340c8e949..a3773917c061 100644 --- a/games/emptyepsilon/files/patch-CMakeLists.txt +++ b/games/emptyepsilon/files/patch-CMakeLists.txt @@ -1,6 +1,6 @@ ---- CMakeLists.txt.orig 2019-09-10 10:55:00 UTC +--- CMakeLists.txt.orig 2021-03-16 13:36:34 UTC +++ CMakeLists.txt -@@ -464,16 +464,16 @@ else() +@@ -536,25 +536,25 @@ else() install(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) endif() @@ -12,7 +12,16 @@ - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - COMMENT "Building script reference documentation.") - add_custom_target(script_reference ALL DEPENDS ${CMAKE_BINARY_DIR}/script_reference.html) -- install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION .) +- +- # Matches install logic above. +- if(WIN32) +- install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION .) +- elseif(APPLE) +- install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION "EmptyEpsilon.app/Contents/Resources") +- elseif(NOT ANDROID) +- # DOCDIR already has PROJECT_NAME (EmptyEpsilon) appended (from CMake docs) +- install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION "${CMAKE_INSTALL_FULL_DOCDIR}") +- endif() -endif() +#find_package(PythonInterp) +#if(PYTHONINTERP_FOUND) @@ -22,8 +31,17 @@ +# WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} +# COMMENT "Building script reference documentation.") +# add_custom_target(script_reference ALL DEPENDS ${CMAKE_BINARY_DIR}/script_reference.html) -+# install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION .) ++# ++# # Matches install logic above. ++# if(WIN32) ++# install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION .) ++# elseif(APPLE) ++# install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION "EmptyEpsilon.app/Contents/Resources") ++# elseif(NOT ANDROID) ++# # DOCDIR already has PROJECT_NAME (EmptyEpsilon) appended (from CMake docs) ++# install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION "${CMAKE_INSTALL_FULL_DOCDIR}") ++# endif() +#endif() - set(CPACK_PACKAGE_EXECUTABLES ${EXECUTABLE_NAME}) - set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}") + add_custom_target(update_locale + COMMAND sed -i "/^#: /d" resources/locale/en.po |