mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-libs/libsoundtouch: add 2.4.0 with some improvements
- explain subslot in one line - add cpu_flags_arm_neon USE - make `cond && use openp && action` consistent - do not explicitly disable integer samples - specify `-type f` in deleting .la Signed-off-by: Filip Kobierski <fkobi@pm.me> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/42522
This commit is contained in:
committed by
Miroslav Šulc
parent
7fba890c1b
commit
d80c90bd06
@@ -1 +1,2 @@
|
||||
DIST soundtouch-2.3.3.tar.gz 606780 BLAKE2B 266d20975468dc45f449ea7d79503657a4209427a811051344fbb5464dc59c1498f2089bccae921ae20eb266bb01d7933b2dd2ee05c6d4423ae1b215ab3dffb2 SHA512 9cc507e15be065fe404e3f9ac71cdc596474c4a86b04a4b969c6c3ed4aff865cdf6aee24929046818a7d3791f005778aea112d74ef4d8f60b05460755a08dbe3
|
||||
DIST soundtouch-2.4.0.tar.gz 607154 BLAKE2B 41237c616f2f6ea81b39e636c8c3e9c4f2f2e76b221a90d0d22a12b102cfb397cc8da69a92476770107741382206cef7ef8e9a2380c50c3e4936b7a5b73c4c03 SHA512 8bd199c6363104ba6c9af1abbd3c4da3567ccda5fe3a68298917817fc9312ecb0914609afba1abd864307b0a596becf450bc7073eeec17b1de5a7c5086fbc45e
|
||||
|
||||
61
media-libs/libsoundtouch/libsoundtouch-2.4.0.ebuild
Normal file
61
media-libs/libsoundtouch/libsoundtouch-2.4.0.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic multilib-minimal toolchain-funcs
|
||||
|
||||
MY_PN=${PN/lib}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates"
|
||||
HOMEPAGE="https://www.surina.net/soundtouch/ https://codeberg.org/soundtouch/soundtouch"
|
||||
SRC_URI="https://www.surina.net/${MY_PN}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/1" # subslot is libSoundTouch.so soname
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="openmp static-libs"
|
||||
IUSE+=" cpu_flags_arm_neon cpu_flags_x86_sse"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s:^\(dist_doc_DATA=\)COPYING.TXT :\1:" Makefile.am || die
|
||||
|
||||
tc-is-clang && use openmp && append-libs omp
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-shared
|
||||
$(use_enable cpu_flags_arm_neon neon-optimizations)
|
||||
$(use_enable cpu_flags_x86_sse x86-optimizations)
|
||||
$(use_enable openmp)
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user