summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-27 08:38:14 +0100
committerSam James <sam@gentoo.org>2023-07-27 09:19:32 +0100
commiteff07f5a525f6e0e18ddfe72aba9790455e6067d (patch)
tree1e74f2f6ff2f82ac01b220802b1e3ee9b5f5a2ad /media-libs/ladspa-sdk
parentmedia-libs/openh264: add missing -fPIC to flags to fix textrels (diff)
downloadgentoo-eff07f5a525f6e0e18ddfe72aba9790455e6067d.tar.gz
gentoo-eff07f5a525f6e0e18ddfe72aba9790455e6067d.tar.bz2
gentoo-eff07f5a525f6e0e18ddfe72aba9790455e6067d.zip
media-libs/ladspa-sdk: build with LFS
Closes: https://bugs.gentoo.org/911262 Thanks-to: Allen Webb <allenwebb@google.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/ladspa-sdk')
-rw-r--r--media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild b/media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild
new file mode 100644
index 000000000000..d7af263402c3
--- /dev/null
+++ b/media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs portability multilib-minimal
+
+MY_PN=${PN/-/_}
+MY_P=${MY_PN}_${PV}
+
+DESCRIPTION="The Linux Audio Developer's Simple Plugin API"
+HOMEPAGE="https://www.ladspa.org/"
+SRC_URI="https://www.ladspa.org/download/${MY_P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="media-libs/libsndfile[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-properbuild.patch"
+)
+
+HTML_DOCS="doc/*.html"
+
+src_prepare() {
+ default
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # bug #911262
+ append-lfs-flags
+}
+
+multilib_src_compile() {
+ emake -C src CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ DYNAMIC_LD_LIBS="$(dlopen_lib)" \
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
+ targets
+}
+
+multilib_src_test() {
+ emake -C src test
+}
+
+multilib_src_install() {
+ emake -C src INSTALL_PLUGINS_DIR="/usr/$(get_libdir)/ladspa" \
+ DESTDIR="${ED}" \
+ MKDIR_P="mkdir -p" \
+ install
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ # Needed for apps like rezound
+ dodir /etc/env.d
+ echo "LADSPA_PATH=${EPREFIX}/usr/$(get_libdir)/ladspa" > "${ED}/etc/env.d/60ladspa"
+}