blob: a027d20e16d8bc224a79d54c70e6ecf2afa21ed3 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
DESCRIPTION="A video-based animated GIF creator"
HOMEPAGE="https://sourceforge.net/projects/qgifer/"
SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug imagemagick opencv3"
RDEPEND="
>=media-libs/giflib-5.1:=
dev-qt/qtcore:4
dev-qt/qtgui:4
virtual/ffmpeg:0
imagemagick? ( media-gfx/imagemagick:0 )
!opencv3? ( <media-libs/opencv-3.0.0:0=[ffmpeg] )
opencv3? ( >=media-libs/opencv-3.0.0:0=[ffmpeg] )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${P}-source"
PATCHES=(
"${FILESDIR}/${P}-desktop.patch"
# Port to giflib 5 API
"${FILESDIR}/${P}-giflib5.patch"
)
src_prepare(){
use opencv3 && PATCHES+=( "${FILESDIR}/${P}-opencv3.patch" )
cmake-utils_src_prepare
# Fix the doc path
sed -i -e "s|share/doc/qgifer|share/doc/${PF}|" CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
$(usex debug '-DRELEASE_MODE=OFF' '')
)
cmake-utils_src_configure
}
|