# New ports collection makefile for:	libofa
# Date created:		2006-04-01
# Whom:			Alexander Botero-Lowry <alex@foxybanana.com>
#
# $FreeBSD: ports/audio/libofa/Makefile,v 1.7 2006/09/13 03:21:32 alexbl Exp $
#

PORTNAME=	libofa
PORTVERSION=	0.9.3
CATEGORIES=	audio
MASTER_SITES=	http://www.musicdns.org/themes/musicdns_org/downloads/

MAINTAINER=	alexbl@FreeBSD.org
COMMENT=	The Open Fingerprint Architecture Library

LIB_DEPENDS=	fftw3.4:${PORTSDIR}/math/fftw3 \
		expat.6:${PORTSDIR}/textproc/expat2 \
		curl.3:${PORTSDIR}/ftp/curl

USE_GNOME=	pkgconfig
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB=	yes

.include <bsd.port.pre.mk>

post-configure:
	@${REINPLACE_CMD} -e "s|pcdir =.*|pcdir = ${PREFIX}/libdata/pkgconfig|g" \
		${WRKSRC}/Makefile

.include <bsd.port.post.mk>
