blob: 3cded19e1794c8a7f883dfcdaebc0dd6324d0b59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="QtAV"
CAPI_HASH="b43aa93"
inherit cmake qmake-utils
DESCRIPTION="Multimedia playback framework based on Qt + FFmpeg"
HOMEPAGE="https://www.qtav.org"
SRC_URI="https://github.com/wang-bin/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://dev.gentoo.org/~johu/distfiles/${P}-capi.h-${CAPI_HASH}.xz"
LICENSE="GPL-3+ LGPL-2.1+"
SLOT="0/1"
KEYWORDS="amd64"
IUSE="gui libav opengl portaudio pulseaudio vaapi"
REQUIRED_USE="gui? ( opengl )"
DEPEND="
dev-qt/qtcore:5
dev-qt/qtdeclarative:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
gui? ( dev-qt/qtsql:5 )
libav? (
media-video/libav:=
x11-libs/libX11
)
!libav? ( media-video/ffmpeg:= )
opengl? ( dev-qt/qtopengl:5 )
portaudio? ( media-libs/portaudio )
pulseaudio? ( media-sound/pulseaudio )
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
PATCHES=(
"${FILESDIR}"/${P}-installpaths.patch
"${FILESDIR}"/${P}-ffmpeg4-{1,2}.patch # bugs 660852, 670765
"${FILESDIR}"/${P}-qt5.14.patch
)
src_prepare() {
cmake_src_prepare
cp "${WORKDIR}/${P}-capi.h-${CAPI_HASH}" contrib/capi/capi.h \
|| die "Failed to add missing header"
}
src_configure() {
local mycmakeargs=(
-DBUILD_TESTS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_PLAYERS=$(usex gui)
-DBUILD_QT5OPENGL=$(usex opengl)
-DHAVE_PORTAUDIO=$(usex portaudio)
-DHAVE_PULSE=$(usex pulseaudio)
-DHAVE_VAAPI=$(usex vaapi)
)
cmake_src_configure
pushd tools/install_sdk >/dev/null
eqmake5
popd >/dev/null
}
src_install() {
cmake_src_install
emake -C tools/install_sdk INSTALL_ROOT="${ED}" install
}
|