summaryrefslogtreecommitdiff
blob: e6979bbed0af6db86f48272ebf8d4a561bd9d444 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils cmake-utils git-r3

DESCRIPTION="plaYUVer is an open-source QT based raw video player"
HOMEPAGE="https://github.com/pixlra/playuver"

EGIT_REPO_URI="https://github.com/pixlra/playuver.git"
EGIT_COMMIT="${PV}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+qt5 -qt4 ffmpeg opencv"

DEPEND="
  qt5? (
    dev-qt/qtcore:5
    dev-qt/qtgui:5
    dev-qt/qtwidgets:5
    dev-qt/qtprintsupport:5
    dev-qt/qtdbus:5
    dev-qt/qtconcurrent:5
  )
  qt4? (
    dev-qt/qtcore:4
    dev-qt/qtgui:4
    dev-qt/qtdbus:4
  )
  ffmpeg? ( virtual/ffmpeg )
  opencv? ( qt5? ( media-libs/opencv[-qt4] ) !qt5? ( media-libs/opencv[-qt5] ) )
"

RDEPEND="${DEPEND}"

REQUIRED_USE="
  ?? ( qt5 qt4 )
"

# S="${WORKDIR}/${PN}"

src_configure() {
  local mycmakeargs=(
    $(cmake-utils_use_use qt4) # use qt5
    $(cmake-utils_use_use ffmpeg) # support ffmpeg
    $(cmake-utils_use_use opencv) # support opencv
  )
  cmake-utils_src_configure
}