# New ports collection makefile for:	libsamplerate
# Date created:				2 February 2003
# Whom:			<dmagda+libsamplerate@ee.ryerson.ca>
#
# $FreeBSD: ports/audio/libsamplerate/Makefile,v 1.3 2003/05/16 03:11:23 petef Exp $
#

PORTNAME=	libsamplerate
PORTVERSION=	0.0.15
CATEGORIES=	audio
MASTER_SITES= 	http://www.mega-nerd.com/SRC/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Secret Rabbit Code: a Sample Rate Converter for audio

BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=	sndfile.1:${PORTSDIR}/audio/libsndfile \
		fftw.2:${PORTSDIR}/math/fftw
RUN_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig

USE_GNOME=	gnomehack
USE_LIBTOOL=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	--disable-gcc-pipe
INSTALLS_SHLIB=	yes

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.css ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR}
.endif

.include <bsd.port.mk>
