patch-CMakeLists_txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2016/01/23 19:15:13 landry Exp $
  2. No need to regen the manpage
  3. --- CMakeLists.txt.orig Thu Oct 15 08:29:47 2015
  4. +++ CMakeLists.txt Sat Jan 23 19:41:46 2016
  5. @@ -6,7 +6,7 @@ set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_S
  6. # finding Lua
  7. -find_package(Lua REQUIRED)
  8. +find_package(Lua ${MODLUA_VERSION})
  9. include_directories ( ${LUA_INCLUDE_DIR} )
  10. @@ -54,7 +54,7 @@ add_custom_command( OUTPUT runner.c
  11. # this supposes the Lua compiler 'luac' is sitting right next to the Lua interpreter 'lua'
  12. add_custom_command( OUTPUT runner.out
  13. COMMAND ${CMAKE_COMMAND} -E echo "Compiling built-in runner"
  14. - COMMAND ${LUA_EXECUTABLE}c -o runner.out ${PROJECT_SOURCE_DIR}/lsyncd.lua
  15. + COMMAND ${LUA_COMPILER} -o runner.out ${PROJECT_SOURCE_DIR}/lsyncd.lua
  16. DEPENDS ${PROJECT_SOURCE_DIR}/lsyncd.lua
  17. )
  18. @@ -75,21 +75,13 @@ set( DEFAULT_CONFIGS
  19. add_custom_command( OUTPUT defaults.out
  20. COMMAND ${CMAKE_COMMAND} -E echo "Compiling built-in default configs"
  21. - COMMAND ${LUA_EXECUTABLE}c -o defaults.out ${DEFAULT_CONFIGS}
  22. + COMMAND ${LUA_COMPILER} -o defaults.out ${DEFAULT_CONFIGS}
  23. DEPENDS ${DEFAULT_CONFIGS}
  24. )
  25. -# the manpage
  26. -add_custom_command( OUTPUT doc/lsyncd.1
  27. - COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage"
  28. - COMMAND a2x --format=manpage doc/lsyncd.1.txt
  29. - DEPENDS doc/lsyncd.1.txt
  30. -)
  31. -add_custom_target( manpage ALL DEPENDS doc/lsyncd.1 )
  32. -
  33. # compiling and linking it all together
  34. add_executable( lsyncd ${LSYNCD_SRC} )
  35. target_link_libraries( lsyncd ${LUA_LIBRARIES} )
  36. install( TARGETS lsyncd RUNTIME DESTINATION bin )
  37. -install( FILES doc/lsyncd.1 DESTINATION man)
  38. +install( FILES doc/lsyncd.1 DESTINATION man/man1)