pkgsrc-Changes archive

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

CVS commit: pkgsrc/audio/musepack



Module Name:    pkgsrc
Committed By:   thor
Date:           Thu Jun  3 19:23:39 UTC 2021

Modified Files:
        pkgsrc/audio/musepack: distinfo
        pkgsrc/audio/musepack/patches: patch-libmpcdec_CMakeLists.txt

Log Message:
audio/musepack: fix build for missing libm


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/audio/musepack/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/musepack/distinfo
diff -u pkgsrc/audio/musepack/distinfo:1.5 pkgsrc/audio/musepack/distinfo:1.6
--- pkgsrc/audio/musepack/distinfo:1.5  Fri May 14 03:14:19 2021
+++ pkgsrc/audio/musepack/distinfo      Thu Jun  3 19:23:39 2021
@@ -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

Index: pkgsrc/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt
diff -u pkgsrc/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt:1.1 pkgsrc/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt:1.2
--- pkgsrc/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt:1.1    Thu Jul 11 10:11:26 2019
+++ pkgsrc/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt        Thu Jun  3 19:23:39 2021
@@ -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 @@ Let CMake manage the RPATH by adding an 
  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