71 lines
2 KiB
Bash
71 lines
2 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils autotools multilib-minimal
|
|
|
|
DESCRIPTION="Large collection of LADSPA audio plugins/effects"
|
|
HOMEPAGE="http://plugin.org.uk"
|
|
SRC_URI="http://plugin.org.uk/releases/${PV}/${P}.tar.gz
|
|
https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.bz2"
|
|
|
|
SLOT="0"
|
|
LICENSE="GPL-2"
|
|
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
|
|
IUSE="cpu_flags_x86_3dnow nls 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
|
|
virtual/pkgconfig"
|
|
|
|
DOCS=( AUTHORS ChangeLog README TODO )
|
|
|
|
src_prepare() {
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-pic.patch"
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-plugindir.patch"
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-riceitdown.patch"
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-gettext.patch"
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-x86-asm-optional.patch"
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-glibc-2.10.patch"
|
|
|
|
# Use system libgsm, bug #252890
|
|
rm -rf gsm
|
|
epatch "${WORKDIR}/${P}-patchset/${P}-system_gsm.patch"
|
|
|
|
# This is to update gettext macros, otherwise they are incompatible with
|
|
# recent libtools, bug #231767
|
|
autopoint -f || die
|
|
|
|
# it doesn't get updated otherwise
|
|
rm -f missing
|
|
|
|
# old shipped version breaks multilib build #475022
|
|
rm -f config.h
|
|
|
|
# Fix build with automake 1.13
|
|
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
|
|
|
|
eautoreconf
|
|
elibtoolize
|
|
}
|
|
|
|
multilib_src_configure() {
|
|
ECONF_SOURCE="${S}" econf \
|
|
$(use_enable cpu_flags_x86_sse sse) \
|
|
$(use_enable cpu_flags_x86_3dnow 3dnow) \
|
|
$(use_enable nls) \
|
|
--enable-fast-install
|
|
}
|
|
|
|
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."
|
|
}
|