# Created by: Sunpoet Po-Chuan Hsieh # $FreeBSD$ PORTNAME= fplib PORTVERSION= 20121001 PORTREVISION= 3 CATEGORIES= audio MASTER_SITES= LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Last.fm fingerprint library LICENSE= LGPL3 LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \ libfftw3.so:${PORTSDIR}/math/fftw3 \ libfftw3f.so:${PORTSDIR}/math/fftw3-float \ libmad.so:${PORTSDIR}/audio/libmad \ libsamplerate.so:${PORTSDIR}/audio/libsamplerate \ libtag.so:${PORTSDIR}/audio/taglib CPPFLAGS+= -I${LOCALBASE}/include MAKE_JOBS_UNSAFE= yes USE_LDCONFIG= yes USES= cmake tar:xz post-patch: @${REINPLACE_CMD} \ -e 's|\(ADD_DEFINITIONS\)(.*)|\1(${CFLAGS} ${CPPFLAGS})|' \ -e 's|\(LINK_DIRECTORIES\)(\(.*\))|\1(\2 ${LOCALBASE}/lib)|' \ ${WRKSRC}/CMakeLists.txt .include