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.
gentoo-overlay/media-video/qgifer/qgifer-0.2.1-r3.ebuild

51 lines
1018 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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-4.2.3:0
dev-qt/qtcore:4
dev-qt/qtgui:4
imagemagick? ( media-gfx/imagemagick:0 )
!opencv3? ( media-libs/opencv:0/2.4[ffmpeg] )
opencv3? ( media-libs/opencv:0/3.0[ffmpeg] )
virtual/ffmpeg:0"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${P}-source"
src_prepare() {
eapply -p0 "${FILESDIR}/${P}-desktop.patch"
if use opencv3 ; then
eapply "${FILESDIR}/${P}-opencv3.patch"
fi
# Fix the doc path
sed -i -e "s|share/doc/qgifer|share/doc/${PF}|" CMakeLists.txt || die
eapply_user
}
src_configure() {
local mycmakeargs
use debug && mycmakeargs=( -DRELEASE_MODE=OFF )
cmake-utils_src_configure
}