patch-mpcgain_CMakeLists_txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $OpenBSD: patch-mpcgain_CMakeLists_txt,v 1.2 2013/06/23 14:30:52 dcoppa Exp $
  2. --- mpcgain/CMakeLists.txt.orig Sat Aug 21 17:55:01 2010
  3. +++ mpcgain/CMakeLists.txt Sun Jun 23 15:01:31 2013
  4. @@ -1,28 +1,15 @@
  5. -FIND_PATH(REPLAY_GAIN_INCLUDE_DIR replaygain/gain_analysis.h
  6. - /usr/include
  7. - /usr/local/include
  8. - ${libmpc_SOURCE_DIR}/../libreplaygain/include
  9. -)
  10. -
  11. -FIND_LIBRARY(REPLAY_GAIN_LIBRARY NAMES replaygain replaygain_static PATHS
  12. - /usr/lib
  13. - /usr/local/lib
  14. - ${libmpc_SOURCE_DIR}/../libreplaygain/bin/src/release
  15. -)
  16. -
  17. include_directories(${libmpc_SOURCE_DIR}/include)
  18. -include_directories(${REPLAY_GAIN_INCLUDE_DIR})
  19. link_directories(${libmpc_BINARY_DIR}/libmpcdec)
  20. -add_executable(mpcgain mpcgain.c)
  21. +add_executable(mpcgain mpcgain.c gain_analysis.c)
  22. -target_link_libraries(mpcgain ${REPLAY_GAIN_LIBRARY})
  23. -
  24. if(SHARED)
  25. - target_link_libraries(mpcgain mpcdec)
  26. + target_link_libraries(mpcgain mpcdec_shared)
  27. + add_dependencies(mpcgain mpcdec_shared)
  28. else(SHARED)
  29. target_link_libraries(mpcgain mpcdec_static)
  30. + add_dependencies(mpcgain mpcdec_static)
  31. endif(SHARED)
  32. if(NOT MSVC)