LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cmake_libsuffix.patch of Package libsbigudrv (Project home:lupinix-indi:fedora-bleeding)

diff -Naur libsbig/CMakeLists.txt libsbig.new/CMakeLists.txt
--- libsbig/CMakeLists.txt	2017-10-02 22:18:13.000000000 +0200
+++ libsbig.new/CMakeLists.txt	2017-10-05 12:20:57.409721567 +0200
@@ -6,7 +6,6 @@
 
 set(FIRMWARE_INSTALL_DIR "/lib/firmware")
 set(UDEVRULES_INSTALL_DIR "/lib/udev/rules.d" CACHE STRING "Base directory for udev rules")
-set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
 
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error")
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error")
@@ -25,14 +24,8 @@
  ENDIF (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "armv6l")
 ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
 
-# Make sure symbolic links are installed
-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_sbig_symlink.cmake "
-exec_program(${CMAKE_COMMAND} ARGS -E create_symlink libsbigudrv.so.${SBIG_VERSION} ${LIB_INSTALL_DIR}${LIB_POSTFIX}/libsbigudrv.so.${SBIG_SOVERSION})\n
-exec_program(${CMAKE_COMMAND} ARGS -E create_symlink libsbigudrv.so.${SBIG_SOVERSION} ${LIB_INSTALL_DIR}${LIB_POSTFIX}/libsbigudrv.so)\n
-")
 
-install( FILES ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION} DESTINATION ${LIB_INSTALL_DIR}${LIB_POSTFIX})
+install( FILES ${CMAKE_BINARY_DIR}/libsbigudrv.so.${SBIG_VERSION} DESTINATION ${LIB_INSTALL_DIR})
 install( FILES sbigudrv.h DESTINATION include/libsbig)
 install( FILES sbigucam.hex sbiglcam.hex sbigfcam.hex sbigpcam.hex stfga.bin DESTINATION ${FIRMWARE_INSTALL_DIR})
 install( FILES 51-sbig-debian.rules DESTINATION ${UDEVRULES_INSTALL_DIR})
-install( SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_sbig_symlink.cmake)