pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/musepack musepack: Let CMake manage the RPATH by...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79e450642c60
branches:  trunk
changeset: 336298:79e450642c60
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 11 10:11:26 2019 +0000

description:
musepack: Let CMake manage the RPATH by adding an INSTALL statement in the
CMakeLists.txt of the library.

from Clement Bouvier
PR pkg/54367

diffstat:

 audio/musepack/Makefile                               |   6 ++----
 audio/musepack/distinfo                               |   3 ++-
 audio/musepack/patches/patch-libmpcdec_CMakeLists.txt |  14 ++++++++++++++
 3 files changed, 18 insertions(+), 5 deletions(-)

diffs (57 lines):

diff -r 7a1fc1cef2b0 -r 79e450642c60 audio/musepack/Makefile
--- a/audio/musepack/Makefile   Thu Jul 11 09:36:33 2019 +0000
+++ b/audio/musepack/Makefile   Thu Jul 11 10:11:26 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2014/10/10 11:19:29 adam Exp $
+# $NetBSD: Makefile,v 1.3 2019/07/11 10:11:26 nia Exp $
 
 DISTNAME=      musepack_src_r475
 PKGNAME=       musepack-0rc475
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  http://files.musepack.net/source/
 
@@ -12,11 +13,8 @@
 
 USE_CMAKE=             yes
 
-INSTALLATION_DIRS=     lib
-
 post-install:
        rm -rf ${DESTDIR}${PREFIX}/include/mpc/.svn/
-       ${INSTALL_LIB} ${WRKSRC}/libmpcdec/libmpcdec.* ${DESTDIR}${PREFIX}/lib
 
 .include "../../audio/libcuefile/buildlink3.mk"
 .include "../../audio/libreplaygain/buildlink3.mk"
diff -r 7a1fc1cef2b0 -r 79e450642c60 audio/musepack/distinfo
--- a/audio/musepack/distinfo   Thu Jul 11 09:36:33 2019 +0000
+++ b/audio/musepack/distinfo   Thu Jul 11 10:11:26 2019 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.3 2017/12/18 13:01:17 jperkin Exp $
+$NetBSD: distinfo,v 1.4 2019/07/11 10:11:26 nia 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-mpcenc_keyboard.c) = 42e038f003c64369e245e3688f6f0783bd2d443a
diff -r 7a1fc1cef2b0 -r 79e450642c60 audio/musepack/patches/patch-libmpcdec_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/musepack/patches/patch-libmpcdec_CMakeLists.txt     Thu Jul 11 10:11:26 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-libmpcdec_CMakeLists.txt,v 1.1 2019/07/11 10:11:26 nia Exp $
+
+Let CMake manage the RPATH by adding an INSTALL statement.
+
+--- libmpcdec/CMakeLists.txt.orig      2010-08-21 15:55:01.000000000 +0000
++++ libmpcdec/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ 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)
++  install(TARGETS mpcdec LIBRARY DESTINATION lib)
+ 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)



Home | Main Index | Thread Index | Old Index