summaryrefslogtreecommitdiff
blob: 1110a6669284a7967ca9e9d4aa3c5c7ca76e5bb7 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mvc/mvc-0.8.7.ebuild,v 1.4 2006/09/12 15:50:29 flameeyes Exp $

inherit toolchain-funcs

DESCRIPTION="Motion Video Capture, text mode v4l video capture program with motion detection feature"
HOMEPAGE="http://modesto.sourceforge.net/piave/index.html"
SRC_URI="http://www.turbolinux.com.cn/~merlin/mvc/${P}.tar.gz"

IUSE=""
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~ppc ~x86"

RDEPEND="media-libs/jpeg
	media-libs/libpng"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

doecho() {
	echo "$@"
	"$@"
}

src_compile() {
	doecho $(tc-getCC) \
		${CFLAGS} -DHAVE_JPEG -DHAVE_PNG $(pkg-config --cflags libpng) \
		${LDFLAGS} -o mvc \
		mvc.c \
		-ljpeg $(pkg-config --libs libpng)
}

src_install() {
	dobin mvc
	doman mvc.1
	dodoc ChangeLog README TODO NEWS
}