pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/musepack audio/musepack: fix build for missing libm



details:   https://anonhg.NetBSD.org/pkgsrc/rev/996b29b9835c
branches:  trunk
changeset: 453894:996b29b9835c
user:      thor <thor%pkgsrc.org@localhost>
date:      Thu Jun 03 19:23:39 2021 +0000

description:
audio/musepack: fix build for missing libm

diffstat:

 audio/musepack/distinfo                               |  4 ++--
 audio/musepack/patches/patch-libmpcdec_CMakeLists.txt |  9 +++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 233acf863c45 -r 996b29b9835c audio/musepack/distinfo
--- a/audio/musepack/distinfo   Thu Jun 03 19:10:25 2021 +0000
+++ b/audio/musepack/distinfo   Thu Jun 03 19:23:39 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.5 2021/05/14 03:14:19 mcf Exp $
+$NetBSD: distinfo,v 1.6 2021/06/03 19:23:39 thor Exp $
 
 SHA1 (musepack_src_r475.tar.gz) = bdd4042773eb5c885df70d7a19914fa6e2306391
 RMD160 (musepack_src_r475.tar.gz) = 622d04eeb309beacd2b6bb650178dcdc42773db2
 SHA512 (musepack_src_r475.tar.gz) = 23aa16152b27ba99ff7f4672b8f91562ee9ad829bbe1ee066693eabf69844ee9f8e4b3eebf1bac78e6994119fbb53b034479a1b996576aeecbfba7d797f130b0
 Size (musepack_src_r475.tar.gz) = 188737 bytes
 SHA1 (patch-CMakeLists.txt) = c4a9dd61c1f8691d8321e6ee5f6939cd44eb7a15
-SHA1 (patch-libmpcdec_CMakeLists.txt) = 4e202b96ca3a7012cbdf4e0bcb11ed12b7932746
+SHA1 (patch-libmpcdec_CMakeLists.txt) = d5db7fac0d99f2bae6edd98e0e4498b6acf676db
 SHA1 (patch-mpcenc_keyboard.c) = 42e038f003c64369e245e3688f6f0783bd2d443a
 SHA1 (patch-mpcenc_mpcenc.h) = 507b4aa9e7a99a93d42efaf97e03855ed6970a13
diff -r 233acf863c45 -r 996b29b9835c audio/musepack/patches/patch-libmpcdec_CMakeLists.txt
--- a/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt     Thu Jun 03 19:10:25 2021 +0000
+++ b/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt     Thu Jun 03 19:23:39 2021 +0000
@@ -1,10 +1,11 @@
-$NetBSD: patch-libmpcdec_CMakeLists.txt,v 1.1 2019/07/11 10:11:26 nia Exp $
+$NetBSD: patch-libmpcdec_CMakeLists.txt,v 1.2 2021/06/03 19:23:39 thor Exp $
 
 Let CMake manage the RPATH by adding an INSTALL statement.
+Also link to libm to get some pow()er.
 
 --- libmpcdec/CMakeLists.txt.orig      2010-08-21 15:55:01.000000000 +0000
 +++ libmpcdec/CMakeLists.txt
-@@ -1,6 +1,7 @@
+@@ -1,7 +1,10 @@
  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)
@@ -12,3 +13,7 @@
  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)
  endif(SHARED)
+-
++if(NOT MSVC)
++  target_link_libraries(mpcdec m)
++endif(NOT MSVC)



Home | Main Index | Thread Index | Old Index