summaryrefslogtreecommitdiff
blob: dddf03cce3f4e810db58e5b327b72b968d9c49aa (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libde265/libde265-9999.ebuild,v 1.1 2014/11/20 13:50:04 dlan Exp $

EAPI=5

AUTOTOOLS_IN_SOURCE_BUILD=1
AUTOTOOLS_AUTORECONF=1
inherit git-r3 autotools-multilib

DESCRIPTION="Open h.265 video codec implementation"
HOMEPAGE="https://github.com/strukturag/libde265"
EGIT_REPO_URI="git://github.com/strukturag/libde265.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="debug qt4 qt5 static-libs sse tools"

DEPEND="
	qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 )
	qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 dev-qt/qtwidgets:5 )
	media-libs/libsdl
	virtual/ffmpeg
"
RDEPEND="${DEPEND}"

REQUIRED_USE="tools? ( || ( qt4 qt5 ) )"

src_configure() {
	local myeconfargs=(
		$(use_enable sse)
		$(use_enable static-libs static)
		$(use_enable debug log-info)
		$(use_enable debug log-debug)
		$(use_enable debug log-trace)
		$(use_enable tools dec265)
		$(use_enable tools sherlock265)
		--disable-silent-rules
		--enable-log-error
	)
	autotools-multilib_src_configure "${myeconfargs[@]}"
}