blob: 3a89c76ff59f7a9568d4777988a4129b586fd78e (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/camsource/camsource-0.7.1.ebuild,v 1.5 2007/07/02 18:06:14 gustavoz Exp $
inherit eutils flag-o-matic
DESCRIPTION="Unofficial release of Camsource, grabs images from a v4l and v4l2 webcam devices."
HOMEPAGE="http://koti.mbnet.fi/~turja/vino"
SRC_URI="http://koti.mbnet.fi/~turja/vino/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc sparc x86"
IUSE=""
RDEPEND=">=dev-libs/libxml2-2.4.22
>=media-libs/jpeg-6b"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-example.patch
filter-ldflags -Wl,-z,now
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog README
newinitd "${FILESDIR}"/${PN}.initd ${PN}
insinto /etc
doins ${PN}.conf.example
exeinto /usr/share/${PN}
doexe scripts/camsource2bmp.pl
}
pkg_postinst() {
elog
elog "Edit /etc/camsource.conf.example config to your liking."
elog
}
|