Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 705326 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 705326