diff options
Diffstat (limited to 'sci-libs/libqhy/files/libqhy-1.6.2_fix_cmake_symlinks.patch')
-rw-r--r-- | sci-libs/libqhy/files/libqhy-1.6.2_fix_cmake_symlinks.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-libs/libqhy/files/libqhy-1.6.2_fix_cmake_symlinks.patch b/sci-libs/libqhy/files/libqhy-1.6.2_fix_cmake_symlinks.patch new file mode 100644 index 0000000..ad8eb19 --- /dev/null +++ b/sci-libs/libqhy/files/libqhy-1.6.2_fix_cmake_symlinks.patch @@ -0,0 +1,24 @@ +diff -urN indi-1.6.2/3rdparty/libqhy/CMakeLists.txt indi-1.6.2.new/3rdparty/libqhy/CMakeLists.txt +--- indi-1.6.2/3rdparty/libqhy/CMakeLists.txt 2018-01-08 14:45:25.000000000 +0100 ++++ indi-1.6.2.new/3rdparty/libqhy/CMakeLists.txt 2018-01-29 22:17:29.543186992 +0100 +@@ -44,17 +44,13 @@ + install(FILES 85-qhy.rules DESTINATION ${UDEVRULES_INSTALL_DIR}) + install(FILES ${CMAKE_BINARY_DIR}/libqhy.so.${LIBQHY_VERSION} DESTINATION ${LIB_INSTALL_DIR}${LIB_POSTFIX}) + +-# Make sure symbolic links are installed +-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_libqhy_symlink.cmake " +-exec_program(${CMAKE_COMMAND} ARGS -E create_symlink libqhy.so.${LIBQHY_VERSION} ${LIB_INSTALL_DIR}${LIB_POSTFIX}/libqhy.so.${LIBQHY_SOVERSION})\n +-exec_program(${CMAKE_COMMAND} ARGS -E create_symlink libqhy.so.${LIBQHY_SOVERSION} ${LIB_INSTALL_DIR}${LIB_POSTFIX}/libqhy.so)\n +-") +- + ENDIF (APPLE) + + install(FILES qhyccd.h qhyccdcamdef.h qhyccderr.h qhyccdstruct.h log4z.h qhycam.h DESTINATION include/libqhy) + +-install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_libqhy_symlink.cmake) ++# Make sure symbolic links are installed ++install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"libqhy.so.${LIBQHY_VERSION}\" \"libqhy.so.${LIBQHY_SOVERSION}\" WORKING_DIRECTORY \"\$ENV{DESTDIR}/${BUILD_ROOT}${LIB_INSTALL_DIR}${LIB_POSTFIX}\" )" ) ++install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"libqhy.so.${LIBQHY_SOVERSION}\" \"libqhy.so\" WORKING_DIRECTORY \"\$ENV{DESTDIR}/${BUILD_ROOT}${LIB_INSTALL_DIR}${LIB_POSTFIX}\" )" ) + install( + CODE " + file(GLOB QHY_FIRMWARE ${CMAKE_CURRENT_SOURCE_DIR}/firmware/*) \n |