Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/mvc/mvc-0.8.7.ebuild,v 1.6 2011/03/28 21:30:17 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/mvc/mvc-0.8.7.ebuild,v 1.6 2011/03/28 21:30:17 ssuominen Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=2 |
5 |
inherit toolchain-funcs |
6 |
inherit toolchain-funcs |
6 |
|
7 |
|
7 |
DESCRIPTION="Motion Video Capture, text mode v4l video capture program with motion detection feature" |
8 |
DESCRIPTION="Motion Video Capture, text mode v4l video capture program with motion detection feature" |
Lines 10-16
Link Here
|
10 |
|
11 |
|
11 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
SLOT="0" |
13 |
KEYWORDS="~ppc ~x86" |
14 |
KEYWORDS="~amd64 ~ppc ~x86" |
14 |
IUSE="" |
15 |
IUSE="" |
15 |
|
16 |
|
16 |
RDEPEND="virtual/jpeg |
17 |
RDEPEND="virtual/jpeg |
Lines 23-34
Link Here
|
23 |
"$@" |
24 |
"$@" |
24 |
} |
25 |
} |
25 |
|
26 |
|
|
|
27 |
src_prepare() { |
28 |
sed -i -e 's:<linux/videodev.h>:<libv4l1.h>:' mvc.c || die |
29 |
} |
30 |
|
26 |
src_compile() { |
31 |
src_compile() { |
27 |
doecho $(tc-getCC) \ |
32 |
doecho $(tc-getCC) \ |
28 |
${CFLAGS} -DHAVE_JPEG -DHAVE_PNG $(pkg-config --cflags libpng) \ |
33 |
${CFLAGS} -DHAVE_JPEG -DHAVE_PNG $(pkg-config --cflags libpng) \ |
29 |
${LDFLAGS} -o mvc \ |
34 |
${LDFLAGS} -o mvc \ |
30 |
mvc.c \ |
35 |
mvc.c \ |
31 |
-ljpeg $(pkg-config --libs libpng) |
36 |
-ljpeg $(pkg-config --libs libpng) -lv4l1 |
32 |
} |
37 |
} |
33 |
|
38 |
|
34 |
src_install() { |
39 |
src_install() { |