Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.2:Staging:N
quazip
quazip-0.9-pkgconfig.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File quazip-0.9-pkgconfig.patch of Package quazip
Index: quazip-0.9/CMakeLists.txt =================================================================== --- quazip-0.9.orig/CMakeLists.txt +++ quazip-0.9/CMakeLists.txt @@ -47,16 +47,9 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_D set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)") set(LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name" FORCE) -set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig" CACHE STRING "Installation directory for pkgconfig (.pc) files" FORCE) set(QUAZIP_LIB_TARGET_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX} CACHE INTERNAL "Target name of libquazip" FORCE) add_subdirectory(quazip) -if(UNIX AND NOT APPLE) - configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/quazip.pc.cmakein - ${CMAKE_CURRENT_BINARY_DIR}/quazip.pc @ONLY) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/quazip.pc DESTINATION "${INSTALL_PKGCONFIG_DIR}") -endif() - install(FILES QuaZipConfig.cmake DESTINATION ${LIB_DESTINATION}/cmake/QuaZip${QUAZIP_LIB_VERSION_SUFFIX} RENAME QuaZip${QUAZIP_LIB_VERSION_SUFFIX}Config.cmake) Index: quazip-0.9/quazip.pc.cmakein =================================================================== --- quazip-0.9.orig/quazip.pc.cmakein +++ quazip-0.9/quazip.pc.cmakein @@ -8,5 +8,5 @@ Name: Quazip Description: Quazip Library Version: @QUAZIP_LIB_VERSION@ Libs: -lquazip@QUAZIP_LIB_VERSION_SUFFIX@ -Cflags: +Cflags: -I${includedir}/quazip@QUAZIP_LIB_VERSION_SUFFIX@ Requires: Qt5Core Index: quazip-0.9/quazip/CMakeLists.txt =================================================================== --- quazip-0.9.orig/quazip/CMakeLists.txt +++ quazip-0.9/quazip/CMakeLists.txt @@ -19,6 +19,11 @@ if (NOT WIN32) set_target_properties(quazip_static PROPERTIES OUTPUT_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX}) endif () +if(UNIX AND NOT APPLE) + configure_file( ${CMAKE_SOURCE_DIR}/quazip.pc.cmakein quazip.pc @ONLY) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/quazip.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") +endif() + target_include_directories(${QUAZIP_LIB_TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ZLIB_INCLUDE_DIRS}) target_include_directories(quazip_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ZLIB_INCLUDE_DIRS}) set_target_properties(${QUAZIP_LIB_TARGET_NAME} quazip_static PROPERTIES VERSION ${QUAZIP_LIB_VERSION} SOVERSION ${QUAZIP_LIB_SOVERSION} DEBUG_POSTFIX d)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor