diff options
Diffstat (limited to 'media-plugins/gst-plugins-opus/gst-plugins-opus-1.18.6.ebuild')
-rw-r--r-- | media-plugins/gst-plugins-opus/gst-plugins-opus-1.18.6.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-opus/gst-plugins-opus-1.18.6.ebuild b/media-plugins/gst-plugins-opus/gst-plugins-opus-1.18.6.ebuild new file mode 100644 index 000000000000..1244f73fa897 --- /dev/null +++ b/media-plugins/gst-plugins-opus/gst-plugins-opus-1.18.6.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +GST_ORG_MODULE=gst-plugins-base + +inherit gstreamer-meson + +DESCRIPTION="Opus audio parser plugin for GStreamer" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +COMMON_DEPEND=">=media-libs/opus-1.1:=[${MULTILIB_USEDEP}]" + +RDEPEND="${COMMON_DEPEND} + !media-plugins/gst-plugins-opusparse + >=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP},ogg] +" +DEPEND="${COMMON_DEPEND}" + +src_prepare() { + default + gstreamer_system_package audio_dep:gstreamer-audio + gstreamer_system_package pbutils_dep:gstreamer-pbutils + gstreamer_system_package tag_dep:gstreamer-tag +} + +# Everything below is for building opusparse from gst-plugins-bad. Once it moves into -base, all below can be removed +SRC_URI+=" https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.${GST_TARBALL_SUFFIX}" + +in_bdir() { + pushd "${BUILD_DIR}" || die + "$@" + popd || die +} + +src_configure() { + S="${WORKDIR}/gst-plugins-base-${PV}" multilib_foreach_abi gstreamer_multilib_src_configure + S="${WORKDIR}/gst-plugins-bad-${PV}" multilib_foreach_abi gstreamer_multilib_src_configure +} + +src_compile() { + S="${WORKDIR}/gst-plugins-base-${PV}" multilib_foreach_abi in_bdir gstreamer_multilib_src_compile + S="${WORKDIR}/gst-plugins-bad-${PV}" multilib_foreach_abi in_bdir gstreamer_multilib_src_compile +} + +multilib_src_test() { + S="${WORKDIR}/gst-plugins-base-${PV}" multilib_foreach_abi in_bdir gstreamer_multilib_src_test + S="${WORKDIR}/gst-plugins-bad-${PV}" multilib_foreach_abi in_bdir gstreamer_multilib_src_test +} + +src_install() { + S="${WORKDIR}/gst-plugins-base-${PV}" multilib_foreach_abi in_bdir gstreamer_multilib_src_install + S="${WORKDIR}/gst-plugins-bad-${PV}" multilib_foreach_abi in_bdir gstreamer_multilib_src_install +} |