<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">r491 | r2d | 2016-02-14 22:07:10 +0000 (Sun, 14 Feb 2016) | 9 lines
Changed paths:
   M /libmpc/trunk/libmpcdec/CMakeLists.txt

adapted patch 0001-shared.patch from buildroot:
https://git.busybox.net/buildroot/tree/package/musepack/0001-shared.patch
original changelog :

Fixup installation of shared mpcdec library.
Based on gentoo patch.

Signed-off-by: Gustavo Zacarias &lt;gustavo@zacarias.com.ar&gt;

------------------------------------------------------------------------
Index: libmpcdec/CMakeLists.txt
===================================================================
diff --git a/libmpcdec/CMakeLists.txt b/libmpc/libmpcdec/CMakeLists.txt
--- a/libmpcdec/CMakeLists.txt	(revision 490)
+++ b/libmpcdec/CMakeLists.txt	(revision 491)
@@ -4,7 +4,6 @@
 
 set(mpcdec_VERSION ${mpcdec_VERSION_MAJOR}.${mpcdec_VERSION_MINOR}.${mpcdec_VERSION_PATCH})
 
-include_directories(${libmpc_SOURCE_DIR}/include)
 install(FILES
 	${libmpc_SOURCE_DIR}/include/mpc/mpcdec.h
 	${libmpc_SOURCE_DIR}/include/mpc/reader.h
@@ -12,12 +11,16 @@
 	${libmpc_SOURCE_DIR}/include/mpc/mpc_types.h
 	DESTINATION include/mpc COMPONENT headers)
 
+include_directories(${libmpc_SOURCE_DIR}/include)
 if(SHARED)
-  add_library(mpcdec SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
-  set_target_properties(mpcdec PROPERTIES VERSION ${mpcdec_VERSION} SOVERSION ${mpcdec_VERSION_MAJOR})
-  install(TARGETS mpcdec LIBRARY DESTINATION "lib" COMPONENT libraries)
+  add_library(mpcdec_shared SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
+  set_target_properties(mpcdec_shared PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1 VERSION ${mpcdec_VERSION} SOVERSION ${mpcdec_VERSION_MAJOR})
+  install(TARGETS mpcdec_shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT libraries)
+  target_link_libraries(mpcdec_shared m)
 else(SHARED)
   add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
-  install(TARGETS mpcdec_static ARCHIVE DESTINATION "lib/static" COMPONENT libraries)
+  set_target_properties(mpcdec_static PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1)
+  install(TARGETS mpcdec_static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT libraries)
+  target_link_libraries(mpcdec_static m)
 endif(SHARED)
 
</pre></body></html>