Projects
Multimedia
uvg266
uvg266-add_library_version.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File uvg266-add_library_version.patch of Package uvg266
Index: uvg266-0.4.1/CMakeLists.txt =================================================================== --- uvg266-0.4.1.orig/CMakeLists.txt +++ uvg266-0.4.1/CMakeLists.txt @@ -128,9 +128,8 @@ if(MSVC) endif() if(BUILD_SHARED_LIBS) - list( APPEND CMAKE_INSTALL_RPATH "${UVG266_INSTALL_LIBDIR}" "./" "../lib" ) - set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) - add_library(uvg266 SHARED ${LIB_SOURCES}) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE) + add_library(uvg266-__VERSION__ SHARED ${LIB_SOURCES}) else() add_library(uvg266 STATIC ${LIB_SOURCES}) if(MSVC) # Fix a linking problem with visual studio when the library is the same name as the binary @@ -139,9 +138,9 @@ else() endif() -target_include_directories(uvg266 PUBLIC src) -target_include_directories(uvg266 PUBLIC src/extras) -target_include_directories(uvg266 PUBLIC src/strategies) +target_include_directories(uvg266-__VERSION__ PUBLIC src) +target_include_directories(uvg266-__VERSION__ PUBLIC src/extras) +target_include_directories(uvg266-__VERSION__ PUBLIC src/strategies) file(GLOB LIB_SOURCES_STRATEGIES_AVX2 RELATIVE ${PROJECT_SOURCE_DIR} "src/strategies/avx2/*.c") file(GLOB LIB_SOURCES_STRATEGIES_SSE41 RELATIVE ${PROJECT_SOURCE_DIR} "src/strategies/sse41/*.c") @@ -162,7 +161,7 @@ endif() add_executable(uvg266-bin ${CLI_SOURCES}) -target_link_libraries(uvg266-bin PUBLIC uvg266) +target_link_libraries(uvg266-bin PUBLIC uvg266-__VERSION__) set_target_properties(uvg266-bin PROPERTIES OUTPUT_NAME uvg266) set_target_properties(uvg266-bin PROPERTIES RUNTIME_OUTPUT_NAME uvg266) @@ -179,7 +178,7 @@ else() endif() set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) - target_link_libraries(uvg266 PUBLIC Threads::Threads) + target_link_libraries(uvg266-__VERSION__ PUBLIC Threads::Threads) include(CheckLibraryExists) @@ -189,7 +188,7 @@ else() set(EXTRA_LIBS ${EXTRA_LIBS} m) endif (HAVE_LIB_M) - target_link_libraries(uvg266 PUBLIC ${EXTRA_LIBS}) + target_link_libraries(uvg266-__VERSION__ PUBLIC ${EXTRA_LIBS}) target_link_libraries(uvg266-bin PUBLIC ${EXTRA_LIBS}) endif() @@ -239,7 +238,7 @@ source_group( "" FILES ${SOURCE_GROUP_TO install(FILES ${PROJECT_SOURCE_DIR}/src/uvg266.pc DESTINATION ${UVG266_INSTALL_LIBDIR}/pkgconfig) install(TARGETS uvg266-bin DESTINATION ${UVG266_INSTALL_BINDIR}) -install(TARGETS uvg266 ARCHIVE DESTINATION "${UVG266_INSTALL_LIBDIR}" LIBRARY DESTINATION "${UVG266_INSTALL_LIBDIR}" RUNTIME DESTINATION "${UVG266_INSTALL_BINDIR}") +install(TARGETS uvg266-__VERSION__ ARCHIVE DESTINATION "${UVG266_INSTALL_LIBDIR}" LIBRARY DESTINATION "${UVG266_INSTALL_LIBDIR}" RUNTIME DESTINATION "${UVG266_INSTALL_BINDIR}") install(FILES ${PROJECT_SOURCE_DIR}/src/uvg266.h DESTINATION ${UVG266_INSTALL_INCLUDEDIR}) install(FILES ${PROJECT_SOURCE_DIR}/doc/uvg266.1 DESTINATION ${UVG266_INSTALL_MANDIR}) Index: uvg266-0.4.1/src/uvg266.pc.in =================================================================== --- uvg266-0.4.1.orig/src/uvg266.pc.in +++ uvg266-0.4.1/src/uvg266.pc.in @@ -1,12 +1,12 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -libdir=${prefix}/lib +libdir=${prefix}/lib@LIB_SUFFIX@ incdir=${prefix}/include Name: libuvg266 Description: @CMAKE_PROJECT_DESCRIPTION@ URL: @CMAKE_PROJECT_HOMEPAGE_URL@ Version: @PROJECT_VERSION@ -Libs: -L${libdir} -luvg266 +Libs: -L${libdir} -luvg266-__VERSION__ Libs.private: @LIBS@ Cflags: -I${incdir}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.