forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-video/motiontrack: Allow GM usage
Closes: https://bugs.gentoo.org/314339 Signed-off-by: Pacho Ramos <[email protected]> Package-Manager: Portage-2.3.51, Repoman-2.3.11
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 1999-2018 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
inherit flag-o-matic | ||
|
||
DESCRIPTION="A set of tools that detect motion between two images" | ||
SRC_URI="http://gemia.de/motion/${P}.tar.gz" | ||
HOMEPAGE="http://motiontrack.sourceforge.net" | ||
|
||
SLOT="0" | ||
LICENSE="GPL-2" | ||
KEYWORDS="~x86 ~ppc ~ppc64 ~sparc ~mips ~alpha ~hppa ~amd64" | ||
|
||
IUSE="debug graphicsmagick imagemagick multiprocess" | ||
|
||
RDEPEND=" | ||
imagemagick? ( | ||
!graphicsmagick? ( media-gfx/imagemagick:0= ) | ||
graphicsmagick? ( media-gfx/graphicsmagick:0=[imagemagick] ) | ||
) | ||
!imagemagick? ( media-libs/gd ) | ||
" | ||
DEPEND="${RDEPEND}" | ||
|
||
src_configure() { | ||
# fix missing inline definition | ||
# with GCC 5, bug 570352 | ||
append-cflags -std=gnu89 | ||
|
||
econf \ | ||
$(use_enable debug) \ | ||
$(use_enable !imagemagick gd) \ | ||
$(use_enable imagemagick magick) \ | ||
$(use_enable multiprocess cluster) | ||
} | ||
|
||
src_install() { | ||
default | ||
dodoc src/TheCode.txt | ||
} |