blob: 48e3b8e8b15cd2e0a5e1af3f4fac73a5180239e8 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit toolchain-funcs eutils
DESCRIPTION="Take a photo from webcam on your shell"
HOMEPAGE="http://staticwave.ca/source/uvccapture/"
SRC_URI="http://staticwave.ca/source/${PN}/${P}.tar.bz2"
KEYWORDS="amd64 x86"
IUSE=""
LICENSE="GPL-2"
SLOT="0"
DEPEND="virtual/jpeg"
RDEPEND=""
src_prepare () {
sed -i "s:videodev.h:videodev2.h:" uvccapture.c v4l2uvc.c || die
epatch "${FILESDIR}/Makefile.patch"
}
src_compile () {
emake \
CC="$(tc-getCC)" \
LDFLAGS="${LDFLAGS}"
}
src_install () {
dobin ${PN}
}
|