| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
|
GST_ORG_MODULE="gst-plugins-good"
|
| 6 |
5 |
|
| 7 |
|
inherit gstreamer-meson
|
|
6 |
# Maintenance notes and explanations of GCC handling are on the wiki:
|
|
7 |
# https://wiki.gentoo.org/wiki/Project:Toolchain/sys-devel/gcc
|
| 8 |
8 |
|
| 9 |
|
DESCRIPTION="Basepack of plugins for GStreamer"
|
| 10 |
|
HOMEPAGE="https://gstreamer.freedesktop.org/"
|
| 11 |
|
|
| 12 |
|
LICENSE="LGPL-2.1+"
|
| 13 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
|
| 14 |
|
IUSE="+orc"
|
| 15 |
|
|
| 16 |
|
# Old media-libs/gst-plugins-ugly blocker for xingmux moving from ugly->good
|
| 17 |
|
RDEPEND="
|
| 18 |
|
!<media-libs/gst-plugins-ugly-1.22.3
|
| 19 |
|
>=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP}]
|
| 20 |
|
>=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}]
|
| 21 |
|
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
| 22 |
|
orc? ( >=dev-lang/orc-0.4.33[${MULTILIB_USEDEP}] )
|
| 23 |
|
"
|
| 24 |
|
DEPEND="${RDEPEND}"
|
| 25 |
|
|
| 26 |
|
DOCS=( AUTHORS ChangeLog NEWS README.md RELEASE )
|
| 27 |
|
|
| 28 |
|
multilib_src_configure() {
|
| 29 |
|
# gst/matroska can use bzip2
|
| 30 |
|
GST_PLUGINS_NOAUTO="bz2"
|
| 31 |
|
|
| 32 |
|
local emesonargs=(
|
| 33 |
|
-Dbz2=enabled
|
|
9 |
TOOLCHAIN_PATCH_DEV="sam"
|
|
10 |
TOOLCHAIN_HAS_TESTS=1
|
|
11 |
PATCH_GCC_VER="9.5.0"
|
|
12 |
PATCH_VER="2"
|
|
13 |
PYTHON_COMPAT=( python3_{11..14} )
|
|
14 |
|
|
15 |
if [[ ${PV} == *.9999 ]] ; then
|
|
16 |
MY_PV_2=$(ver_cut 2)
|
|
17 |
MY_PV_3=1
|
|
18 |
if [[ ${MY_PV_2} == 0 ]] ; then
|
|
19 |
MY_PV_2=0
|
|
20 |
MY_PV_3=0
|
|
21 |
else
|
|
22 |
MY_PV_2=$((${MY_PV_2} - 1))
|
|
23 |
fi
|
|
24 |
|
|
25 |
# e.g. 12.2.9999 -> 12.1.1
|
|
26 |
TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
|
|
27 |
elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
|
|
28 |
# Cheesy hack for RCs
|
|
29 |
MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 1)))-RC-$(ver_cut 5)
|
|
30 |
MY_P=${PN}-${MY_PV}
|
|
31 |
GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
|
|
32 |
TOOLCHAIN_SET_S=no
|
|
33 |
S="${WORKDIR}"/${MY_P}
|
|
34 |
fi
|
|
35 |
|
|
36 |
inherit toolchain
|
|
37 |
|
|
38 |
if tc_is_live ; then
|
|
39 |
# Needs to be after inherit (for now?), bug #830908
|
|
40 |
EGIT_BRANCH=releases/gcc-$(ver_cut 1)
|
|
41 |
elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
|
|
42 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
43 |
fi
|
|
44 |
|
|
45 |
RDEPEND=""
|
|
46 |
BDEPEND="${CATEGORY}/binutils"
|
|
47 |
|
|
48 |
src_prepare() {
|
|
49 |
local p upstreamed_patches=(
|
|
50 |
# add them here
|
| 34 |
51 |
)
|
|
52 |
for p in "${upstreamed_patches[@]}"; do
|
|
53 |
rm -v "${WORKDIR}/patch/${p}" || die
|
|
54 |
done
|
| 35 |
55 |
|
| 36 |
|
gstreamer_multilib_src_configure
|
|
56 |
toolchain_src_prepare
|
| 37 |
57 |
}
|