You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.1 KiB

  1. --- a/src/CMakeLists.txt
  2. +++ b/src/CMakeLists.txt
  3. @@ -88,7 +88,7 @@ if (BUILD_FRAMEWORK)
  4. set_target_properties (${PROJECT_NAME} PROPERTIES FRAMEWORK TRUE)
  5. elseif (NOT WIN32)
  6. set (TARGET_PCS ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc)
  7. - configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.in ${TARGET_PCS})
  8. + configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.in ${TARGET_PCS} @ONLY)
  9. install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
  10. endif ()
  11. @@ -112,7 +112,7 @@ if (WITH_LSR_BINDINGS)
  12. set_target_properties (${LSR} PROPERTIES FRAMEWORK TRUE)
  13. elseif (NOT WIN32)
  14. set (TARGET_PCS "${TARGET_PCS} ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc")
  15. - configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${LSR}.pc.in ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc)
  16. + configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${LSR}.pc.in ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc @ONLY)
  17. install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
  18. endif ()
  19. endif ()
  20. --- a/src/soxr-lsr.pc.in
  21. +++ b/src/soxr-lsr.pc.in
  22. @@ -1,5 +1,10 @@
  23. -Name: ${LSR}
  24. -Description: ${DESCRIPTION_SUMMARY} (with libsamplerate-like bindings)
  25. -Version: ${PROJECT_VERSION}
  26. -Libs: -L${LIB_INSTALL_DIR} -l${LSR}
  27. -Cflags: -I${INCLUDE_INSTALL_DIR}
  28. +prefix=@CMAKE_INSTALL_PREFIX@
  29. +exec_prefix=@CMAKE_INSTALL_PREFIX@
  30. +libdir=${exec_prefix}/lib
  31. +includedir=${prefix}/include
  32. +
  33. +Name: @LSR@
  34. +Description: @DESCRIPTION_SUMMARY@ (with libsamplerate-like bindings)
  35. +Version: @PROJECT_VERSION@
  36. +Libs: -L${libdir} -l@LSR@
  37. +Cflags: -I${includedir}
  38. --- a/src/soxr.pc.in
  39. +++ b/src/soxr.pc.in
  40. @@ -1,5 +1,10 @@
  41. -Name: ${PROJECT_NAME}
  42. -Description: ${DESCRIPTION_SUMMARY}
  43. -Version: ${PROJECT_VERSION}
  44. -Libs: -L${LIB_INSTALL_DIR} -l${PROJECT_NAME}
  45. -Cflags: -I${INCLUDE_INSTALL_DIR}
  46. +prefix=@CMAKE_INSTALL_PREFIX@
  47. +exec_prefix=@CMAKE_INSTALL_PREFIX@
  48. +libdir=${exec_prefix}/lib
  49. +includedir=${prefix}/include
  50. +
  51. +Name: @PROJECT_NAME@
  52. +Description: @DESCRIPTION_SUMMARY@
  53. +Version: @PROJECT_VERSION@
  54. +Libs: -L${libdir} -l@PROJECT_NAME@
  55. +Cflags: -I${includedir}