blob: 8b1ede09936e3d2b7010dfd2ea3ff6f80f64e65a (
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
73
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools multilib-minimal
PATCHES=( "${FILESDIR}/${PN}-1.0.2-qtbindir.patch" )
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/strukturag/${PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/strukturag/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Open h.265 video codec implementation"
HOMEPAGE="https://github.com/strukturag/libde265"
LICENSE="GPL-3"
SLOT="0"
IUSE="cpu_flags_x86_sse debug libav qt5 static-libs"
DEPEND="
media-libs/libsdl[${MULTILIB_USEDEP}]
!libav? ( media-video/ffmpeg:=[${MULTILIB_USEDEP}] )
libav? ( media-video/libav:=[${MULTILIB_USEDEP}] )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
)
"
RDEPEND="${DEPEND}"
src_prepare() {
default
eautoreconf
# without this, headers would be missing and make would fail
multilib_copy_sources
}
multilib_src_configure() {
local myeconfargs=(
$(use_enable cpu_flags_x86_sse sse)
$(use_enable static-libs static)
$(use_enable debug log-info)
$(use_enable debug log-debug)
$(use_enable debug log-trace)
--enable-log-error
)
if ! multilib_is_native_abi; then
myeconfargs+=( --disable-dec265 --disable-sherlock265 )
else
myeconfargs+=(
$(use_enable qt5 dec265)
$(use_enable qt5 sherlock265)
)
fi
econf "${myeconfargs[@]}"
}
multilib_src_install_all() {
find "${ED}" -name '*.la' -delete || die
if ! use static-libs ; then
find "${ED}" -name "*.a" -delete || die
fi
}
|