summaryrefslogtreecommitdiff
blob: 36f69311536f597f477aee48c2fd1456c69db5a2 (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
# 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="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"

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
}