summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-11-14 21:19:16 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-14 21:19:16 +0100
commit5f05646d7657b7f1a8b13d2580ca907723cf3916 (patch)
tree7d90be3786c95ee4881cf84e50087c912631a5a6 /media-sound/musepack-tools
parentmedia-libs/libreplaygain: disable static libs (diff)
downloadgentoo-5f05646d7657b7f1a8b13d2580ca907723cf3916.tar.gz
gentoo-5f05646d7657b7f1a8b13d2580ca907723cf3916.tar.bz2
gentoo-5f05646d7657b7f1a8b13d2580ca907723cf3916.zip
media-sound/musepack-tools: remove .a files
Closes: https://bugs.gentoo.org/727792 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/musepack-tools')
-rw-r--r--media-sound/musepack-tools/files/musepack-tools-465-gentoo.patch83
-rw-r--r--media-sound/musepack-tools/musepack-tools-465-r1.ebuild11
2 files changed, 71 insertions, 23 deletions
diff --git a/media-sound/musepack-tools/files/musepack-tools-465-gentoo.patch b/media-sound/musepack-tools/files/musepack-tools-465-gentoo.patch
index 51df29910742..5c80531d96f4 100644
--- a/media-sound/musepack-tools/files/musepack-tools-465-gentoo.patch
+++ b/media-sound/musepack-tools/files/musepack-tools-465-gentoo.patch
@@ -13,28 +13,79 @@
add_subdirectory(libmpcenc)
--- a/libmpcdec/CMakeLists.txt
+++ b/libmpcdec/CMakeLists.txt
-@@ -1,7 +1,22 @@
+@@ -1,7 +1,15 @@
include_directories(${libmpc_SOURCE_DIR}/include)
- if(SHARED)
- add_library(mpcdec_shared SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
+-if(SHARED)
+- add_library(mpcdec_shared SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
-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)
-+ set_target_properties(mpcdec_shared PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1 VERSION 7.0.1 SOVERSION 7)
-+ if(NOT MSVC)
-+ target_link_libraries(mpcdec_shared m)
-+ endif(NOT MSVC)
- endif(SHARED)
+-endif(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)
++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 7.0.1 SOVERSION 7)
++if(NOT MSVC)
++ target_link_libraries(mpcdec_shared m)
++endif(NOT MSVC)
+
-+set_target_properties(mpcdec_static PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1)
++add_library(mpcdec_shared STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
+
+if(NOT MSVC)
-+ target_link_libraries(mpcdec_static m)
++ target_link_libraries(mpcdec_shared m)
+endif(NOT MSVC)
+
-+install(TARGETS mpcdec_static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
-+
-+if(SHARED)
-+ install(TARGETS mpcdec_shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
-+endif(SHARED)
++install(TARGETS mpcdec_shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
+--- a/mpc2sv8/CMakeLists.txt
++++ b/mpc2sv8/CMakeLists.txt
+@@ -15,7 +15,7 @@
+ if(SHARED)
+ target_link_libraries(mpc2sv8 mpcdec_shared)
+ else(SHARED)
+- target_link_libraries(mpc2sv8 mpcdec_static)
++ target_link_libraries(mpc2sv8 mpcdec_shared)
+ endif(SHARED)
+
+ target_link_libraries(mpc2sv8 mpcenc_static)
+--- a/mpcchap/CMakeLists.txt
++++ b/mpcchap/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ if(SHARED)
+ target_link_libraries(mpcchap mpcdec_shared)
+ else(SHARED)
+- target_link_libraries(mpcchap mpcdec_static)
++ target_link_libraries(mpcchap mpcdec_shared)
+ endif(SHARED)
+
+ target_link_libraries(mpcchap mpcenc_static)
+--- a/mpccut/CMakeLists.txt
++++ b/mpccut/CMakeLists.txt
+@@ -15,7 +15,7 @@
+ if(SHARED)
+ target_link_libraries(mpccut mpcdec_shared)
+ else(SHARED)
+- target_link_libraries(mpccut mpcdec_static)
++ target_link_libraries(mpccut mpcdec_shared)
+ endif(SHARED)
+
+ target_link_libraries(mpccut mpcenc_static)
+--- a/mpcdec/CMakeLists.txt
++++ b/mpcdec/CMakeLists.txt
+@@ -21,7 +21,7 @@
+ if(SHARED)
+ target_link_libraries(mpcdec mpcdec_shared)
+ else(SHARED)
+- target_link_libraries(mpcdec mpcdec_static)
++ target_link_libraries(mpcdec mpcdec_shared)
+ endif(SHARED)
+
+ install(TARGETS mpcdec RUNTIME DESTINATION bin)
+--- a/mpcgain/CMakeLists.txt
++++ b/mpcgain/CMakeLists.txt
+@@ -22,7 +22,7 @@
+ if(SHARED)
+ target_link_libraries(mpcgain mpcdec_shared)
+ else(SHARED)
+- target_link_libraries(mpcgain mpcdec_static)
++ target_link_libraries(mpcgain mpcdec_shared)
+ endif(SHARED)
+
+ if(NOT MSVC)
diff --git a/media-sound/musepack-tools/musepack-tools-465-r1.ebuild b/media-sound/musepack-tools/musepack-tools-465-r1.ebuild
index 6c28404bd48e..e7f1c0e71931 100644
--- a/media-sound/musepack-tools/musepack-tools-465-r1.ebuild
+++ b/media-sound/musepack-tools/musepack-tools-465-r1.ebuild
@@ -16,18 +16,15 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="BSD LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
-IUSE=""
DEPEND="
>=media-libs/libcuefile-${PV}[${MULTILIB_USEDEP}]
- >=media-libs/libreplaygain-${PV}[${MULTILIB_USEDEP}]
-"
+ >=media-libs/libreplaygain-${PV}[${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}
!media-libs/libmpcdec
- !media-libs/libmpcdecsv7
-"
+ !media-libs/libmpcdecsv7"
PATCHES=(
- "${FILESDIR}/${P}-gentoo.patch"
- "${FILESDIR}/${P}-fno-common.patch"
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)