# New ports collection makefile for:	libfprint
# Date created:				April 12 2008
# Whom:					barner
#
# $FreeBSD: ports/security/libfprint/Makefile,v 1.10 2010/03/28 06:43:24 dinoex Exp $
#

PORTNAME=	libfprint
PORTVERSION=	0.0.6
PORTREVISION=	4
CATEGORIES=	security
MASTER_SITES=	SF/fprint/${PORTNAME}/v${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library for fingerprint reader devices

LIB_DEPENDS+=	Magick:${PORTSDIR}/graphics/ImageMagick

GNU_CONFIGURE=	yes
USE_BZIP2=	yes
USE_LDCONFIG=	yes
USE_OPENSSL=	yes
USE_GNOME=	glib20 pkgconfig

CONFIGURE_ENV+=	CRYPTO_CFLAGS=-I${OPENSSLINC} \
		CRYPTO_LIBS=-lcrypto \
		CFLAGS="${CFLAGS} -DHAVE_MEMMEM"

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800069
LIB_DEPENDS+=	usb:${PORTSDIR}/devel/libusb
.else
EXTRA_PATCHES=	${FILESDIR}/extra-patch-usb
.endif

.include <bsd.port.post.mk>
