summaryrefslogtreecommitdiff
path: root/security/fprintd/Makefile
blob: 2d6591b0ecc1f83e721c4a80f0b62bae869e923d (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
PORTNAME=	fprintd
DISTVERSIONPREFIX=	V_
DISTVERSION=	0_8_1
CATEGORIES=	security

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Daemon that provides fingerprint scanning functionality over D-Bus

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfprint.so:security/libfprint \
		libdbus-1.so:devel/dbus \
		libdbus-glib-1.so:devel/dbus-glib \
		libpolkit-gobject-1.so:sysutils/polkit

USES=		autoreconf:build gettext gmake gnome libtool pkgconfig
USE_GNOME=	intltool glib20

USE_GITHUB=	yes
GH_ACCOUNT=	freedesktop
GH_PROJECT=	libfprint-${PORTNAME}

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
MAKE_ARGS=	sysconfdir="${ETCDIR}/"

OPTIONS_DEFINE=	NLS PAM
OPTIONS_SUB=	yes

NLS_CONFIGURE_ENABLE=	nls
PAM_CONFIGURE_ENABLE=	pam

do-configure:
	(cd ${WRKSRC} ; ${SH} autogen.sh)

# Remove doc build ;  Doesn't install with/without
# Also less deps needed
pre-configure:
	${REINPLACE_CMD} -e '/pushd/d ; /docize/d ; /popd/d' ${WRKSRC}/autogen.sh
	${REINPLACE_CMD} -e '73,81d' ${WRKSRC}/doc/Makefile.am
	${REINPLACE_CMD} -e '/DOC_CHECK/d' ${WRKSRC}/configure.ac

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/security/pam_fprintd.so

.include <bsd.port.mk>