blob: 5fe819dd8d534b0e91a54f774b720c5facfa7876 (
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
61
62
63
64
65
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/libfprint/libfprint-0.3.0.ebuild,v 1.2 2011/03/29 12:54:04 angelos Exp $
EAPI=3
inherit autotools versionator
MY_PV="v_$(replace_all_version_separators _)"
DESCRIPTION="library to add support for consumer fingerprint readers"
HOMEPAGE="http://cgit.freedesktop.org/libfprint/libfprint/"
SRC_URI="http://cgit.freedesktop.org/${PN}/${PN}/snapshot/${MY_PV}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="X debug +examples static-libs"
RDEPEND="dev-libs/glib:2
dev-libs/libusb:1
dev-libs/nss
x11-libs/gtk+:2
|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
X? ( examples? (
x11-libs/libXext
x11-libs/libXv ) )"
DEPEND="${DEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${MY_PV}
src_prepare() {
mkdir m4 || die
eautoreconf
}
pkg_setup() {
einfo
elog "This version does not support fdu2000 and upektc (yet)."
einfo
}
src_configure() {
local my_conf="$(use_enable examples examples-build)"
if use X ; then
my_conf="${my_conf} $(use_enable examples x11-examples-build)"
else
my_conf="${my_conf} --disable-x11-examples-build"
fi
econf ${my_conf} \
$(use_enable debug debug-log) \
$(use_enable static-libs static) || die
}
src_install() {
emake DESTDIR="${D}" install || die
if use examples ; then
dobin examples/{enroll,img_capture,verify{,_live}} || die
if use X ; then
dobin examples/img_capture_continuous || die
fi
fi
dodoc AUTHORS HACKING NEWS README THANKS TODO || die
}
|