You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1018 B
51 lines
1018 B
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
8 years ago
|
EAPI="6"
|
||
9 years ago
|
|
||
|
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"
|
||
|
|
||
8 years ago
|
LICENSE="GPL-3+"
|
||
9 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
IUSE="debug imagemagick opencv3"
|
||
|
|
||
8 years ago
|
RDEPEND="<media-libs/giflib-4.2.3:0
|
||
9 years ago
|
dev-qt/qtcore:4
|
||
|
dev-qt/qtgui:4
|
||
|
imagemagick? ( media-gfx/imagemagick:0 )
|
||
8 years ago
|
!opencv3? ( media-libs/opencv:0/2.4[ffmpeg] )
|
||
|
opencv3? ( media-libs/opencv:0/3.0[ffmpeg] )
|
||
9 years ago
|
virtual/ffmpeg:0"
|
||
|
|
||
8 years ago
|
DEPEND="${RDEPEND}"
|
||
9 years ago
|
|
||
|
S="${WORKDIR}/${P}-source"
|
||
|
|
||
|
src_prepare() {
|
||
8 years ago
|
eapply -p0 "${FILESDIR}/${P}-desktop.patch"
|
||
9 years ago
|
|
||
|
if use opencv3 ; then
|
||
8 years ago
|
eapply "${FILESDIR}/${P}-opencv3.patch"
|
||
9 years ago
|
fi
|
||
8 years ago
|
|
||
|
# Fix the doc path
|
||
|
sed -i -e "s|share/doc/qgifer|share/doc/${PF}|" CMakeLists.txt || die
|
||
|
|
||
|
eapply_user
|
||
9 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs
|
||
|
|
||
|
use debug && mycmakeargs=( -DRELEASE_MODE=OFF )
|
||
|
|
||
|
cmake-utils_src_configure
|
||
|
}
|