commit:     c650a7c49c4ec469010635072c026130fa05ce1c
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 08:05:55 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Aug 27 08:05:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c650a7c4

media-plugins/swh-plugins: bump to 0.4.17

based on contributions to bug #595812

Closes: https://bugs.gentoo.org/595812
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-plugins/swh-plugins/Manifest                 |  1 +
 .../files/swh-plugins-0.4.17-system-gsm.patch      | 46 +++++++++++++++
 .../swh-plugins/swh-plugins-0.4.17.ebuild          | 67 ++++++++++++++++++++++
 3 files changed, 114 insertions(+)

diff --git a/media-plugins/swh-plugins/Manifest 
b/media-plugins/swh-plugins/Manifest
index 5b1dd4b8a78..e9cc8562d84 100644
--- a/media-plugins/swh-plugins/Manifest
+++ b/media-plugins/swh-plugins/Manifest
@@ -1,2 +1,3 @@
 DIST swh-plugins-0.4.15-patchset.tar.bz2 5208 BLAKE2B 
5ed8f49ddec0a8ed34fab05defc9489c6ae563f824f1514845719ee3716847cbeb023152d3ac1522e28712845ecd14ab62b4e4c466e9385a3df6fa3dc9a970ab
 SHA512 
b2d016c52fa3cb90e255f26f1e9f7410b7a44b50e0ede0acc5a3092abbb65fbb455c3c3eb0059083f40556e00f95262a885c8970a8b25c310f73af6913973fc5
 DIST swh-plugins-0.4.15.tar.gz 1051623 BLAKE2B 
8b18cd558160b58ad09662b3aea69ce928daa812bb5aa8089423a504a103fa6e29b4663b9bd827230742b1d7c6570c9b671b4a25cdc54e794b465edb36743a07
 SHA512 
b26d11f3887d03d39187b86f8e4061e3808ac03fa49caf24256ae457a0156be5982fe687ed50fa4240ccbb3e6250ed920d1da8c95d57cf4313e127559491eb03
+DIST swh-plugins-0.4.17.tar.gz 456472 BLAKE2B 
827e5c0d6ac692636904df64d1af8d94488f22a26cf09586b0ad32bec9017c9f3cd66074d8f786f5722e4918d32ff27be719561005273f2dcee81ea8690d6274
 SHA512 
6b566030b43c3929ce8938648abd458efa0fea0b4916410a34b4f4fa788c45e4a6ec3f46ca435f8546179ff0c4674303db22314e1c1f1d09e5f2b71e6c5aecc7

diff --git 
a/media-plugins/swh-plugins/files/swh-plugins-0.4.17-system-gsm.patch 
b/media-plugins/swh-plugins/files/swh-plugins-0.4.17-system-gsm.patch
new file mode 100644
index 00000000000..f4c1597f5ff
--- /dev/null
+++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.17-system-gsm.patch
@@ -0,0 +1,46 @@
+diff -Naurd old/configure.ac new/configure.ac
+--- old/configure.ac   2019-03-03 12:10:38.826276038 +0500
++++ new/configure.ac   2019-03-03 21:02:30.456414852 +0500
+@@ -133,17 +133,19 @@
+   AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
+ fi
+ 
+-subdirs="util gsm gverb metadata"
++GSM_LIBS=-lgsm
++
++subdirs="util gverb metadata"
+ 
+ AC_SUBST(subdirs)
+ AC_SUBST(FFTW_LIBS)
+ AC_SUBST(STATIC_FFTW_LIBS)
+ AC_SUBST(FFTW_CFLAGS)
++AC_SUBST(GSM_LIBS)
+ AC_SUBST(LIBTOOL)
+ AC_OUTPUT([
+ Makefile
+ util/Makefile
+-gsm/Makefile
+ gverb/Makefile
+ metadata/Makefile
+ po/Makefile.in
+diff -Naurd old/Makefile.am new/Makefile.am
+--- old/Makefile.am    2016-10-17 14:05:54.000000000 +0500
++++ new/Makefile.am    2019-03-03 20:58:55.298862874 +0500
+@@ -34,7 +34,7 @@
+       latency_1914.la xfade_1915.la sc4m_1916.la \
+       mbeq_1197.la pitch_scale_1193.la pitch_scale_1194.la imp_1199.la
+ 
+-SUBDIRS = po util gsm gverb metadata
++SUBDIRS = po util gverb metadata
+ 
+ # Wacky stuff to stop automake getting confused
+ EXTRA_DIST = config.rpath  @top_srcdir@/*.xml @top_srcdir@/*.c 
@top_srcdir@/*.h \
+@@ -73,7 +73,7 @@
+ sc4_1882_la_LIBADD = -Lutil -ldb -lrms
+ sc4m_1916_la_LIBADD = -Lutil -ldb -lrms
+ se4_1883_la_LIBADD = -Lutil -ldb -lrms
+-gsm_1215_la_LIBADD = gsm/libgsm.a
++gsm_1215_la_LIBADD = @GSM_LIBS@
+ gverb_1216_la_LIBADD = -Lgverb -lgverb
+ lcr_delay_1436_la_DEPENDENCIES = util/biquad.h
+ 

diff --git a/media-plugins/swh-plugins/swh-plugins-0.4.17.ebuild 
b/media-plugins/swh-plugins/swh-plugins-0.4.17.ebuild
new file mode 100644
index 00000000000..2d242b21e26
--- /dev/null
+++ b/media-plugins/swh-plugins/swh-plugins-0.4.17.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic multilib-minimal
+
+DESCRIPTION="Large collection of LADSPA audio plugins/effects"
+HOMEPAGE="http://plugin.org.uk";
+SRC_URI="https://github.com/swh/ladspa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="nls cpu_flags_x86_3dnow cpu_flags_x86_sse"
+
+RDEPEND="
+       >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}]
+       >=sci-libs/fftw-3.3.3-r2[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}
+       media-libs/ladspa-sdk
+       sys-devel/gettext
+"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README TODO )
+
+S="${WORKDIR}/ladspa-${PV}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-system-gsm.patch"
+)
+
+src_prepare() {
+       default
+
+       append-cflags -fPIC -DPIC
+
+       # Use system libgsm, also patch above, bug #252890
+       rm -rf gsm
+
+       NOCONFIGURE=1 ./autogen.sh
+
+       elibtoolize
+
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       econf \
+               $(use_enable cpu_flags_x86_sse sse) \
+               $(use_enable cpu_flags_x86_3dnow 3dnow) \
+               $(use_enable nls) \
+               --enable-fast-install \
+               --disable-dependency-tracking
+}
+
+pkg_postinst() {
+       ewarn "WARNING: You have to be careful when using the"
+       ewarn "swh plugins. Be sure to lower your sound volume"
+       ewarn "and then play around a bit with the plugins so"
+       ewarn "you get a feeling for it. Otherwise your speakers"
+       ewarn "won't like that."
+       einfo "If you use only 64 bit sequencers, you may want to disable 32 
bit support via USE flag"
+       einfo "example| media-plugins/swh-plugins -abi_x86_32"
+}

Reply via email to