blob: 9ca81f9fc39c57435ded95dd6eb0bf36e485292b (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/libfprint/libfprint-0.1.0_pre2.ebuild,v 1.1 2010/10/17 00:54:13 xmw Exp $
EAPI=3
inherit versionator
MY_PV=$(replace_version_separator 3 -)
DESCRIPTION="library to add support for consumer fingerprint readers"
HOMEPAGE="http://www.reactivated.net/fprint/wiki/Libfprint"
SRC_URI="mirror://sourceforge/${PN/lib/}/${PN}-${MY_PV}.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/openssl
media-gfx/imagemagick
X? ( examples? (
x11-libs/libXv ) )"
DEPEND="${DEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${PN}-${MY_PV}
src_configure(){
local my_conf="$(use_enable examples examples-build)"
if use X ; then
my_conf="${my_conf} $(use_enable examples 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/.libs/{enroll,img_capture,verify{,_live}} || die
if use X ; then
dobin examples/.libs/img_capture_continuous || die
fi
fi
dodoc AUTHORS ChangeLog HACKING NEWS README THANKS TODO || die
}
|