blob: e931750a1cc5f2afc295480f90a221d3f9ade4a8 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
DESCRIPTION="The uniform API for image acquisition devices"
HOMEPAGE="http://unicap-imaging.org/"
SRC_URI="http://unicap-imaging.org/downloads/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa debug doc gtk ieee1394 nls png theora threads v4l v4l2"
RDEPEND="alsa? ( media-libs/alsa-lib )
gtk? ( x11-libs/gtk+:2 )
ieee1394? ( >=sys-libs/libraw1394-0.10.0 )
nls? ( virtual/libintl )
png? ( media-libs/libpng )
theora? ( media-libs/libtheora )"
DEPEND="${RDEPEND}
doc? ( >=dev-util/gtk-doc-1.4 )"
src_configure() {
local myconf
if use debug ; then
myconf="${myconf} --enable-thing --enable-debug-unicap
--enable-debug-ucil --enable-debug-thing"
use gtk && myconf="${myconf} --enable-debug-unicapgtk"
use ieee1394 && myconf="${myconf} --enable-debug-dcam
--enable-debug-vid21394"
use v4l && myconf="${myconf} --enable-debug-v4l"
use v4l2 && myconf="${myconf} --enable-debug-v4l2"
fi
# The Unicap author recommended leaving avcodec (ffmpeg) support disabled:
# http://unicap-imaging.org/blog/index.php?/archives/20-Unicap-0.9.3-and-UCView-0.22-released.html#c46
econf ${myconf} \
$(use_enable alsa ucil-alsa) \
$(use_enable doc gtk-doc) \
$(use_enable gtk unicapgtk) \
$(use_enable ieee1394 dcam) \
$(use_enable ieee1394 vid21394) \
$(use_enable nls) \
$(use_enable png ucil-png) \
$(use_enable theora ucil-theora) \
$(use_enable threads unicap-threads) \
$(use_enable v4l) \
$(use_enable v4l2) \
--enable-ucil
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README README.troubleshooting \
|| die "dodoc failed"
}
|